When I am using Import-CrmOrganization it fails returning the response from the deployment service using Get-CrmOperationStatus.
The issue apperas when importing an CRM2011 (v. 5.0.9690.4376) organization to an CRM2013 (v. 6.1.4.145).
How can I change the MaxStringContentLength property? I guess the configuration must be on the server and client side?
Add-PSSnapin Microsoft.Crm.PowerShell
$importJobId = Import-CrmOrganization -SqlServerName <servername> -Timeout 10000 -DatabaseName <dbname> -SrsUrl <srsur> -DisplayName <displayname -Name <Org.name> -UserMappingMethod KeepExisting -Verbose -Diag $opstatus = Get-CrmOperationStatus -OperationId $importJobId while($opstatus.State -eq "Processing") { Write-Host [(Get-Date)] Processing... Start-Sleep -s 30 $opstatus = Get-CrmOperationStatus -OperationId $importJobId } if($opstatus.State -eq "Failed") { Throw ($opstatus.ProcessingError.Message) }
After 5th poll (2,5 minutes) I get this message when I Get-CrmOperationStatus:
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter schemas.microsoft.com/.../Services:ExecuteResult. The InnerException message was 'There was an error deserializing the object of type Microsoft.Xrm.Sdk.Deployment.DeploymentServiceResponse. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader
*This post is locked for comments
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156