question

BHoegenDijkhof-1990 avatar image
0 Votes"
BHoegenDijkhof-1990 asked CaseyYangMSFT-4714 commented

Azure Logic App is triggering 2 times from SharePoint Online when only updating 1 field

Hi,

I expirienced a problem with triggering Azure Logic apps from SharePoint Online. The user is editing an item and updates 1 field. However the Logic App behind the list is getting 2 triggers very fast. The problem is that the workflow is creating another item on another list and processes the current list item by changing a field to another value, but because it triggers in very fast succesion, the logic app is not able to see the updated field and creates another list item.

The workflow is triggered when an HTTP request is received and first is checking if the item is already processed. Before creating the other item, the workflow gets current item context again and checks again if its processed. It looks like when working with PowerApp forms, other workflows are trigger only once. There are not any other choice fields that changes values what so ever. Is there anyone who can explain why the workflow gets triggered 2 times?

I hope I can find a solution,

office-sharepoint-onlineazure-logic-apps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Some thoughts here:

  • Any reason, you are not using Power Automate here instead of Logic App?

  • "the current list item by changing a field to another value": You sure, this event is not triggering the Logic App again? If the trigger is Item updated and this would also make it trigger.


0 Votes 0 ·

Thanks for your reply.

We are using Logic Apps because it was a requiremnt of the customer. Long story and cant change anything about that..

The update item sure is triggering the workflow again. I handle that with a condition as a first step of the workflow. This is not a problem. The problem is that the first time, the workflow is fired 2 times at exactly the same moment.

We are using the CSOM connector and the connector only gets 1 change message, however the Logic apps sometimes fires 2 times.

As a test Ive set the retry policy of the action in the Logic app which recieves the message and sends it to the right Logic app to default. But Maybe You have another idea as wel.

0 Votes 0 ·

1 Answer

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered CaseyYangMSFT-4714 commented

Hi @BHoegenDijkhof-1990,

Please check if there is any other flow or workflow related to this field. A lot of similar problems are caused by the logic contained in the Flow that was created before, which affects the normal operation of the existing Flow.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @BHoegenDijkhof-1990,

I'm checking how the things are going on about this issue. Is there any progress on this issue?

0 Votes 0 ·