Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Import-CrmOrganization how to change the MaxStringContentLength property?

$
0
0

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

Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>