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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (15,908)