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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,948)