简体   繁体   English

对于每个Azure Logic应用

[英]For each in Azure Logic apps

I am trying to use a for each loop in listing the folders in a ftp location using ftp trigger in logic app. 我试图在逻辑应用程序中使用ftp触发器在ftp位置列出文件夹中的每个循环中使用a。 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 mylogicapp设计

There are not that many settings you can alter on the for-each, however the most important one is the number of parallel executions. 您可以在for-each上更改的设置并不多,但是最重要的设置是并行执行的次数。 How many folders (and files) are you trying to process? 您要处理多少个文件夹(和文件)? Maybe you are running against the FTP limit of max. 也许您正在针对最大FTP限制运行。 900 API calls per connection? 每个连接900个API调用? It's just an idea though. 不过,这只是一个主意。

What happens if you lower the number of parallel executions of your for-each? 如果您减少for-for的并行执行次数,会发生什么情况? Standard is 20. 标准为20。

Move to the code view and add "operationOptions": "Sequential", as the same level as "type":"Foreach". 移至代码视图,并添加“ operationOptions”:“ Sequential”,与“ type”:“ Foreach”的级别相同。

"forEach_email": { "type": "foreach", "foreach": "@body('email_filter')", "operationOptions": "Sequential", "..." } “ forEach_email”:{“ type”:“ foreach”,“ foreach”:“ @body('email_filter')”,“ operationOptions”:“ Sequential”,“ ...”}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM