Lately updated test environment from CRM 2016 SP1 to 8.2.0.749 (Dynamics 365 On-Premises)
Built in (OOB) and custom business process flows don't work for either newly created or existing records. I cannot switch process flow. I cannot proceed to next stage. Either with GUI or javascript. When I press Next Stage, it kind of jumps to next stage, but the active one remains the previous one.
So, given 2 organizations: TEST (newly created Dynamics 365 Org) and EXIST (existing one, upgraded in-place, including database. This DB was created at least with version CRM 2013, could be even CRM 2011)
Trying to debug situation:
- Create a new, empty organization (TEST) and import our custom solution: OOB and custom Business Process Flows do work. Ok, that means fresh Organizations have no problem.
- Reimporting solution within existing organization (EXIST) that was upgraded - doesn't help.
- Activating, deactivating, changing Business process flow ownership - doesn't help.
- Importing EXIST backup from CRM2016SP1 as another organization - doesn't help.
I did capture HTTP requests from both organizations: TEST, EXIST. The requests match, no problem (only record id's different). Comparing response, I see that traversedpath and stageid remains old one for EXIST oganization. For TEST organization it returns new stage and traversedpath values correctly. So that means that there is no problem with CRM UI or HTTP request, but it has to be within application logic/database.
I did try to capture requests for BusinessProcessFlowInstance and ProcessStage tables/views to see if anything suspicious happening there like SQL errors or no data returned or something. For EXIST organization, 3 SQL SELECTs where issued and nothing more. For TEST, many more requests were issued, including UPDATE/INSERT statements. However, nothing suspicious for those 3 SQL SELECTs for EXIST organization: they all contained valid data compared to TEST.
One step in business process flow appears to work when entity transition happens, when qualifying LEAD -> Opportunity. But when on opportunity, no longer business process flow steps work.
Couldn't find anyone having such problems. Ideas?