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

Flow to Move On-Prem SQL Record into SharePoint List

Hi, I am fairly new to Power Automate and I have an MS Flow that has been working for months, but recently, I have been receiving the following error, "Action Failed. An action failed. No dependent actions succeeded." It is causing my flow to appear as it has completely failed, but the true records in the condition do get created in SharePoint.  I believe this is due to the fact that the Primary Key already exist in the Azure SharePoint list, so it failed to create a new record.

 

I am trying to add a condition to first check if it already exists, if so, then do nothing, if it does not exist and meets the other condition, then add record into SharePoint. Not sure if I should use Scope instead, or add this additional check in upfront?

 

Could anyone please review my flow setup and make sure that I am building it with best practices in mind and help me enhance my flow?

Capture.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @NicholasRLeon ,

 

you need to check if the record in SQL server is exists in the sharepoint list with a Filter Array function as the link below:

https://powerusers.microsoft.com/t5/Building-Flows/Check-if-an-item-exists-in-a-SharePoint-list/td-p...

 

The screenshot of the flow as below:

1.png

length(body('Filter_array'))

 

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-alzhan-msft
Community Support
Community Support

Hi @NicholasRLeon ,

 

you need to check if the record in SQL server is exists in the sharepoint list with a Filter Array function as the link below:

https://powerusers.microsoft.com/t5/Building-Flows/Check-if-an-item-exists-in-a-SharePoint-list/td-p...

 

The screenshot of the flow as below:

1.png

length(body('Filter_array'))

 

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,673)