Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

"configure run after" setting seems to be ignored in parallel action

Posted on by 38

Hi,

I have a flow which attempts to create a record in Salesforce. Salesforce has some validation to check for duplicates and will reject attempts to create records that are duplicates. I wanted to keep track of which ones were rejected and which ones were successfully created by saving the emails in an array varable. Below is what I have currently setup:

Flow_1.JPG

 

After the attempt to create record, it should go to the left if successful and right if not. In the Append to array variable actions I have setup the "run after" settings to the following:

Flow_2.JPG

When I tested the flow, I got an error message which indicates:

ActionConditionFailed. The execution of template action 'Append_to_array_variable_-_error_create' is skipped: the 'runAfter' condition for action 'Create_record' is not satisfied. Expected status values 'Failed, Skipped, TimedOut' and actual value 'Succeeded'.

 

Flow_3.JPG

 

It seems that it's going to execute the right action, even though it the condition is "Succeeded", but the right action should only be executed if it's the other conditions. I was wondering how do I make it always go left if it's "Succeeded"?

 

Sincerely,

 

Jason

 

  • Jason Yeung Profile Picture
    Jason Yeung 38 on at
    Re: "configure run after" setting seems to be ignored in parallel action

    @VictorIvanidze ,

     

    Here's the entire flow. The part that I initially showed is in the "Apply to each record from CRM" loop.

    EntireFlow.JPG

  • VictorIvanidze Profile Picture
    VictorIvanidze 11,838 on at
    Re: "configure run after" setting seems to be ignored in parallel action

    Hi @JasonYeung ,  please show the whole flow.

  • Jason Yeung Profile Picture
    Jason Yeung 38 on at
    Re: "configure run after" setting seems to be ignored in parallel action

    Hi @PrasadAthalye ,

     

    Thanks for your help. I realized there was something I forgot to mention. I'm looping through a bunch of accounts from Dynamics CRM and trying to insert each one to Salesforce. The screenshot above only shows the inserting to Salesforce part. But this is within the loop.

     

    As Salesforce has some logic that rejects duplicate accounts, after the loop completes, I want to be able to identify which one was created successfully and which one is rejected. There is some code after and outside the loop which parses the JSON file and generates an email of which ones were created and which ones were rejected.

     

    What currently ends up happening is that when I see this error, it stops the loop. So it doesn't send the email to me. I don't want the loop to stop, I want it to continue for all the accounts.

     

    Sincerely,

     

    Jason

     

  • PrasadAthalye Profile Picture
    PrasadAthalye 4,795 on at
    Re: "configure run after" setting seems to be ignored in parallel action

    Based on the screenshot, Left Side actions will only be executed if the Salesforce action succeeds. In this case, it did succeed so the left portion was executed. The message is saying that right side action is skipped since it did not meet the condition of execution. This is expected behavior,

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard