Azure / LogicAppsUX

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

UI keeps detecting changes while there are none #6089

Open wouter-in2facts opened 20 hours ago

wouter-in2facts commented 20 hours ago

Describe the Bug with repro steps

  1. Go to 'Edit'
  2. UI opens with 'Save' and 'Discard' buttons enabled
  3. selecting 'discard' gives the confirmation pop-up. Choose 'Yes'
  4. Screen switches back and still has 'save' and 'discard' enabled

Selecting 'save' disables the 2 buttons but if you go 'edit' it starts over again

What type of Logic App Is this happening in?

Consumption (Portal)

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

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "triggers": {
            "manual": {
                "type": "Request",
                "kind": "Http",
                "inputs": {
                    "schema": {
                        "properties": {
                            "dataState": {
                                "type": "string"
                            },
                            "device": {
                                "properties": {
                                    "mobileAppVersion": {
                                        "type": "string"
                                    },
                                    "os": {
                                        "type": "string"
                                    },
                                    "osVersion": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            },
                            "deviceSubmitDate": {
                                "properties": {
                                    "provided": {
                                        "properties": {
                                            "time": {
                                                "type": "string"
                                            },
                                            "zone": {
                                                "type": "string"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "shifted": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            },
                            "dispatcher": {},
                            "form": {
                                "properties": {
                                    "formSpaceIdentifier": {
                                        "type": "string"
                                    },
                                    "formSpaceName": {
                                        "type": "string"
                                    },
                                    "identifier": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "version": {
                                        "type": "integer"
                                    },
                                    "versionIdentifier": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            },
                            "geoStamp": {
                                "properties": {
                                    "accuracy": {
                                        "type": "number"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "addressDetails": {
                                        "properties": {
                                            "components": {
                                                "items": {
                                                    "properties": {
                                                        "longName": {
                                                            "type": "string"
                                                        },
                                                        "shortName": {
                                                            "type": "string"
                                                        },
                                                        "types": {
                                                            "items": {
                                                                "type": "string"
                                                            },
                                                            "type": "array"
                                                        }
                                                    },
                                                    "required": [
                                                        "shortName",
                                                        "longName",
                                                        "types"
                                                    ],
                                                    "type": "object"
                                                },
                                                "type": "array"
                                            },
                                            "source": {
                                                "type": "string"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "captureTimestamp": {
                                        "properties": {
                                            "provided": {
                                                "properties": {
                                                    "time": {
                                                        "type": "string"
                                                    },
                                                    "zone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "shifted": {
                                                "type": "string"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "coordinates": {
                                        "properties": {
                                            "altitude": {
                                                "type": "number"
                                            },
                                            "latitude": {
                                                "type": "number"
                                            },
                                            "longitude": {
                                                "type": "number"
                                            }
                                        },
                                        "type": "object"
                                    },
                                    "errorMessage": {},
                                    "source": {
                                        "type": "string"
                                    },
                                    "success": {
                                        "type": "boolean"
                                    }
                                },
                                "type": "object"
                            },
                            "globalPage": {},
                            "identifier": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "orphanedDispatch": {
                                "type": "boolean"
                            },
                            "pages": {
                                "items": {
                                    "properties": {
                                        "label": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "sections": {
                                            "items": {
                                                "properties": {
                                                    "answers": {
                                                        "items": {
                                                            "properties": {
                                                                "controlType": {
                                                                    "type": "string"
                                                                },
                                                                "dataType": {
                                                                    "type": "string"
                                                                },
                                                                "formattedText": {
                                                                    "type": "boolean"
                                                                },
                                                                "label": {
                                                                    "type": "string"
                                                                },
                                                                "lastModified": {
                                                                    "properties": {
                                                                        "provided": {
                                                                            "properties": {
                                                                                "time": {
                                                                                    "type": "string"
                                                                                },
                                                                                "zone": {
                                                                                    "type": "string"
                                                                                }
                                                                            },
                                                                            "type": "object"
                                                                        },
                                                                        "shifted": {
                                                                            "type": "string"
                                                                        }
                                                                    },
                                                                    "type": "object"
                                                                },
                                                                "modifiedBy": {
                                                                    "properties": {
                                                                        "displayName": {
                                                                            "type": "string"
                                                                        },
                                                                        "identifier": {
                                                                            "type": "string"
                                                                        },
                                                                        "username": {
                                                                            "type": "string"
                                                                        }
                                                                    },
                                                                    "type": "object"
                                                                },
                                                                "question": {
                                                                    "type": "string"
                                                                },
                                                                "values": {
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "type": "array"
                                                                },
                                                                "valuesMetadata": {
                                                                    "items": {
                                                                        "properties": {
                                                                            "display": {
                                                                                "type": "string"
                                                                            },
                                                                            "row": {
                                                                                "properties": {
                                                                                    "columns": {
                                                                                        "type": "array"
                                                                                    }
                                                                                },
                                                                                "type": "object"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "display",
                                                                            "row"
                                                                        ],
                                                                        "type": "object"
                                                                    },
                                                                    "type": "array"
                                                                }
                                                            },
                                                            "required": [
                                                                "label",
                                                                "dataType",
                                                                "controlType",
                                                                "formattedText",
                                                                "lastModified",
                                                                "modifiedBy",
                                                                "question",
                                                                "values",
                                                                "valuesMetadata"
                                                            ],
                                                            "type": "object"
                                                        },
                                                        "type": "array"
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "name": {},
                                                    "type": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "type",
                                                    "label",
                                                    "name",
                                                    "answers"
                                                ],
                                                "type": "object"
                                            },
                                            "type": "array"
                                        }
                                    },
                                    "required": [
                                        "label",
                                        "name",
                                        "sections"
                                    ],
                                    "type": "object"
                                },
                                "type": "array"
                            },
                            "referenceNumber": {
                                "type": "string"
                            },
                            "serverReceiveDate": {
                                "type": "string"
                            },
                            "state": {
                                "type": "string"
                            },
                            "user": {
                                "properties": {
                                    "displayName": {
                                        "type": "string"
                                    },
                                    "identifier": {
                                        "type": "string"
                                    },
                                    "username": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            },
                            "version": {
                                "type": "string"
                            },
                            "zone": {
                                "type": "string"
                            }
                        },
                        "type": "object"
                    }
                }
            }
        },
        "actions": {
            "Old_Logic": {
                "type": "Scope",
                "actions": {
                    "Switch_on_Form_Identifier": {
                        "type": "Switch",
                        "expression": "@int(triggerBody()?['form']?['identifier'])",
                        "default": {
                            "actions": {
                                "Switch_on_Form_Name": {
                                    "type": "Switch",
                                    "expression": "@triggerBody()?['form']?['name']",
                                    "default": {
                                        "actions": {}
                                    },
                                    "cases": {
                                        "Annual_Inspection_-_Cycle_1": {
                                            "actions": {
                                                "logic-AnnualInspection_Cycle1_ProcessProntoformsSubmission_2": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Cycle1_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Annual Test Report - Cycle 1"
                                        },
                                        "Annual_Test_Report_(No_Cycle)": {
                                            "actions": {
                                                "logic-AnnualInspection_NoCycle_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_NoCycle_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Annual Test Report"
                                        },
                                        "Annual_Test_Report_-_Cycle_2": {
                                            "actions": {
                                                "logic-AnnualInspection_Cycle2_ProcessProntoformsSubmission_2": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Cycle2_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerbody()"
                                                    }
                                                }
                                            },
                                            "case": "Annual Test Report - Cycle 2"
                                        },
                                        "Annual_Test_Report_-_Cycle_2_for_Manual_ULC_Only": {
                                            "actions": {
                                                "logic-AnnualInspection_Cycle2_ManualULC_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Cycle2_ManualULC_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Annual Test Report - Cycle 2 for Manual ULC Only"
                                        },
                                        "Expense_Reimbursement": {
                                            "actions": {
                                                "logic-Expenses_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-Expenses_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Expense Reimbursement"
                                        },
                                        "FA_Repairs": {
                                            "actions": {
                                                "logic-RepairsNew_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-RepairsNew_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "FA Repairs Form"
                                        },
                                        "Fire_Alarm_Installation": {
                                            "actions": {
                                                "logic-FireAlarmInstall_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-FireAlarmInstall_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Fire Alarm Installation"
                                        },
                                        "Fire_Watch_Form": {
                                            "actions": {
                                                "logic-FireWatch_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-FireWatch_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Fire Watch Form"
                                        },
                                        "Full_Wet_Trip": {
                                            "actions": {
                                                "logic-FullWetTrip_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-FullWetTrip_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Full Wet Trip"
                                        },
                                        "Hydrant": {
                                            "actions": {
                                                "logic-Hydrant_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Hydrant_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Hydrant"
                                        },
                                        "Monitoring": {
                                            "actions": {
                                                "logic-Monitoring_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Monitoring_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Monitoring Form"
                                        },
                                        "Monitoring_Installation_Form": {
                                            "actions": {
                                                "logic-MonitoringInstall_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-MonitoringInstall_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Monitoring Installation Form"
                                        },
                                        "Monthly_Inspection": {
                                            "actions": {
                                                "logic-MonthlyInspection_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-MonthlyInspection_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Monthly Test Report"
                                        },
                                        "Quarterly_Test_Report": {
                                            "actions": {
                                                "logic-Quarterly_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-AnnualInspection_Quarterly_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Quarterly Inspection Form"
                                        },
                                        "Service_Call": {
                                            "actions": {
                                                "logic-ServiceCall_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-ServiceCall_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Service Call"
                                        },
                                        "Sprinkler_Repairs": {
                                            "actions": {
                                                "logic-SprinklerRepairs_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-SprinklerRepairs_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Sprinkler Repairs"
                                        },
                                        "Vehicle_Repairs": {
                                            "actions": {
                                                "logic-VehicleRepairs_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-VehicleRepairs_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()"
                                                    }
                                                }
                                            },
                                            "case": "Vehicle Repairs Form"
                                        },
                                        "Winterization": {
                                            "actions": {
                                                "logic-Winterization_ProcessProntoformsSubmission": {
                                                    "type": "Workflow",
                                                    "inputs": {
                                                        "host": {
                                                            "workflow": {
                                                                "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-Winterization_ProcessProntoformsSubmission"
                                                            },
                                                            "triggerName": "manual"
                                                        },
                                                        "body": "@triggerBody()",
                                                        "retryPolicy": {
                                                            "type": "none"
                                                        }
                                                    }
                                                }
                                            },
                                            "case": "Winterization Report"
                                        }
                                    }
                                }
                            }
                        },
                        "cases": {
                            "Full_Wet_Trip_-_Turned_Off": {
                                "actions": {
                                    "logic-ProcessProntoformsSubmission_-_FWT": {
                                        "type": "Workflow",
                                        "inputs": {
                                            "host": {
                                                "workflow": {
                                                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-ProcessProntoformsSubmission"
                                                },
                                                "triggerName": "manual"
                                            },
                                            "body": "@triggerBody()",
                                            "retryPolicy": {
                                                "type": "none"
                                            }
                                        }
                                    }
                                },
                                "case": 9991419744013
                            },
                            "Hydrant_-_Turned_Off": {
                                "actions": {
                                    "logic-ProcessProntoformsSubmission_-_Hydrant": {
                                        "type": "Workflow",
                                        "inputs": {
                                            "host": {
                                                "workflow": {
                                                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-ProcessProntoformsSubmission"
                                                },
                                                "triggerName": "manual"
                                            },
                                            "body": "@triggerBody()",
                                            "retryPolicy": {
                                                "type": "none"
                                            }
                                        }
                                    }
                                },
                                "case": 9991422332018
                            },
                            "Sprinkler_Project": {
                                "actions": {
                                    "logic-ProcessProntoformsSubmission_-_Sprinkler_Project": {
                                        "type": "Workflow",
                                        "inputs": {
                                            "host": {
                                                "workflow": {
                                                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Logic/workflows/logic-ProcessProntoformsSubmission"
                                                },
                                                "triggerName": "manual"
                                            },
                                            "body": "@triggerBody()"
                                        }
                                    }
                                },
                                "case": 1425833074
                            }
                        }
                    },
                    "if_not_declined_process_site_info": {
                        "type": "If",
                        "expression": {
                            "and": [
                                {
                                    "not": {
                                        "equals": [
                                            "@triggerBody()?['state']",
                                            "Declined"
                                        ]
                                    }
                                }
                            ]
                        },
                        "actions": {
                            "Process_Site_Info_Data": {
                                "type": "ApiConnection",
                                "inputs": {
                                    "host": {
                                        "connection": {
                                            "name": "@parameters('$connections')['sql-1']['connectionId']"
                                        }
                                    },
                                    "method": "post",
                                    "body": {
                                        "identifier": "@triggerBody()?['identifier']"
                                    },
                                    "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('default'))},@{encodeURIComponent(encodeURIComponent('default'))}/procedures/@{encodeURIComponent(encodeURIComponent('[etl].[usp_merge_prtfrms_site_notes_form_data]'))}"
                                }
                            },
                            "Send_an_email_(V2)_2": {
                                "type": "ApiConnection",
                                "inputs": {
                                    "host": {
                                        "connection": {
                                            "name": "@parameters('$connections')['office365']['connectionId']"
                                        }
                                    },
                                    "method": "post",
                                    "body": {
                                        "To": "wouter@in2facts.com",
                                        "Subject": "Site Info Processing Failed @{triggerBody()?['identifier']}",
                                        "Body": "<p>Site Info Processing Failed</p>",
                                        "Importance": "High"
                                    },
                                    "path": "/v2/Mail"
                                },
                                "runAfter": {
                                    "Process_Site_Info_Data": [
                                        "Failed"
                                    ]
                                }
                            }
                        },
                        "else": {
                            "actions": {}
                        },
                        "runAfter": {
                            "Switch_on_Form_Identifier": [
                                "Succeeded"
                            ]
                        }
                    }
                },
                "runAfter": {
                    "Terminate": [
                        "Succeeded"
                    ]
                }
            },
            "Terminate": {
                "type": "Terminate",
                "inputs": {
                    "runStatus": "Succeeded"
                },
                "runAfter": {
                    "Processing_Details": [
                        "Succeeded"
                    ]
                }
            },
            "Store_Raw_Data": {
                "type": "Scope",
                "actions": {
                    "Store_the_raw_JSON": {
                        "type": "ApiConnection",
                        "inputs": {
                            "host": {
                                "connection": {
                                    "name": "@parameters('$connections')['azureblob']['connectionId']"
                                }
                            },
                            "method": "post",
                            "body": "@triggerBody()",
                            "path": "/datasets/default/files",
                            "queries": {
                                "folderPath": "/prontoforms/submissions/@{triggerBody()?['form']?['identifier']}/@{triggerBody()?['identifier']}/@{formatDateTime(triggerBody()?['deviceSubmitDate']?['provided']?['time'],'yyyy/MM/dd/HH/mm')}/",
                                "name": "@{triggerBody()?['identifier']}.json",
                                "queryParametersSingleEncoded": true
                            }
                        },
                        "runtimeConfiguration": {
                            "contentTransfer": {
                                "transferMode": "Chunked"
                            }
                        }
                    },
                    "Response": {
                        "type": "Response",
                        "kind": "Http",
                        "inputs": {
                            "statusCode": 200
                        },
                        "runAfter": {
                            "Store_the_raw_JSON": [
                                "Succeeded"
                            ]
                        }
                    },
                    "USP_Store_in_Hub": {
                        "type": "ApiConnection",
                        "inputs": {
                            "host": {
                                "connection": {
                                    "name": "@parameters('$connections')['sql-1']['connectionId']"
                                }
                            },
                            "method": "post",
                            "body": {
                                "data": "@{triggerBody()}"
                            },
                            "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('default'))},@{encodeURIComponent(encodeURIComponent('default'))}/procedures/@{encodeURIComponent(encodeURIComponent('[etl].[usp_store_submission_data]'))}",
                            "retryPolicy": {
                                "type": "none"
                            }
                        },
                        "runAfter": {
                            "Response": [
                                "Succeeded"
                            ]
                        }
                    }
                },
                "runAfter": {}
            },
            "Send_an_email_(V2)": {
                "type": "ApiConnection",
                "inputs": {
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['office365']['connectionId']"
                        }
                    },
                    "method": "post",
                    "body": {
                        "To": "wouter@in2facts.com",
                        "Subject": "logic-Prontoforms-Submission DB Raw Store Failed (@{workflow()?['run']?['name']})",
                        "Body": "<p>dataId: @{triggerBody()?['identifier']}</p>",
                        "Importance": "Normal"
                    },
                    "path": "/v2/Mail"
                },
                "runAfter": {
                    "Processing_Details": [
                        "Failed"
                    ]
                }
            },
            "Processing_Details": {
                "type": "Scope",
                "actions": {
                    "USP_Submission_Details": {
                        "type": "ApiConnection",
                        "inputs": {
                            "host": {
                                "connection": {
                                    "name": "@parameters('$connections')['sql-1']['connectionId']"
                                }
                            },
                            "method": "post",
                            "body": {
                                "submission_data": "@{triggerBody()}"
                            },
                            "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('default'))},@{encodeURIComponent(encodeURIComponent('default'))}/procedures/@{encodeURIComponent(encodeURIComponent('[etl].[usp_return_prontoforms_submission_details]'))}"
                        }
                    },
                    "Submission_Details": {
                        "type": "Compose",
                        "inputs": "@json(first(body('USP_Submission_Details')?['resultsets']?['Table1']))",
                        "runAfter": {
                            "USP_Submission_Details": [
                                "Succeeded"
                            ]
                        }
                    }
                },
                "runAfter": {
                    "Store_Raw_Data": [
                        "Succeeded"
                    ]
                }
            }
        },
        "outputs": {},
        "parameters": {
            "$connections": {
                "type": "Object",
                "defaultValue": {}
            }
        }
    },
    "parameters": {
        "$connections": {
            "value": {
                "sql-1": {
                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/providers/Microsoft.Web/locations/canadacentral/managedApis/sql",
                    "connectionId": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Web/connections/sql-5",
                    "connectionName": "sql-5"
                },
                "office365": {
                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/providers/Microsoft.Web/locations/canadacentral/managedApis/office365",
                    "connectionId": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Web/connections/office365",
                    "connectionName": "office365"
                },
                "azureblob": {
                    "id": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/providers/Microsoft.Web/locations/canadacentral/managedApis/azureblob",
                    "connectionId": "/subscriptions/e14cf316-6f5d-44fd-9490-ceb36e96a4cf/resourceGroups/rg-firepro-datahub-dev/providers/Microsoft.Web/connections/azureblob",
                    "connectionName": "azureblob"
                }
            }
        }
    }
}

Screenshots or Videos

No response

Browser

Chrome Version 130.0.6723.117

Additional context

No response

ccastrotrejo commented 16 hours ago

Hi @wouter-in2facts thanks for raising this issue. I tried to repro this issue with multiple consumption logic apps with the new designer and I wasn't able to get into the scenario in which the buttons are enabled and the alert pops up when trying to leave the designer.

Does this happen consistently on your end?

wouter-in2facts commented 9 hours ago

Hi Carlos,

thanks for your reply. Not across all logic apps but in several. (Note this was not the case in the original UI, code was not changed)

It must be a combination of activities/settings that causes this.

I can send you a second example if helpful. See attachedexample2.json