We have made some customisations to some entities in a customer's sandbox which work fine. One user tested the creation of an Opportunity (both from an Account and on its own) however we receive the error below. The Opportunity hasn't been modified as part of the customisations. I know this relates to a plugin (RetrieveAllMetadata.***Entity: Create of opportunity) already put in place before us but the same plugin has been registered in Live too and users can create an Opportunity fine. Is anyone able to tell me what I should do?
"***" has been used to hide the prefix for data protection.
"***_Licensing" is a custom entity
In case it helps, this was a CRM "upgraded" from CRM 2011 online to CRM 2013 online.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Invalid LicenseDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
<InnerFault i:nil="true" />
[83e9a22a-46ea-e211-8b46-984be16dae4d: RetrieveAllMetadata.***Entity: Create of opportunity]
Are you using any third-party dll along with your solution? Or could it be integrating with another application that require a license? Id it is not CRM Online sometimes the real error is on the windows event log
Bruno Lucas, Senior CRM Consultant
DynamicDay CRM Blog
Please mark my post as "Verified" If it helped to solve your problem
Please check plugin dll which you are registered. Please un register plugins and try to create opportunity.
We managed to identify the exact plugin step causing this issue as when it was disabled the issue wouldn't occur. Unfortunately we don't have the code so don't know exactly what this does but when the customisations were imported from sandbox to Production it didn't bring the issue over so it must be related to a plugin requiring a unique licence number for each environment it is on. The sandbox is an exact copy of Live so there wouldn't be a new number for the sandbox. Thanks for your help.