Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Processes are not activated on solution import to new environment

Posted on by 165

Hey All,

I am running into this issue while trying to export a solution from our DEV environment to our PPE environment. 

I have two business processes linked to the case entity; "Case - In Person" & "Case - Set Template" that are experiencing this issue. I have other process in this solution that are working correctly. I am able to create and export this solution without issue (making sure that everything is published). On import, there are no errors or warnings (including looking in the import logs).

However when I look at my process list I can see that these two process above are not activated in PPE. I'm at a loss for why this is as other items I've exported in this solution are activated correctly in both DEV and PPE. 

I would appreciate any help/feedback on this.

Thank you,

Taylor

*This post is locked for comments

  • Verified answer
    Nishant Rana Profile Picture
    Nishant Rana 55 Microsoft Employee on at
    RE: Business Processes are not activated on solution import to new environment

    Also we had selected Override option.

  • Suggested answer
    Nishant Rana Profile Picture
    Nishant Rana 55 Microsoft Employee on at
    RE: Business Processes are not activated on solution import to new environment

    With managed solution what we observed is that it will change the state of the workflow  whether new or existing. It won't change the ownership.

  • Verified answer
    tayapr Profile Picture
    tayapr 165 on at
    RE: Business Processes are not activated on solution import to new environment

    Answer:

    Finally figured it out.

    By default, if it's a new process- Dynamics will assign whatever state (activated/deactivated) whenever you export or import it.

    In my particular scenario, this was an existing process had been imported to ppe already as de-activated. When I activated and imported it, the state did not change because Dynamics by default will not change the activated/deactivated state of an existing process.

    6888.err.png

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Business Processes are not activated on solution import to new environment

    Hi Taylor,

    Normally, CRM checks for various dependencies during import. sometimes,  there is a chance that we miss them(sometimes we might even not know that it is the dependency). I think your's also might be the same root cause

    So, its better to try alternate approaches like this.

    <<Please mark my answer as verified if it resolved your Query>>

  • tayapr Profile Picture
    tayapr 165 on at
    RE: Business Processes are not activated on solution import to new environment

    Hey Rawish,

    I reviewed the BP's between environments and it's all identical for this process. Below I took Lathin's advice and after activating it manually, I re-imported my solution. This resolved the issue, but I am still uncertain of the root cause.

    Thanks

  • tayapr Profile Picture
    tayapr 165 on at
    RE: Business Processes are not activated on solution import to new environment

    Hey Lathin,

    I tried to activate it and it worked without error. I then re-imported the solution from dev-ppe to see if this would overwrite the changes I made in PPE and it did not.  It did however give me an warning message saying

    "The original process has been deactivated and replaced with the process included in this solution".

    While technically this has solved the issue, I am still at a loss for why this is happening and have nothing to understand . I am wondering if this is a CRM bug.

    Thanks,

    Taylor

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Business Processes are not activated on solution import to new environment

    This Might Happen due to some refernces missing in target environment.

    Try Activating it manually after importing the solution. this will show you exact error if any

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Business Processes are not activated on solution import to new environment

    Hi Taylor,

    I have experienced this issue and it generally happens if you have hard coded any lookups in the BP ( or may branched logic uses it).

    try to avoid them or if you really need them - make sure the GUIDS of the ref data( referenced in the BP)

    apart from i dont see any reason why it should be deactivated.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans