Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Problem when exporting a solution containing Accounts

Posted on by Microsoft Employee

Hello,

I am trying to create a Solution with Accounts, Leads, Opportunities and Contacts. I am adding three fields to each of these entities. When I add Accounts, the customizations.xml file that gets generated contains the following inside the xml file:

<EntityMaps><EntityMap><EntitySource>account</EntitySource><EntityTarget>product</EntityTarget><AttributeMaps/></EntityMap></EntityMaps>

This is causing problems when I try to import it to another instance. I get the following error:

Method : HandleReturnMessage
Date : 11/14/2016
Time : 5:37:34 PM
Error : Message: EntityMap account -> product - Import: FAILURE. This entity map does not exist on the target system.
ErrorCode: -2147188720
Trace:
Stack Trace : Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.<>c__DisplayClassd.<ExecuteCore>b__c()
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================

When I remove the contents inside EntityMaps, e.g. leaving the section as <EntityMaps/>, I get the following error:

==OrganizationServiceFault Info=======================================================================================
Error : System.ArgumentException: Condition for attribute 'solution.uniquename': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.
Time : 11/15/2016 6:52:22 AM
ErrorCode : -2147220970
Date : 11/14/2016
Time : 10:52:06 PM
Trace : Not Provided
======================================================================================================================

PackageDeployment Information 8 11/14/2016 10:52:06 PM DoImportSolutionItem Exception Raised
PackageDeployment Error 2 11/14/2016 10:52:06 PM Source : mscorlib
Method : HandleReturnMessage
Date : 10:52:06 PM
Time : 11/14/2016
Error : Condition for attribute 'solution.uniquename': null is not a valid value for an attribute. Use 'Null' or 'NotNull' conditions instead.
Stack Trace : Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.<>c__DisplayClassd.<ExecuteCore>b__c()
at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================

Is there any way to add additional fields to Accounts without facing these errors?

Thanks

*This post is locked for comments

  • Verified answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Problem when exporting a solution containing Accounts

    This appears to be a bug. I suggest that you raise a ticket with support via the admin portal.

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: Problem when exporting a solution containing Accounts

    if there are lookup fields on account or any subgrids on account, add relevant relationships (1:N or N:1) components in your solution and then import

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans