Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Getting Error Popup when updating a notes in a Custom entity.

(1) ShareShare
ReportReport
Posted on by 435

Hi guys , 

I have a custoum entity in that when I am updating a notes error is coming ?

Pls let me know how it can be rectified. ? Earlier it was not coming 

*********************

1832.inqqerr.png

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf76856765611364e35]]: Cannot find record to be updatedDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>5b039d5b-5673-4360-b39a-5457bc03b352</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:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2178735088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Cannot find record to be updated</Message>
<Timestamp>2018-08-16T13:50:39iu78497895Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[19c0ab00-767861aq8fg7-e611-80f5-506566452uuhc1: ]
Sync workflow 'Update Notes As per opportunity' terminated with error 'Cannot find record to be updated'

</TraceText>
</OrganizationServiceFault>

*This post is locked for comments

  • windyMill Profile Picture
    windyMill 435 on at
    RE: Getting Error Popup when updating a notes in a Custom entity.

    Hi Judy ,

    Thanks for your reply .  According to your suggestion I converted Workflow  to background workflow and it worked .But I checked this workflow  on updating notes in Inquiry(custoum Entity) it was updating "created by" , "created on" on description field of opportunity Entity.

    But I am sure when I am updating notes  it is not updating any thing in any other entity except opportunity.

  • Verified answer
    RE: Getting Error Popup when updating a notes in a Custom entity.

    Hi,

    This could happen if you are using several workflows that are calling the same entity even if you are trying to update different regarding entities.

    For example:

    1. Workflow that is triggered for Note entity to update information in the custom entity for all organization.

    2. Workflow that is triggered for Note entity to update information in Opportunity entity for all organization.

    If you put both workflows in background mode you will unlock workflows but you will find error for Workflow 1 every time that there is a modification in Opportunity entity, this is because information that is trying to be updated in custom entity doesn’t exists and you will find error: 'Cannot find record to be updated'. Similar thing will happen every time that there is a modification in Opportunity entity, system jobs will register workflows as failed or waiting with error: 'Cannot find record to be updated'

    If you put one workflow in real time and the other in background there will be a blocking error indicating that business process is failing, it will be not possible to create registers in the entity that has workflow in background mode.

    If you put both workflows in real time will block completely them and will be not possible to create notes in this case.

    Workaround:

    Put all workflows that are pointing to the same entity as 'Audit Update' in background mode and verify if this free the workflow.

    When changing workflows in background mode disable automatic delete for completed workflows so this could give you more information in system jobs if there is a corruption.

    Verify if there is no plugin that tries to update, create or read registers used by workflow.

    Hope it helps.

    BR,

    Judy

    ------------------------

    Appreciate to Mark as Answer if it helps you resolve this issue.

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Getting Error Popup when updating a notes in a Custom entity.

    Please go to Settings -> Customizations -> Processes -> 'Update Notes As per opportunity'

    This is an issue with the workflow named 'Update Notes As per opportunity'.

    If you need more help, please paste a  screenshot of the workflow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans