Error when running the command ConvertTo-SPOMigrationTargetedPackage

Amrita Sengupta 1 Reputation point
2022-11-04T19:59:12.783+00:00

Hello,

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=5.6.4.0, 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!

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

2 answers

Sort by: Most helpful
  1. AllenXu-MSFT 18,441 Reputation points Microsoft Vendor
    2022-11-07T02:45:35.243+00:00

    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.

    Update-module microsoft.online.sharepoint.powershell  
    

    ----------

    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
    2022-11-07T14:31:04.103+00:00

    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