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