Azure / LogicAppsUX

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

Save doesn't really save #2382

Closed fitzyjoe closed 1 year ago

fitzyjoe commented 1 year ago

Describe the Bug with repro steps

Click on Edit to edit an existing logic app. Make a change (for me the change is in the SQL Server Execute Stored Procedure (V2) component). Click on Save Notice the toastr for "saving workflow" and "successfully saved workflow" Click on either the "X" in the top right corner or the name of the logic app in the breadcrumbs to return to the main view for a logic app. The system presents me with a warning "Your unsaved edits will be discarded" - but I just saved! Agree by clicking OK. Go back to Edit and notice that the changes were never actually saved! I expected my changes to have been saved.

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using Preview Designer or GA Designer

Preview

Workflow JSON

{
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "actions": {
      "Execute_stored_procedure_(V2)": {
        "type": "ApiConnection",
        "inputs": {
          "host": {
            "connection": {
              "referenceName": "sql"
            }
          },
          "method": "post",
          "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('claridge-datawarehouse.database.windows.net'))},@{encodeURIComponent(encodeURIComponent('claridge-datawarehouse'))}/procedures/@{encodeURIComponent(encodeURIComponent('[dbo].[SaveBacklog]'))}"
        },
        "runAfter": {}
      }
    },
    "contentVersion": "1.0.0.0",
    "outputs": {},
    "triggers": {
      "Recurrence": {
        "type": "Recurrence",
        "recurrence": {
          "frequency": "Day",
          "interval": 1,
          "schedule": {
            "hours": [
              "5"
            ]
          },
          "timeZone": "Eastern Standard Time"
        }
      }
    }
  },
  "connectionReferences": {
    "sql": {
      "connectionName": "sql",
      "connectionProperties": {
        "authentication": {
          "type": "ManagedServiceIdentity"
        }
      },
      "connection": {
        "id": "/subscriptions/23d4221c-7030-4ab8-9daa-835be3ddf922/resourceGroups/DataWarehouse/providers/Microsoft.Web/connections/sql"
      },
      "api": {
        "id": "/subscriptions/23d4221c-7030-4ab8-9daa-835be3ddf922/providers/Microsoft.Web/locations/southcentralus/managedApis/sql"
      }
    }
  },
  "parameters": {}
}

Screenshots or Videos

https://github.com/Azure/LogicAppsUX/assets/6208666/051cc6f2-9a9c-4188-aea7-f28c79eabb33

Browser

Chrome (MacOS)

Additional context

No response

hartra344 commented 1 year ago

Thank you for the detailed report :) Closing for now and linking to our known issue here: #2388