Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
368 stars 302 forks source link

SQL-based: XML validation runs are in running state instead of failed or successful #1200

Open vgouth opened 1 month ago

vgouth commented 1 month ago

Describe the Bug with repro steps

Prerequisites:

1.Create an integration account or use existing integration account which is one time setup. Select the pricing tier as standard.

a. To link integration account to logic app.

a)In integration account's navigation menu, under Settings, select Callback URL.Find the Generated Callback URL property value, copy the value, and save the URL to use later for linking.

b.On your logic app's navigation menu, under Settings, select Environment variables.On the Environment variables page, check whether the app setting named WORKFLOW_INTEGRATION_ACCOUNT_CALLBACK_URL exists.

c.If the app setting doesn't exist, at the end of the settings list, add a new app setting by entering the following:

"WORKFLOW_INTEGRATION_ACCOUNT_CALLBACK_URL":""

d.In the Integration account navigate to Settings > Schemas, click on "Add", and upload a valid schema.

  1. Open the designer in VS code and incorporate an HTTP request trigger.
  2. Insert an XML Validation action.
  3. For the content you wish to validate, choose the property token as the body.
  4. Set the Source to Integration account.
  5. For the Name, select the valid XML schema that has been uploaded in Integration account.
  6. Implement a Response action with a status code of 200.
  7. Create a parallel response action with a status code of 400. For the body, use the "body" token from the XML validation. In settings, under "Run after", opt for the "Has failed" option and uncheck the "Is successful" action.
  8. Save the workflow.
  9. Launch Postman.
  10. Choose "Post" and input the workflow runtime URL. In Postman, select body > raw, add the valid XML, set the document type to XML, and press send.

Expected: Run should get success in run history.

Actual: Run in run history is in running state instead of success or failure.

What type of Logic App Is this happening in?

Standard (VSCode)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

No response

Screenshots or Videos

Image

Browser

VS code

Additional context

VSIX Version: 4.96.0

vgouth commented 1 month ago

Issue repro in latest VS code request

VSIX Version : 4.107.0