I have accidentally deleted a flow.
I followed the instructions on https://learn.microsoft.com/de-de/power-automate/how-tos-restore-deleted-flow?wt.mc_id=ppac_inproducthelp_ghp an identified my deleted flow.
His name (id) is "9e6f08cc-xxxx-9f99-3974-0276418dxxxx".
When i try to restore the flow with my Admin Account via Power Automate (Restore Deleted Flow as Admin (V2)" or with the PowerShell Command...
restore-AdminFlow -EnvironmentName Default-b68exxxx-11a5-4c5c-xxxx-f8a08f8exxxx -FlowName 9e6f08cc-xxxx-9f99-3974-0276418dxxxx
...i received an error, that die associated workflow already exists. (look at the error report, this is from PowerShell.) I don't know what this workflowEntityId (this is the attribute name from the metadata (60bf3ec8-0b06-ef11-9f89-002248883fcf) means. I tried to turn off all the flows within the solution, but it still doesn't works. Please help before my Flow will be permanently deleted.
Thx
Sascha
PowerShell Output:
Code : 409
Description : Conflict
Headers : {Strict-Transport-Security, x-ms-islandgateway, x-ms-request-id, x-ms-correlation-request-id...}
Error : @{code=EntityFlowExistsCannotRestore; message=Cannot restore flow '9e6f08cc-xxxx-9f99-3974-0276418dxxxx' because its associated
workflow '60bf3ec8-0b06-ef11-9f89-002248883fcf' already exists. Please turn the flow off and on from the solution explorer to remove
any inconsistent state.}
Errors :
Internal : @{StatusCode=409; StatusDescription=Conflict; Headers=Strict-Transport-Security: max-age=31536000; includeSubDomains
x-ms-islandgateway: ga00000LB
x-ms-request-id: westeurope:27cac7d7-417a-44a0-951b-ef0ed3b6d824
x-ms-correlation-request-id: 27cac7d7-417a-44a0-951b-ef0ed3b6d824
x-ms-flow-mobile-ios-version: 3.0.421
x-ms-flow-routing-request-id: WESTEUROPE:20240614T131103Z:27cac7d7-417a-44a0-951b-ef0ed3b6d824
Server-Timing: x-ms-igw-upstream-headers;dur=378.5,x-ms-igw-req-overhead;dur=0.9
X-Content-Type-Options: nosniff
x-ms-service-request-id: 2f6e00f3-5947-4efc-b67a-a046639838ee
x-ms-correlation-id: 24255fa9-7515-435d-8533-da3f1960b532
x-ms-activity-vector: 00
Content-Length: 301
Cache-Control: no-cache, no-store
Content-Type: application/json; charset=utf-8
Date: Fri, 14 Jun 2024 13:11:03 GMT
; Error=; Message=Cannot restore flow '9e6f08cc-xxxx-9f99-3974-0276418dxxxx' because its associated workflow
'60bf3ec8-0b06-ef11-9f89-002248883fcf' already exists. Please turn the flow off and on from the solution explorer to remove any
inconsistent state.; Internal=System.Net.HttpWebResponse}