I'm having an odd Issue when am trying to create a record in a custom entity. I have tried creating it both using a workflow (which is my preferred path), and manually. When I try and create the entity I get this error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: 'paymentapproval' entity doesn't contain attribute with Name = 'ApprovalId'.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147217149</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>'paymentapproval' entity doesn't contain attribute with Name = 'ApprovalId'.</Message>
<Timestamp>2016-10-24T18:09:20.8692984Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[AutoNumber: AutoNumber.AutoNumber]
[dd7b1f9b-5292-e611-945e-0a32cb849873: AutoNumber.AutoNumber: Create of paymentapproval]
The problem with this situation is that the paymentapproval entity does contain the attribute with the name Approval ID, in fact it's the primary key, it's just the CRM system can't see it for some reason. I have tried re-creating the entity to see if that solves the problem but I am still getting the same issue.
The very odd part about this is that this workflow, and the manual creation, was working last week, and all of a sudden it stopped working this AM.
Any help someone can give would be appreciated.