Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
77 stars 83 forks source link

VS Code: Workflow is not saving Successfully for deployed logic app from VS code. #2676

Closed vgouth closed 1 year ago

vgouth commented 1 year ago

Describe the Bug with repro steps

  1. Create a new Logic App Project
  2. Add a workflow to your local project
  3. Open the workflow.json file in designer and author a new workflow a. Add http request Trigger b. Add a compose action here with custom text c. Add a ServiceBus action. From the add new paramter dropdown add content and add random text in JSON format like {"a":"b"} d. Add a send email action with the body being the output of the compose action (step b) e. Add a new connection to your email action f. Add http response action
  4. Press F5 to build and run your project
  5. Run the workflow a. Open overview page. Right + Click on workflow.json file and "Overview" b. Copy call back URL from the overview page c. Send the http request POST via Postman and wait for the response
  6. Refresh the overview page and your should see your local run
  7. Open the monitoring view for your run from the overview page
  8. Verify the run details and action inputs and output
  9. Create a logic app and Deploy to Azure 10.After deployment is success, Open the deployed logic app in portal. 11.Open the workflow in designer . 12.Workflow should not show any error but showing an error in Office_365. 13.Deleting the Office_365 action or any other action or Add new actions and try to save the workflow.

Expected:Workflow should save Successfully for deployed logic app from VS code. Actual: Workflow is not saving Successfully for deployed logic app from VS code.

What type of Logic App Is this happening in?

Standard (VSCode)

Are you using Preview Designer or GA Designer

Preview

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

Yes

Workflow JSON

{
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "actions": {
      "Response": {
        "type": "Response",
        "kind": "Http",
        "inputs": {
          "statusCode": 200
        },
        "runAfter": {
          "Send_message": [
            "SUCCEEDED"
          ]
        }
      },
      "Compose": {
        "type": "Compose",
        "inputs": "vs code 0606",
        "runAfter": {}
      },
      "Send_message": {
        "type": "ServiceProvider",
        "inputs": {
          "parameters": {
            "entityName": "test",
            "message": {
              "contentData": {
                "a": "b"
              }
            }
          },
          "serviceProviderConfiguration": {
            "connectionName": "serviceBus",
            "operationId": "sendMessage",
            "serviceProviderId": "/serviceProviders/serviceBus"
          }
        },
        "runAfter": {
          "Compose": [
            "SUCCEEDED"
          ]
        },
        "trackedProperties": {}
      }
    },
    "contentVersion": "1.0.0.0",
    "outputs": {},
    "triggers": {
      "When_a_HTTP_request_is_received": {
        "type": "Request",
        "kind": "Http"
      }
    }
  },
  "connectionReferences": {
    "serviceBus": {
      "connection": {
        "id": "/serviceProviders/serviceBus/connections/serviceBus"
      },
      "connectionName": "abc",
      "api": {
        "id": "/serviceProviders/serviceBus"
      }
    }
  },
  "parameters": {}
}

Screenshots or Videos

saving Console file.log image

Browser

VS Code

Additional context

Artifacts details:

VS Code extension: vscode-azurelogicapps-2.24.3.vsix NuGet package: https://artprodeussu2.artifacts.visualstudio.com/A41bf5486-7392-4b7a-a7e3-a735c767e3b3/b32aa71e-8ed2-41b2-9d77-5bc261222004/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21zYXp1cmUvcHJvamVjdElkL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9idWlsZElkLzc0MTk5ODA4L2FydGlmYWN0TmFtZS9kcm9wX2J1aWxkX0J1aWxkQXJ0aWZhY3RzX1dpbmRvd3M1/content?format=file&subPath=%2FMicrosoft.Azure.Workflows.WebJobs.Extension.1.25.1.nupkg Extension Bundle (CDN URL): https://cdnforlogicappsv2.blob.core.windows.net/logicapps-vendortesting Extension Bundle (Direct Download): https://artprodeussu2.artifacts.visualstudio.com/A41bf5486-7392-4b7a-a7e3-a735c767e3b3/b32aa71e-8ed2-41b2-9d77-5bc261222004/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21zYXp1cmUvcHJvamVjdElkL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9idWlsZElkLzc0MjAxMjgxL2FydGlmYWN0TmFtZS9kcm9wX2J1aWxkX0J1aWxkQXJ0aWZhY3RzX1dpbmRvd3M1/content?format=file&subPath=%2FMicrosoft.Azure.Functions.ExtensionBundle.Workflows.1.25.1_any-any.zip

AB#24192716

preetriti1 commented 1 year ago

@vgouth - If you open your resource in our portal staging link you should not see the invalid connections and also deleting that action would have led successful workflow save. This bug in portal is only in production and is fixed in our latest release which will complete by Friday EOD.