Reputation: 65
I am trying to use a for each loop in listing the folders in a ftp location using ftp trigger in logic app. However i am getting unauthorized error for few folders when listing the contents of the folder. At first i thought this was a permission issue, but after couple of runs i noticed that the unauthorized files are varying from run to run. Do we need make any custom setting when using for each in logic apps. Any help will be appreciated.mylogicapp design
Upvotes: 0
Views: 1485
Reputation: 65
Move to the code view and add "operationOptions": "Sequential", as the same level as "type":"Foreach".
"forEach_email": { "type": "foreach", "foreach": "@body('email_filter')", "operationOptions": "Sequential", "..." }
Upvotes: 0
Reputation: 566
There are not that many settings you can alter on the for-each, however the most important one is the number of parallel executions. How many folders (and files) are you trying to process? Maybe you are running against the FTP limit of max. 900 API calls per connection? It's just an idea though.
What happens if you lower the number of parallel executions of your for-each? Standard is 20.
Upvotes: 1