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"