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 CRM (Archived)

CRM Online - Async Plugin

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I have a Async Plugin which creates 100 Task Records when a Task record is saved from the CRM task Form. the plugin is in inprogress state for a long time and after some time gets executed and completed. 

what is the issue here?

I am checking depth == 1 to prevent the plugin from executing the code block (which creates 100 tasks) again when a task is created by the plugin.

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Asanka,

    Are you having a problem, or is the workflow just taking a little while to run? If you're generating a lot of data I wouldn't expect it to be a quick process so that seems expected if anything.

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at

    Hi Aiden,

    It's not that much data i am generating.  Even when create 4 records this happens. this started from yesterday as i can remember.

    Its plugin registered in post operation of the task entity listening for create messages.

    Thanks

    Asanka

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Asanka,

    Is the Plugin fired on Create of Task ? Have you checked Plugin Trace logs for this.

    Seems plugin is getting timeout in 2 min limit.Please check.

    Also when plugin is Ended then how many new record you found created in system ?

    Regards,

    Kamran

  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    There was a CRM outage earlier this week which may be causing some lingering side effects.

    How long is the workflow in an In Progress state? It's an asynchronous workflow so it doesn't really matter if it take 5 seconds or 10 to run though, right?

    thanks,

     Aiden

  • Suggested answer
    BackToTheCrm Profile Picture
    on at

    As the others say, there is a 2 min limitations on plugins in sandbox.

    You can try to use the ExecuteMultipleRequest in order to bulk create your task : check this article.

    Check that there is no other workflow and/or plugins which are triggered at the creation of a task.

    If you are on premise, you can also consider to register the plugin outside the sandbox.

    If you're satisfied with my answer, please mark it as verified.

    Regards,

    Clément

  • Verified answer
    Community Member Profile Picture
    on at

    Thanks Everyone...

    Hi Aiden,

    There was an error i am getting when i check the system Jobs for the plugin. and this issue seems to be due to the outage you mentioned. because it was working on the previous environments without an issue and this issue started happening during last week.

    To make it run fast without queuing, i updated my plugin registration to sync from async.

    to get rid of the issue i had to do some code fix, but this is very strange...

    Thanks

    Asanka

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans