cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
felipereis50
New Member

When a file is created or modified (properties only) - Runnig two times same file

Hello,
I would like some help.

I don't know much about power automate, and based on videos on youtube I'm creating a flow that when an excel file is added to the folder, power automate will read the table with several lines and include it in the sharepoint list.



The problem is that for some reason the flow is being generated twice (for the same file)

For example: I upload 1 file, with two lines in the table, and the flow is generated twice or "Running" for the same file.

After two minutes the second flow starts.

I don't know why the system is understanding that I have uploaded a following file.

What do I need to do to avoid?

See screen shots

1

felipereis50_0-1670461005652.png

2

felipereis50_1-1670461056112.png



3

felipereis50_2-1670461085564.png



4)

felipereis50_3-1670461162479.png



5) Sharepoin list ( Two itens created base on table)  It's all right

felipereis50_4-1670461197980.png


6) 

felipereis50_5-1670461282322.png

 

 

7) 

felipereis50_6-1670461332688.png




My Flow

felipereis50_0-1670462066066.png

 

felipereis50_1-1670462075130.png

felipereis50_2-1670462093303.png


felipereis50_3-1670462109551.png

 

 

 

felipereis50_4-1670462118264.png



felipereis50_5-1670462133215.png



felipereis50_6-1670462145031.png

 


All my flow is returning this flow checker

felipereis50_0-1670462909882.png

 



1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @felipereis50 ,

 

If you want to trigger a flow when a new file is created and need to update this file in next action, please use the trigger 'When a file is created'.

 

I did a test:

Use ‘When a file is created or modified’ and ‘Update file properties’.

vxiaochenmsft_0-1670476616759.png

 

 

The action of update the file triggers the flow again, so the flow runs twice.

vxiaochenmsft_1-1670476616761.png

 

 

 

Use ’When a file is created’.

vxiaochenmsft_2-1670476616762.png

 

 

The trigger is not fired again, and the flow only runs once.

 

vxiaochenmsft_3-1670476616763.png

Best Regards,

Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @felipereis50 ,

 

If you want to trigger a flow when a new file is created and need to update this file in next action, please use the trigger 'When a file is created'.

 

I did a test:

Use ‘When a file is created or modified’ and ‘Update file properties’.

vxiaochenmsft_0-1670476616759.png

 

 

The action of update the file triggers the flow again, so the flow runs twice.

vxiaochenmsft_1-1670476616761.png

 

 

 

Use ’When a file is created’.

vxiaochenmsft_2-1670476616762.png

 

 

The trigger is not fired again, and the flow only runs once.

 

vxiaochenmsft_3-1670476616763.png

Best Regards,

Wearsky

Hi my friend.

Oww...
OK!!
I will definitely try that.

Thank you 
Cheers

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,058)