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 365 | Integration, Dataverse...
Suggested Answer

SImple Business process flow, 'Next stage' button produces error

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

I am a new user to Dynamics 365.

I created a Business Process Flow through Power Automate, I have created 5 stages based on one entity.

The visuals look good, however, when I try to test it and try to go the next stage I get the following error on the screen (see screenshot):

I get the same error when I just have two stages and try to go from stage 1 to stage 2, tried to rebuild it with a new entity and flow, but no success.

Anyone any idea? The error message for me is not clear at all as a novice user. Thanks in advance,

Erro211111.pngErro222222.pngErro233333.png

Error log:

at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Update(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Boolean checkForOptimisticConcurrency, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.Update(Entity entity, UpdateOption updateOption)
at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.UpdateEdmEntity(CrmODataExecutionContext context, String edmEntityName, String entityKeyValue, EdmEntityObject entityObject)
at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)
at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.<>c__DisplayClass10_0`2.<InvokeActionAndLogMetric>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
Activity Id: 9bbf3e50-af60-4f6c-ab3d-9ca63ef0f094

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi, 

    Did you create your record first before moving betwen stages ?  

  • Codingbridge Profile Picture
    20 on at

    Hi Mehdi,

    Thanks for your answer.

    I assumed to moving to the next stage would include the action of creating the record based on the data filled out in the first stage.

    But I guess this is the wrong assumption?

    How can I have the record created on the moment the button is go to 'Next stage' is pushed?

    Thanks.

  • Codingbridge Profile Picture
    20 on at

    Hi Mehdi,

    Thanks to your answer I thought of the following:

    I added a workflow step that gets triggered on stage exit.

    In the workflow I added two steps:

    - One to create the record and fill out some fields

    - Two to stop the workflow (I added this later to not get into a loop)

    However I get the following error now (when clicking on 'next stage'):

    This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help.

    I guess the workflow is getting triggered as I am getting a different error message now, only I dont understand why it is getting in a loop as there are only two steps (before even only one), and the trigger is the stage exit, so I guess it cant not be the case that is triggered again-and-again.

    Anyone any idea?

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    Can you please share your workflow with some screenshots ?  

  • Codingbridge Profile Picture
    20 on at

    Hi Mehdi,

    Thanks for your answer.

    See first screenshot of the whole flow:

    As you can see the workflow (second screenshot) gets triggered on stage exit.

    7827.Flow1.PNG

    The workflow that gets triggered consists of two steps:

    2steps.PNG

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Hi, 

    I will replay your scenario tomorow. Maybe I miss something. You don't need a workflow to resolve your first error.

    Please uncheck process is assigned in your workflow configuration.

  • Codingbridge Profile Picture
    20 on at

    Thank you for your help, I am curious to see what happens on your side.

    I tried unchecking process is asigned (see screenshot below), but still the same 'loop' error.

    uncheck.PNG

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    Hello,

    Can you share full error message show in one of your screenshot  about invalid argument ? -

    pastedimage1589879940640v3.png

  • Codingbridge Profile Picture
    20 on at

    Hello Satish,

    This message is slightly different because I created another flow for testing, but I still get a similar message when pressing 'Next stage', this is the error message:

    ReferencingEntity=new_newexternalaudit has attribute bpf_new_newexternalauditid value=Guid.Empty for relationship=bpf_new_newexternalaudit_new_newexternalaudit, relationship.ReferencedEntity=new_newexternalaudit, relationship.ReferencedAttribute.PlatformName=businessprocessflowinstanceid

    Thank you.

  • Codingbridge Profile Picture
    20 on at

    I tried another workaround: add an action step in which the record is created and delete the workflow.

    I added the action step based on this information: docs.microsoft.com/.../add-action-business-process-flow

    I was able to add but when I go back to the screen the 'execute' button is greyed out and I can't click/trigger it even though I do meet the two criteria that are mentioned on the Microsoft page which are:

    To be able to execute an action or workflow on demand:

    The business process flow must include an action step. If the action step runs a workflow, the workflow must be configured to run on demand.

    The entity associated with the action or workflow must be the same as the entity associated with the business process flow.

    See screenshot of greyed out button:

    Triggerbutton.PNG


    Everything I am doing is in a community plan environment, could that be the explanation for some of my issues? Anyone any idea? Thanks.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans