Quantcast
Channel: Forum CRM Deployment
Viewing all articles
Browse latest Browse all 997

PowerShell cmdlet Import-CrmOrganization

$
0
0

I am not able to import an organization via the PowerShell cmdlet Import-CrmOrganization. Here is more info regarding how I am using this cmdlet:

1. Have a CRM database - to be imported - ready in SQL Server.

2. I am myself a deployment admin

3. I have provisioned multiple CRM orgs on this SQL Server without any problem. Just the cmdlet is not working.

4. I have launched the PowerShell command prompt with Administrative permissions.

Here is the error that I am seeing. I have tried UserMappingMethod of both ByAccount and KeepExisting:

Import-CrmOrganization : The Deployment Service cannot process the request because one or more validation checks failed
.
At line:1 char:23
+ Import-CrmOrganization <<<<  -SqlServerName "d-crmdb" -DatabaseName "Testblank_MSCRM" -SrsUrl "http://d-crmdb/ReportServer" -DisplayName "TestBlank" -Name "TestBlank" -UserMappingMethod "KeepExisting"
    + CategoryInfo          : NotSpecified: (:) [Import-CrmOrganization], FaultException`1
    + FullyQualifiedErrorId : System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFaul
   t, Microsoft.Crm.PowerShell, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Microsoft.Crm.Pow
  erShell.ImportCrmOrganizationCmdlet

I have tried two versions of this command but both throw the exception above:

Import-CrmOrganization -SqlServerName "d-crmdb" -DatabaseName "Testblank_MSCRM" -SrsUrl "http://d-crmdb/ReportServer" -DisplayName "TestBlank" -Name "TestBlank" -UserMappingMethod "KeepExisting"

Import-CrmOrganization -SqlServerName "d-crmdb" -DatabaseName "Testblank_MSCRM" -SrsUrl "http://d-crmdb/ReportServer" -DisplayName "TestBlank" -Name "TestBlank" -UserMap "KeepExisting"

Has anybody had success using the PowerShell cmdlet above?

Thanks,

Adhish


Adhish Gupta


Viewing all articles
Browse latest Browse all 997

Trending Articles



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