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 :
Customer experience | Sales, Customer Insights,...
Unanswered

PlugIn times out with "Operation timed out. Cache name : PutInternal"

(0) ShareShare
ReportReport
Posted on by 45

I am stumped beyond belief with a plugin that should be working. Here's the scenario, running in Dynamics 365 Online:

I have an entity that has a plugin registered for Retrieve. The plugin takes an entity, queries an external source, and augments the data being returned with additional fields from this external source. The design is to register the synchronous event as Post Operation, returning the augmented entity as the output parameter for the plugin context.

context.OutputParameters["BusinessEntity"] = entity;

I have plugin trace enabled in my environment, which typically works well except for this specific plugin. I have other plugins that do similar things, but those all work except for this one. 

If I register the Retrieve step as pre-validation or pre-operation, trace works well but neither of these stages will allow me to return the entity as an output parameter. 

If I register the Retrieve step as post-operation so that I can return my custom entity as an output parameter, I get no trace, no plugin profile, and when using the model-driven UI to view the record, I get an ugly message in the UI that states:

Operation timed out. Cache name : PutInternal
DataSource._PutInternal:[ModernDataSource].retrieve:[ModernDataSource].serializeRequests

pastedimage1610745424992v1.png

When using the odata API, I just get a message stating that it cannot find the record regardless of which stage I use for the plugin: 

{
    "error": {
        "code": "0x80040217",
        "message": "xxx_entityname With Id = 00000000-0000-0000-0000-000000002377 Does Not Exist"
    }
}

I've removed the augmenting code so that it will just return the data. I've traced the return object with the pre-events, and it appears to be setting the output parameter correctly. I've even tried to throw an InvalidPluginExecutionException at the beginning of the plugin just to get trace or profiling to work, but no luck. Without having any visibility into the execution context (trace or profiler), I have exhausted the options I am aware of.

Can someone help me with this issue? Searching the web for PutInternal yields no results relevant to Dataverse or Dynamics, so I fear this is a new issue that was recently introduced by the platform. 

Thank you.

I have the same question (0)
  • Madalina Toma Profile Picture
    on at

    Hello Tony,

    Thank you for posting on Community forums.

    I had tried to type down the GUIDs available for the ActivityId and for the SessionId and have a look into the telemetry, but unfortunately I am unable to find them.

    I would like your help with the following detail:

    1. reproduce the issue one more time and provide the entire error message to this thread

    Without being able to trace this issue properly I am unable to understand find out what happens behind the scenes.

    Other than this, I would like to confirm if you have impersonation in your plugin, if you do, please make sure the user in the impersonation has read access to the entity from the output.

    Thank you!

  • Tony Balogh Profile Picture
    45 on at

    Here is the error codes that are copyable:

    Session Id: eaee8a74-2373-4d4c-b396-8e7a9212c1b0

    Activity Id: 159f968a-8176-4924-afb0-8b177c92358c

    Timestamp: Fri Jan 15 2021 14:10:13 GMT-0700 (Mountain Standard Time)

    Operation timed out. Cache name : PutInternal

    DataSource._PutInternal:[ModernDataSource].retrieve:[ModernDataSource].serializeRequests

    Here is the error codes from today's repro:

    Something has gone wrong. Check technical details for more details.

    Technical Details

    Session Id: b6629db1-1bd8-4ad2-81e8-1e34f52a1644

    Activity Id: 60dd1675-c459-42f8-930b-3ab433f77e22

    Timestamp: Tue Jan 19 2021 09:07:33 GMT-0700 (Mountain Standard Time)

    Operation timed out. Cache name : PutInternal

    DataSource._PutInternal:[ModernDataSource].retrieve:[ModernDataSource].serializeRequests

    The plugin is set to run under the calling user's context. For this repro, this should be using my account which has system customizer and system administrator roles assigned.

    I cannot get the plugin trace log to write anything, so I have no backend details about why this request failed.

    Thanks.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans