Cannot delete on premise file with File System Delete File in Logic App

Wall, Meredith 0 Reputation points
2023-03-22T21:56:04.27+00:00

I have created a Logic App that connects to an on premise file system. I have a data gateway setup and am successfully pulling a file from it, getting the file content, and creating a new file with its contents to a separate FTP connection.  I want to delete the on premise file after the process, however I cannot get it working.  I have tried using the delete file action and placing the 'list files' ID, Path, Name, DisplayName, etc. and no luck.  It either says it cannot find the file, or when I choose Name, it says success but the file does not actually delete.  

Here is the workflow:
User's image

Again, it only fails at the Delete File step, so I know it is not a connection configuration issue because I am already able to retrieve the file and the contents.

The strangest part is that the workflow completes successfully when the files dropped in the on premises folder have extensions of .txt -- the delete file action succeeds and the files are actually deleted; however, the files that I will need to be picking up are .csv, and this is when the Delete file action fails. Why is it that only the csv files encounter this issue? Any help would be much appreciated

Here is the error message I receive when it fails:User's image

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

1 answer

Sort by: Most helpful
  1. Wall, Meredith 0 Reputation points
    2023-03-23T00:23:20.4733333+00:00

    For anyone that might encounter the same issue, I was able to resolve the issue by changing the Concurrency Control limit to 1.

    In the Logic App designer view, it looks like this..

    On the Trigger step, select the settingsUser's image

    Then find Concurrency Control and set the limit to 1User's image

    If you wish to make these changes in the logic app's json file, be sure to add the runtimeConfiguration concurrency code below to your trigger section :

    User's image


Your answer

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