Error exporting PLANNER data using Powershell

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

Viewing 1 reply thread
  • Author
    • #165562
      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 [email protected] -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


      Any help is aprreciated.

      Best regards,


    • #165745
      Senior Moderator
      Topics: 9
      Replies: 1236
      Points: 4,443
      Helping Hand
      Rank: Community Hero
Viewing 1 reply thread
  • The topic ‘Error exporting PLANNER data using Powershell’ is closed to new replies.