web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

powershell Microsoft.Xrm.Tooling.ConfigurationMigration gives error

(0) ShareShare
ReportReport
Posted on by

i'm trying to import data to an environment using powershell

i found this module: Microsoft.Xrm.Tooling.ConfigurationMigration link - https://www.powershellgallery.com/packages/Microsoft.Xrm.Tooling.ConfigurationMigration/1.0.0.53

and i'm trying to use the cmdlet - "Import-CrmDataFile"

but i keep run into one of these 2 errors:

Could not load file or assembly 'Microsoft.Xrm.Tooling.Connector, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system
cannot find the file specified.

or:

Could not load file or assembly
'Microsoft.Xrm.Tooling.Dmt.DataMigCommon, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file
specified.

did someone run into these or knows how to solve them?

here is the code i'm using:

$moduleName = "Microsoft.Xrm.Tooling.ConfigurationMigration"
Install-Module -Name $moduleName -Scope CurrentUser -AllowClobber
$user = "<user>"
$pass = ConvertTo-SecureString "<password>" -ASPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential ($user, $pass);
$conn = Get-CrmConnection -Credential $Cred -OnlineType Office365 -OrganizationName "sure"
Import-CrmDataFile -CrmConnection $conn -DataFile "C:\Work\git\ISV.Accelerator.FinancialServices\fsinew\exports\data\FSIBaseSolution_Data.zip"
I have the same question (0)
  • Verified answer
    mobeenmohsin Profile Picture
    on at

    Hi,

    It seems that assemblies Microsoft.Xrm.Tooling.Connector and Microsoft.Xrm.Tooling.Dmt.DataMigCommon are not referenced from where you are running PS. You can try to download the assemblies for configuration manager using https://docs.microsoft.com/en-us/power-platform/admin/manage-configuration-data. Once you download the configuration manager, you will find the assemblies as seen below:

    pastedimage1609117279783v2.png

    You can try to include those assemblies in order to make it work. Thank you.

    Best Regards,


    Mobeen Mohsin

  • liranelisha Profile Picture
    on at

    thank you

    i've had some junk in my powershell folder

    cleaned it

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans