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 365 Functionality not working as expected.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

1. Custom entity 

2. grid records.

after clicking on the individual record i go to the individual entity record form.

there is b.p.f having some stages.

to save the current stages name I find that a custom code is written on form load and save events which does take the value as stage name and set it to the custom field on the form which is of type single line of text.

when i click on Next Stage on b.p.f the bottom right corner button automatically changes to saving for sometime and later stops to normal position i.e. save button .

when i move back to the 2. grid records i saw the same record Stage Name still old one,

now again i click on that same record and move to individual entity record form there i find bottom right corner button showing Unsaved Changes .

This behavior is very annoying , can anyone help me in resolving this .

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at

    Hi,

    I would like to suggest you to check the script working on changing of stage (or on load)

    Record is not getting saved automatically when you are changing stage. Try writing script for forced save in script working on changing of stage.

    Hope this helps:)

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    You can give a try to do it via workflow. But be sure you test the parallel BPF scenario.

    ashwaniashwin.wordpress.com/.../capture-business-process-and-stage-name-for-each-record-in-crm-2013

    What is Parallel BPF.

    develop1.net/.../Dynamics-365-Business-Process-Flows.aspx

  • EmployeeOcta Profile Picture
    6 on at

    In a different staging server i have got one error when i clicked on the Next Stage button.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: To move to the next stage, complete the required steps.Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ActivityId>54420058-57a8-4163-bdf7-61293a2d57f7</ActivityId>

     <ErrorCode>-2147089382</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <Message>To move to the next stage, complete the required steps.</Message>

     <Timestamp>2018-01-25T04:58:09.970911Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault i:nil="true" />

     <OriginalException i:nil="true" />

     <TraceText>

    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.GlobalActiveStagePlugin]

    [bb48066e-f22f-412f-a530-91f72e4b859b: GlobalActiveStagePlugin]

    </TraceText>

    </OrganizationServiceFault>

    why this is happening then.

  • EmployeeOcta Profile Picture
    6 on at

    Also i would like to tell you that,In development instance the things are working correctly , but in test system it's not working.

    i think it could be because of multiple business rules.

  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at

    Hi,

    Please check if fields marked as required are filled before moving to next stage.

    Moreover,we faced same issue once. Required fields in bpf were containing values but error was thrown as "To move to the next stage, complete the required steps.". To resolve this only solution we had was to delete the fields from solution and recreate it. After that it was working fine.

    Thanks

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    maybe you can give a try to double check the BPF between two instances. Since the error message stated the required field is not complete.

  • EmployeeOcta Profile Picture
    6 on at

    Hello All Experts,

    I find that there is one field on the form which is in IsDirty mode.

    why it's not getting saved .

    although the same logic working in Dev but not in test environment.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    Let's try to debug it, perhaps the value is set when form is onload.

  • EmployeeOcta Profile Picture
    6 on at

    Hello Jie,

    I explicity set setsubmitmode to always for a custom field which is in dirty mode on form save and form load event,

    but still the same issue.

    i think this may be happening because of multiple business rules on the single entity.

    can you elaborate this problem.

  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    Share your code here, and the event

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