Hello Tina,
If I want to delete the accounts via bulk deletion than i get the Error "ISV code aborted the operation" with the same error code "0x80040265".
I have found an error log in the plug-in trace log:
Message Block:
[INF] - [08/10/2020 08:49:19.791 AM] - plugin [PreCommitPlugin] invoked with the message of [InternalPipeline] for target [Microsoft.Xrm.Sdk.OrganizationRequestCollection].
[INF] - [08/10/2020 08:49:19.806 AM] - Tag:
[INF] - [08/10/2020 08:49:19.806 AM] - TransactionStatus: InProgress
[INF] - [08/10/2020 08:49:19.806 AM] - TransactionId: 1240728373
[INF] - [08/10/2020 08:49:19.822 AM] - Delete of [contact:ce02e53a-44d2-ea11-a812-000d3a38a16c] with depth of 1
[INF] - [08/10/2020 08:49:19.822 AM] - Retrieving runtime configuration records for [1] unique entities
[INF] - [08/10/2020 08:49:19.885 AM] - 2 runtime configuration records are retrieved
[INF] - [08/10/2020 08:49:19.885 AM] - {[contact:ce02e53a-44d2-ea11-a812-000d3a38a16c:0],[(0, 1, Delete)],[customertypecode,mobilephone,merged,gendercode,territorycode,haschildrencode,preferredappointmenttimecode,msdyn_contactfor,msdyn_orgchangestatus,isbackofficecustomer,msdyn_language,lastname,donotpostalmail,marketingonly,donotphone,educationcode,msdyn_vendorcreatedbyworkflow,msdyn_contactforvendor,customersizecode,firstname,msdyn_isvendor,yomifullname,donotemail,fullname,msdyn_gdproptout,msdyn_partynumber,donotsendmm,donotfax,msdyn_sellable,leadsourcecode,msdyn_contactpersonid,creditonhold,telephone1,msdyn_company,preferredcontactmethodcode,donotbulkemail,familystatuscode,followemail,shippingmethodcode,modifiedbyyominame,donotbulkpostalmail,createdbyyominame,owningteam,parentcustomerid,contactid,participatesinworkflow]}
[INF] - [08/10/2020 08:49:20.431 AM] - Retrieving current OrganizationDetail for CRM environment
[INF] - [08/10/2020 08:49:20.464 AM] - OrganizationId: 2a431e5d-c301-453f-a3d3-c5f7e6b07d30, FriendlyName: Test-CE. EnironmentId: 51060505-5e56-45d6-97fc-da4fdd02d65b, Geo: EMEA, UniqueName: orgf4f63c9a
[INF] - [08/10/2020 08:49:20.464 AM] - AxApiVersion: 12
[INF] - [08/10/2020 08:49:20.494 AM] - Building transaction payload
[INF] - [08/10/2020 08:49:20.494 AM] - Adding new secure config to Cache
[INF] - [08/10/2020 08:49:20.509 AM] - source filter: ((msdyn_contactfor eq 'Customer') and (msdyn_sellable eq 'False')) and (msdyn_contactpersonid ne '')
[INF] - [08/10/2020 08:49:20.509 AM] - return value from filter: True
[INF] - [08/10/2020 08:49:20.509 AM] - Build Data Payload for Entity - contact
[INF] - [08/10/2020 08:49:20.525 AM] - Destination Legal Entity : [:msdyn_company] -> contact.DMC:9c6df90f-76eb-4355-a632-4592f2517d8b -> DMC:9c6df90f-76eb-4355-a632-4592f2517d8b
[INF] - [08/10/2020 08:49:20.541 AM] - LookupField = {parentcustomerid.Account(accountnumber).Contact(msdyn_contactpersonid)}, Reference = {/account(15239284-41d2-ea11-a812-000d3a38a16c)}, Requested Attributes = {accountnumber}
Exception Details:
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: account With Id = 15239284-41d2-ea11-a812-000d3a38a16c Does Not ExistDetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>f0ae7d0d-8919-43cf-8ab8-6bdc55a6f95b</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<HelpLink i:nil="true" />
<Message>account With Id = 15239284-41d2-ea11-a812-000d3a38a16c Does Not Exist</Message>
<Timestamp>2020-08-10T08:49:20.5724653Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource>PluginExecution</ExceptionSource>
<InnerFault i:nil="true" />
<OriginalException>Microsoft.Xrm.Sdk.InvalidPluginExecutionException
at Microsoft.Dynamics.Integrator.DualWriteCore.Shared.PluginBase.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.<>c__DisplayClass17_0.<Execute>b__0()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain, String crashOnPluginExceptionMessage)
at Microsoft.Crm.Sandbox.SandboxWorker.<>c__DisplayClass3_0.<Execute>b__0()</OriginalException>
<TraceText>
[INF] - [08/10/2020 08:49:19.791 AM] - plugin [PreCommitPlugin] invoked with the message of [InternalPipeline] for target [Microsoft.Xrm.Sdk.OrganizationRequestCollection].
[INF] - [08/10/2020 08:49:19.806 AM] - Tag:
[INF] - [08/10/2020 08:49:19.806 AM] - TransactionStatus: InProgress
[INF] - [08/10/2020 08:49:19.806 AM] - TransactionId: 1240728373
[INF] - [08/10/2020 08:49:19.822 AM] - Delete of [contact:ce02e53a-44d2-ea11-a812-000d3a38a16c] with depth of 1
[INF] - [08/10/2020 08:49:19.822 AM] - Retrieving runtime configuration records for [1] unique entities
[INF] - [08/10/2020 08:49:19.885 AM] - 2 runtime configuration records are retrieved
[INF] - [08/10/2020 08:49:19.885 AM] - {[contact:ce02e53a-44d2-ea11-a812-000d3a38a16c:0],[(0, 1, Delete)],[customertypecode,mobilephone,merged,gendercode,territorycode,haschildrencode,preferredappointmenttimecode,msdyn_contactfor,msdyn_orgchangestatus,isbackofficecustomer,msdyn_language,lastname,donotpostalmail,marketingonly,donotphone,educationcode,msdyn_vendorcreatedbyworkflow,msdyn_contactforvendor,customersizecode,firstname,msdyn_isvendor,yomifullname,donotemail,fullname,msdyn_gdproptout,msdyn_partynumber,donotsendmm,donotfax,msdyn_sellable,leadsourcecode,msdyn_contactpersonid,creditonhold,telephone1,msdyn_company,preferredcontactmethodcode,donotbulkemail,familystatuscode,followemail,shippingmethodcode,modifiedbyyominame,donotbulkpostalmail,createdbyyominame,owningteam,parentcustomerid,contactid,participatesinworkflow]}
[INF] - [08/10/2020 08:49:20.431 AM] - Retrieving current OrganizationDetail for CRM environment
[INF] - [08/10/2020 08:49:20.464 AM] - OrganizationId: 2a431e5d-c301-453f-a3d3-c5f7e6b07d30, FriendlyName: Test-CE. EnironmentId: 51060505-5e56-45d6-97fc-da4fdd02d65b, Geo: EMEA, UniqueName: orgf4f63c9a
[INF] - [08/10/2020 08:49:20.464 AM] - AxApiVersion: 12
[INF] - [08/10/2020 08:49:20.494 AM] - Building transaction payload
[INF] - [08/10/2020 08:49:20.494 AM] - Adding new secure config to Cache
[INF] - [08/10/2020 08:49:20.509 AM] - source filter: ((msdyn_contactfor eq 'Customer') and (msdyn_sellable eq 'False')) and (msdyn_contactpersonid ne '')
[INF] - [08/10/2020 08:49:20.509 AM] - return value from filter: True
[INF] - [08/10/2020 08:49:20.509 AM] - Build Data Payload for Entity - contact
[INF] - [08/10/2020 08:49:20.525 AM] - Destination Legal Entity : [:msdyn_company] -> contact.DMC:9c6df90f-76eb-4355-a632-4592f2517d8b -> DMC:9c6df90f-76eb-4355-a632-4592f2517d8b
[INF] - [08/10/2020 08:49:20.541 AM] - LookupField = {parentcustomerid.Account(accountnumber).Contact(msdyn_contactpersonid)}, Reference = {/account(15239284-41d2-ea11-a812-000d3a38a16c)}, Requested Attributes = {accountnumber}
</TraceText>
</OrganizationServiceFault>
The CRM is a sandbox environments, so i can't do a error log of this enviroment, isn't it?
Otherwise is there a doc to turn the error log on and get them reports which you need?
Thank you very much.
Best greetings,
Philipp