Error exporting PLANNER data using Powershell

Welcome Forums General PowerShell Q&A Error exporting PLANNER data using Powershell

This topic contains 1 reply, has 2 voices, and was last updated by

 
Senior Moderator
2 months, 1 week ago.

  • Author
    Posts
  • #165562

    Participant
    Topics: 1
    Replies: 0
    Points: -8
    Rank: Member

    Hi all,

    I am trying to export all PLANNER data due to a Tenant migration that is about to happen in the near future. So far I managed to export some users using the following Powershell code:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
    Import-module "C:\PlannerUserContentExport\plannertenantadmin.psm1"
    Export-PlannerUserContent -UserAadIdOrPrincipalName account-name@domain-name.com -ExportDirectory C:\PlannerExport

     

    This last line repeats itself for all users. However, for some users I am getting the following error:

    We couldn´t start your export. Error message: The remote server returned an error: (401)
    Unauthorized. Support information: CorrelationId 02e15510-6d3e-4280-876b-424046f41335 At C:\PlannerUserContentExport\plannertenantadmin.psm1:164 char:9
    +throw $exceptionToThrow
    +CategoryInfo: NotSpecified:  (:) [], ParentContainsErrorRecordException
    +FullyQualifiedErrorId

     

    Any help is aprreciated.

    Best regards,

    Mario

  • #165745

    Senior Moderator
    Topics: 8
    Replies: 1041
    Points: 3,439
    Helping Hand
    Rank: Community Hero

You must be logged in to reply to this topic.