web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Correlation Id start on DEPTH 2

(0) ShareShare
ReportReport
Posted on by 65

Hi D365 Expert,

I have an odd issue that I haven't met before.

I just trace some process using plugin Trace Log and I found that my Correlation Id started on DEPTH 2.

What does it mean? 

Here's the picture so you guys can imagine how it happened

2500.Untitled.png

Thanks before hand,

Audrey

I have the same question (0)
  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    Hi Audrey,

    Correlation property is used by the platform for infinite loop prevention.

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.iexecutioncontext.correlationid?view=dynamics-general-ce-9

    Depth property gives you the current depth of execution.

    Every time a running plug-in or Workflow issues a message request to the Web services that triggers another plug-in or Workflow to execute, the depth property of the execution context is increased.

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.iexecutioncontext.depth?view=dynamics-general-ce-9

    Hope this helps

    Best Regards

    PG

  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

    One possibility is that the initial operation (with Depth = 1) is from a different process (workflow or plugin) that you are not tracing

  • Audrey Amelia Profile Picture
    65 on at

    Hi Pankaj,

    Thank you for your references. It's really help. :)

    Audrey

  • Audrey Amelia Profile Picture
    65 on at

    Hi David,

    For a couple of weeks, I'm looking for the process that you meant and maybe i found that one.

    I found one of our plugin step doesn't register in any Entity. So the previous condition is, First Entity = none and Secondary Entity = none.

    Now I have fixed it with the correct First Entity and so far no magic plugin is running since we do the monitoring in our environment.

    Thanks for the hint, David.

    Audrey

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans