cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
priyeshwagh777
Kudo Collector
Kudo Collector

Dataverse Flow triggering twice on field change - Trigger Condition issue

Hi All,

 

I have a Dataverse trigger Flow which is triggered when a PSA Invoice is Marked as Paid i.e. an out-of-the-box ribbon button on Invoice, the OOB field it changes is Project Invoice Status (msdyn_projectinvoicestatus)
button.png

And when I click this button, the Invoice is marked as Paid, but the Flow is triggered twice - 
triggerdTwice.png

This is what the Flow trigger looks like - 

flowTrigger.png

We have a Trigger Condition that is fired off a very specific condition i.e. Project Invoice Status = "Invoice Paid"
condition.png

Also, to back this up, the Audit history looks like it was changed only once.

audit.png

 

 

Any thoughts on why this is the case? The Flows shouldn't be triggered more than once as per the last screenshot where it is changing the field only once (and then the other fields are changed, and not Project Invoice Status)

When trying to work with other fields, it correctly gets triggered only once.

 

Kindly advise! 🙂

7 REPLIES 7
Haw_Isaac
Regular Visitor

We are seeing a very similar phenomenon with our quote entity, albeit only intermittently.

 

We have a ribbon button that sets the status to submitted and a flow that triggers on that status alone.

Haw_Isaac_0-1641577633692.png

 

We both viewed the audit in application and via XRMToolbox and both showed a single update:

Haw_Isaac_1-1641577685306.png

 

However the flow still triggered twice. Interestingly, the second flow that triggered showed the record had a modified date that was 19 seconds after the first that had triggered:

 

Haw_Isaac_2-1641577782947.pngHaw_Isaac_3-1641577792229.png

 

We still haven't found the root cause, but I am wondering if it might be a double post of the status field updating even though the audit shows a single update.

 

Please share if you found the cause in your case!

ManishJain
Solution Sage
Solution Sage

Hi @priyeshwagh777 & @Haw_Isaac ,

 

Can you please check if there are any other plugin or workflow running in the background on change as this happens within milliseconds you wont be able to notice. 

 

Also as @Haw_Isaac mentioned, can you please put the column and condition in Select Column and Filter rows condition parameter.

 

Thanks

priyeshwagh777
Kudo Collector
Kudo Collector

Hi @Haw_Isaac & @ManishJain ,

 

When I worked with Microsoft Support on this, I learnt that this was being caused due to 2 Callback Registration records being created in Dataverse. This causes the Flows to trigger twice for the same operation.

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/entities/callb...

 

Now, I don't recollect what was the exact fix but all we did was based on some criteria upon comparing, we just had to delete 1 of the callback registration records in order for the Flow to Run only once as it's supposed to.

 

If possible, I'll try to get in touch with the support to understand what we'd done back then.

Hope this hint helps! Thanks! 😊

Naveen_772
Resolver II
Resolver II

 @ManishJain @Haw_Isaac 

 

I also noticed the same issue in one of our client env. The cause of the issue was the same. Duplicate callback registrations were present in our env. You can always open a ticket with the Microsoft support team and they will assist you. But to make things clear I am going to explain what they did in our env.

 

You can always check all callback registrations that are registered for your env and mitigate the issue. 

 

  1. First, you need to identify if there is duplicate callback registration for the same flow. You can use web API to retrieve all the callback registration. This can be a little tricky. You need to compare the "entityname" and "
    filteringattributes" property to identify the duplicate registration.
    •   Link for getting all callback registration :- [org URI]/api/data/v9.0/callbackregistrations

     2. Once you have identified the duplicate call back registration. Grab the "callbackregistrationid" value.

    3. Delete the duplicate callback registration. You can either do it using the web API or a simple flow.

Naveen_772_0-1641732729898.png

 

I hope this helps you a little bit. 

 

Thanks,

Naveen

 

 

priyeshwagh777
Kudo Collector
Kudo Collector

Thanks @Naveen_772 ,

 

Yes, that's what they did for us as well. Additionally, they also had a specific script to run and identify which of the callback registration to remove.

I'll get in touch with MS Support and see if I can get the exact steps.

Thanks!!

kevmscotland
Frequent Visitor

We're encountering a similar issue. We tend to find a deployment creates a duplicate callback registration but we heavily use Power Automate Flow in our system, and continually reviewing the callback registrations for duplicates is a problem we really need resolved.

I'm curious from your time at Microsoft if you have a greater understand of how the Callback Registration works.
We noticed that newer Dataverse connectors seem to use the Flow ID as the name on the callback registration, but this does not apply to Legacy Dataverse callback registrations.

There doesn't appear to be any direct link or relationship you can use to trace a callback registration directly to its Flow, unless I'm missing something else?

SohoMantis
New Member

I managed to fix by repointing the LA trigger to a different entity.  Saving.  Then repointing back to Account.  Problem solved!

 

I was facing exactly the same issue with a LogicApp.  Root cause seems to be two Callbackregistration records being created when my triggering Account field was modified.

 

After trying EVERYTHING (turning LA on and off again, turning off workflows, plug-ins etc, setting concurrency to 1...) I tried the above solution and couldn't believe it when it worked.

 

My LA is being used to create records in another system so just in case this randomly crops up again I've inserted a Delay step using a random number expression to wait 1-180 seconds -  "rand(1,180)".  If two runs do get kicked off simultaneously  this random delay allows me to add a check if the other run gas already kicked in (by fetching the source record again with a "Get row by id") and checking if it still meets criteria to be processed.

 

Helpful resources

Announcements

Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft MVP Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show!      Show schedule in this episode:    0:00 Cold Open 00:30 Show Intro 01:02 Dian Taylor Interview 18:03 Blogs & Articles 26:55 Outro & Bloopers    Check out the blogs and articles featured in this week’s episode:    https://francomusso.com/create-a-drag-and-drop-experience-to-upload-case-attachments @crmbizcoach https://www.youtube.com/watch?v=G3522H834Ro​/  @pranavkhuranauk https://github.com/pnp/powerapps-designtoolkit/tree/main/materialdesign%20components @MMe2K​ https://2die4it.com/2023/03/27/populate-a-dynamic-microsoft-word-template-in-power-automate-flow/ @StefanS365 https://d365goddess.com/viva-sales-administrator-settings/ @D365Goddess https://marketplace.visualstudio.com/items?itemName=megel.mme2k-powerapps-helper#Visualize_Dataverse_Environments @MMe2K    Action requested:  Feel free to provide feedback on how we can make our community more inclusive and diverse.    This episode premiered live on our YouTube at 12pm PST on Thursday 30th March 2023.    Video series available at Power Platform Community YouTube channel.    Upcoming events:  Business Applications Launch – April 4th – Free and Virtual! M365 Conference - May 1-5th - Las Vegas Power Apps Developers Summit – May 19-20th - London European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas    Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community    If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.       

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren   David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Users online (3,628)