can not deploy CRM Package via CRM Developer Toolkit
Hello,
When you add a PlugIn Image to a step via Crm Developer Toolkit in Micrososft Visual Studio then try to deploy package to the Dynamics 365 CRM, you may face an error by stating
Error : Message: Message property name 'Target' is not valid on message Create.
ErrorCode: -2147204757
It is because "MessagePropertyName" of the image as seen below:
<Image Attributes="bnb_airlineid,bnb_flightcode,bnb_fromid,bnb_name,bnb_toid,bnb_type" EntityAlias="Target" Name="Target" Id="37c0ab9c-cefb-e911-aad3-080027ebb059" MessagePropertyName="Target" ImageType="PostImage" />
Fixing action:
just add "Id" as MessagePropertyType :
<Image Attributes="bnb_airlineid,bnb_flightcode,bnb_fromid,bnb_name,bnb_toid,bnb_type" EntityAlias="Target" Name="Target" Id="37c0ab9c-cefb-e911-aad3-080027ebb059" MessagePropertyName="Id" ImageType="PostImage" />
Tip:
ImageType="Both" requies MessagePropertyName="Target" not MessagePropertyName="Id"
Enjoy !
below is full exception stack:
======================================================================================================================
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose: 16 : ==>Failed to Execute Command - Create
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : ==>Source : mscorlib
Method : HandleReturnMessage
Date : 01/11/2019
Time : 21:48:33
Error : Message: Message property name 'Target' is not valid on message Create.
ErrorCode: -2147204757
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.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Message property name 'Target' is not valid on message Create.
Time : 01/11/2019 21:48:24
ErrorCode : -2147204757
Date : 01/11/2019
Time : 21:48:33
Trace : Not Provided
======================================================================================================================
When you add a PlugIn Image to a step via Crm Developer Toolkit in Micrososft Visual Studio then try to deploy package to the Dynamics 365 CRM, you may face an error by stating
Error : Message: Message property name 'Target' is not valid on message Create.
ErrorCode: -2147204757
It is because "MessagePropertyName" of the image as seen below:
<Image Attributes="bnb_airlineid,bnb_flightcode,bnb_fromid,bnb_name,bnb_toid,bnb_type" EntityAlias="Target" Name="Target" Id="37c0ab9c-cefb-e911-aad3-080027ebb059" MessagePropertyName="Target" ImageType="PostImage" />
Fixing action:
just add "Id" as MessagePropertyType :
<Image Attributes="bnb_airlineid,bnb_flightcode,bnb_fromid,bnb_name,bnb_toid,bnb_type" EntityAlias="Target" Name="Target" Id="37c0ab9c-cefb-e911-aad3-080027ebb059" MessagePropertyName="Id" ImageType="PostImage" />
Tip:
ImageType="Both" requies MessagePropertyName="Target" not MessagePropertyName="Id"
Enjoy !
below is full exception stack:
======================================================================================================================
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose: 16 : ==>Failed to Execute Command - Create
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : ==>Source : mscorlib
Method : HandleReturnMessage
Date : 01/11/2019
Time : 21:48:33
Error : Message: Message property name 'Target' is not valid on message Create.
ErrorCode: -2147204757
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.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Message property name 'Target' is not valid on message Create.
Time : 01/11/2019 21:48:24
ErrorCode : -2147204757
Date : 01/11/2019
Time : 21:48:33
Trace : Not Provided
======================================================================================================================
Comments
Post a Comment