Hi,
We have add a new entity related with Invoice entity (similar as the standard Invoice Product entity)
On the mapping configuration we can choose fields from the three entities.
If an Invoice have header and product lines it works as expected
However, if an Invoice have data to write on the new entity, Connector fails return this error: "'xxx_onaccounttrans' entity doesn't contain attribute with Name = 'IsNewObjectProviderInstance'
1: A required attribute was outside the valid bounds. See the exception message for details. Add the appropriate value to the required attribute"
Log file complete the information
"--- Exception Dump ---
Caught Exception: [Microsoft.Dynamics.Integration.AdapterAbstractionLayer.AdapterException] 'cos_lineasdefacturaacuenta' entity doesn't contain attribute with Name = 'IsNewObjectProviderInstance'.
Stack trace:
en Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)
en Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CreateNewCompoundEntity(Entity entity, Entity[] children)
en Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.WriteCompoundEntity(Object value, String queryProperty)
en Microsoft.Dynamics.Integration.Adapters.Crm2011.InvoiceObjectProvider.WriteObject(Object value)
en Microsoft.Dynamics.Integration.Service.Tasks.RecordWork.DoRecordWork(DbMap map, Object key, OperationType operationType, DateTime startTime, String loggingSourceName)
Inner Exception: [System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]] ''xxx_onaccounttrans'' entity doesn't contain attribute with Name = 'IsNewObjectProviderInstance'.
Stack trace:
Server stack trace:
en System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
en System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
en System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
en System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
en System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
en System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
en Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
en Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
en Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)"
Do you have any idea what we can check?
many thanks
*This post is locked for comments