Error when running the command ConvertTo-SPOMigrationTargetedPackage

Amrita Sengupta 1 Reputation point


I am running into the below error when I am using the command "ConvertTo-SPOMigrationTargetedPackage" from SharePoint Online Management Shell -

ConvertTo-SPOMigrationTargetedPackage : Could not load file or assembly 'Microsoft.Data.Services.Client,
Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find
the file specified.
At line:1 char:1

I had used this command a few days back and was able to migrate a couple of libraries, but now it errors out.
I am not able to get relevant help by running a search over internet.

If someone can help me here, it would be great!

Thanks in advance!

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,013 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AllenXu-MSFT 17,421 Reputation points Microsoft Vendor

    Hi @Amrita Sengupta ,

    What's your SharePoint Online PowerShell version? Check by this command:

    Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version  

    Then have a try to update it to the latest using below command and verify if your issue has been fixed.



    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Sengupta, Amrita 26 Reputation points

    Hello AllenXuMSFT,

    Thanks a lot, but I am already running the latest version of SharePoint Online Management Shell.
    The version is - 16.0.23019.0

    Before posting the question, I had also uninstalled and installed the SPO Management shell, but that did not help me.

    0 comments No comments