Hi all
This is the scenario: I'm the system admin of a CRM 13 On Premise instance and I'm trying to delete a record from a custom entity.
Problem: For researching proposes, I have to delete some records of the mentioned custom entity. Basically, I'm able to delete most of them, but for some reason I can't delete two, here's the error I get:
"The requested Record was not found or you do not have sufficient permissions to view it"
After seeing the logs, I notice that more specifically the error is:
"No object matched the query crm"
Here is the log:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7C9C9D7EDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #7C9C9D7E</Message>
<Timestamp>2016-02-12T16:47:27.9535708Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220969</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>No object matched the query:
delete from [em_em_module_incidentBase]
OUTPUT DELETED.[em_em_module_incidentId], 48253
into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
where ([em_em_module_incidentId] = '10d04n64-f2t1-t255-8f08-0020569t4130')</Message>
<Timestamp>2016-02-12T16:47:27.9535708Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
What could be the problem here?
Thanks in advance.