Logic Apps Copying Files from Sharepoint folder to Data Lake getFileContent error File not found

Debbie Edwards 521 Reputation points
2022-03-23T17:01:42.223+00:00

I'm attempting to copy some files from a Sharepoint folder to a Data Lake and working through some documentation

186167-logicappa.jpg

There are two files in here. an xlsx and a csv. However when i run the logic app it errors.

186213-logicappb.png

I don't know if its been deleted hidden or Im not authorised for this specific file but I would like a way I can just skip any file that is File not found and move onto the next one without the error.

The hope is I can then continue and find the files I want to copy into the Data Lake

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-03-24T09:44:30.017+00:00

    @Debbie Edwards Thanks for reaching out. As per the error 404 and looking into the site address of your screenshot the action is getting failed when you are trying to Get File Content on a folder. As it will return the list of folders and files. Either you can add a condition before executing the Get File Content to check if the iterated value is of type folder or not. If it is not a folder then only execute the Get File Content method else skip it as below.

    186402-image.png

    In a scenario where you want to execute the next action if there is any failure in the previous action then you need to handle the exception in your logic app workflow. You can refer to this document for more details on how you can handle the reception in the workflow.

    In the below gif you can see I am forcing my next action to be run if the previous action gets failed and succeded(by default). You need to handle the exception as per your need.

    186360-logicapp.gif

    Feel free to get back to me if you have any queries or concerns.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.