This Logic App Requirement is:
- Get the messages from Azure Storage Queue.
- For each message, Create a blob in the container using message id.
- After creating the blob, delete the Queue
Every action is working fine, except the 3rd step. Deletion is not working fine. Where I did wrong?
Last Action Response:
{
"error": {
"code": 400,
"source": "logic-apis-centralus.azure-apim.net",
"clientRequestId": "<guidid>",
"message": "The response is not in a JSON format.",
"innerError": "<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value for one of the query parameters specified in the request URI is invalid.\nRequestId:requid\nTime:2022-12-13T00:30:13.1887047Z</Message><QueryParameterName>popreceipt</QueryParameterName><QueryParameterValue>Queryparametervalue</QueryParameterValue><Reason>Invalid pop receipt format</Reason></Error>"
}
}
CodePudding user response:
After reproducing issue from my side
The error message is pointing to Pop Receipt as Scott Mildenberger said
Even I got the same error because of taking Message ID as Dynamic content for Pop Receipt
Got the same error
Error resolved from my end after taking Pop Receipt as Dynamic content
In Delete message action taken Message Id and Pop Receipt as dynamic content as shown in below image After this For each and Delete message actions ran successfully
Success code 204
Delete message Success Response
{
"statusCode": 204,
"headers": {
"x-ms-request-id": "******",
"x-ms-client-request-id": "********",
"x-ms-version": "2020-04-08",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Wed, 14 Dec 2022 03:04:37 GMT",
"Content-Length": "0"
}
}
Successfully Queue message deleted as shown in below image