SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 991 forks source link

TraceCorrelationId is not passed anymore to the event receivers #9552

Open Saulius-Laurinaitis opened 4 months ago

Saulius-Laurinaitis commented 4 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint CSOM

Describe the bug / error

When executing CSOM requests I am setting a custom TraceCorrelationId on client context, then executing a request, but it is not passed anymore to the remote event receivers SPRemoteEventProperties.CorrelationId. It was always working, and now it stopped.

Steps to reproduce

  1. item.Context.TraceCorrelationId = [System.Guid]::NewGuid()
  2. item.UpdateOverwriteVersion()
  3. item.Context.ExecuteQuery()
  4. in remote event receiver SPRemoteEventResult ProcessEvent(SPRemoteEventProperties properties) check properties.CorrelationId

Expected behavior

properties.CorrelationId should be the same as passed

ghost commented 4 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Saulius-Laurinaitis commented 4 months ago

it is working again, but this is not the first time it stops working and is working again. Please explain what is happening.