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

Announcements

No record found.

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,822 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans