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

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Workflow Error : Workflow must be in Published state

(0) ShareShare
ReportReport
Posted on by 6,211

Hi All,

I am trying to call failed workflow using c# code, and when it execute failed workflow it is giving error "Workflow must be in Published state",

Below is my workflow,

workflowpublish.PNG

Any help would be appreciated.

Thanks,

Shahbaaz

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Shahbaaz,

    If I am not wrong  seems "Opportunity Team" is a custom entity ,  check whether this entity has any type of association with another entity workflow or SLA. Deactivate and activate those workflow or  SLA and try again.

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Shahbaaz,

    Are you sure that the workflow you are calling from your code is this workflow? I would suggest to double check the Guid of the workflow.

    Hop this helps.

  • Community Member Profile Picture
    on at

    As suggested by the Ravi I would suggest double-checking that you're calling the correct workflow. If it's definitely correct then I'd suggest Deactivating and then Reactivating the workflow and see if the issue still occurs.

    Failing that if you could share your c# code I'd be happy to take a look.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ZS-27011425-0 Profile Picture

ZS-27011425-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans