azure-logic-apps

Azure logic App - Fails to complete the message in a queue

时光总嘲笑我的痴心妄想 提交于 2021-02-10 16:22:15
问题 I have a queue and couple of Azure functions in Azure Logic App. An Azure function takes 5 minutes and when the event "Complete the message in queue" runs in logic app, it fails. Following is the output. { "status": 400, "message": "Failed to complete the message with the lock token '{the-guid}'. The lock on the message has been lost.", "source": "127.0.0.1" } It was not happening a week ago. 回答1: Lock duration of a message is configurable if you navigate to Service Bus -> Queue -> Properties

Azure logic App - Fails to complete the message in a queue

穿精又带淫゛_ 提交于 2021-02-10 16:21:15
问题 I have a queue and couple of Azure functions in Azure Logic App. An Azure function takes 5 minutes and when the event "Complete the message in queue" runs in logic app, it fails. Following is the output. { "status": 400, "message": "Failed to complete the message with the lock token '{the-guid}'. The lock on the message has been lost.", "source": "127.0.0.1" } It was not happening a week ago. 回答1: Lock duration of a message is configurable if you navigate to Service Bus -> Queue -> Properties

logic apps web hook to chalkboard API timeout error

删除回忆录丶 提交于 2021-02-10 14:32:58
问题 How do I change the timeout duration in logic apps web hook and also in chalkboard API. The error message I get is. "message": "Http request failed: the server did not respond within the timeout limit. Please see logic app limits at https://aka.ms/logic-apps-limits-and-config#http-limits" 回答1: You can refer to Perform long-running tasks with the webhook action pattern. After understanding the webhook pattern, you need to design some code, you can refer to the following sample: using System.IO

Update and row id with SQl connector Azure Logic apps

ⅰ亾dé卋堺 提交于 2021-02-10 05:51:10
问题 So i have a little problem here. The Update sql connector in azure, how do i dynamically update a row by dynamically specifying the row_id. ROW_ID: I tried having: @string(actions('Converter')['outputs']['body']['Id']) inside there, from a previous action but it didnt work i get an error. is there any good way of doing this? 回答1: I just managed to get that to work after some struggling. The problem seems to be that you can't select dynamic content into the row id column because of some UI bug

Run azure logic app / connector as service principal

喜欢而已 提交于 2021-02-10 05:15:28
问题 Is it possible to run a logic app or connector as a service principal, in particular under the consumption plan? I'd guess forcing the app to run in a non-consumption plan via powershell might give more control over the service principal. The reason I'd want it to avoid an individual's account to be used during an automated deployment. The closest I thought was to wrangle https://github.com/logicappsio/LogicAppConnectionAuth to do the oauth automagically using a service principal, however

Logic Apps - foreach loop very slow

巧了我就是萌 提交于 2021-02-09 18:59:54
问题 I've noticed that looping (using foreach) in Azure Logic Apps is very slow. As an example I've looped over a http result containing 8.000 JSON nodes (altogether 1.6MB data) and it took around 6 minutes to process which is an extremely long time compared with doing it in a .Net application. This is how the test was done: Test logic app, in this test the JSON data comes from a blob For me it's a common task to loop through a result set, should it be this slow? Do any of you know a better way to

Logic Apps - foreach loop very slow

浪子不回头ぞ 提交于 2021-02-09 18:57:39
问题 I've noticed that looping (using foreach) in Azure Logic Apps is very slow. As an example I've looped over a http result containing 8.000 JSON nodes (altogether 1.6MB data) and it took around 6 minutes to process which is an extremely long time compared with doing it in a .Net application. This is how the test was done: Test logic app, in this test the JSON data comes from a blob For me it's a common task to loop through a result set, should it be this slow? Do any of you know a better way to

IP whitelisting for logic app

时光毁灭记忆、已成空白 提交于 2021-02-08 07:58:26
问题 How to whitelist the IP address for the logic app. A service which is called by logic App (using HTTP action) but the service needs the whitelisted to be called to it. SO, how to whitelist for logic APP. Can we use Azure API management for whitelisting, which publishes logic App, as api management provides static IP. 回答1: Yes you are correct. You can use API Management to achieve this. This would allow for something like this And in API Management And then in Logic App If you want to read

Create a document in Cosmos DB via Logic App and PartitionKey mismatch in document & header

南楼画角 提交于 2021-02-07 19:18:34
问题 So I'm trying to create an Azure Logic App which will create a new record inside a Cosmos DB collection to store review results. I've created a Cosmos DB database (called icecream ) + collection (called reviews ). The PartitionKey of the reviews collection is /flavorIdentifier . In my Logic App I have a step which inserts a new document. The code looks like this. "Create_review": { "inputs": { "body": { "flavor": "@{body('JSON_parseren_2')?['flavor']}", "flavorIdentifier": "@{body('JSON

Foreach not supporting when the result set has one record in logic apps

六月ゝ 毕业季﹏ 提交于 2021-02-05 11:53:20
问题 I have to read data from an XML and load it to SQL. So in middle I need to add some business logic for each record for which I used for each task in Logic Apps. But when there is a single record in the XML, result is being considered as Object rather than array and logic app fails This is how my XML looks: <VDSP_INPUT_A_Set><VDSP_INPUT_A_Record><head><blanket_number>CMC741311</blanket_number></head></VDSP_INPUT_A_Record></VDSP_INPUT_A_Set> ForEach logic: VDSP_INPUT_A_Set.VDSP_INPUT_A_Record