Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

quotes are removed from Select when in text mode #957

Closed thinkOfaNumber closed 2 months ago

thinkOfaNumber commented 8 months ago

Describe the Bug

When using the "Select" action in "text" mode (e.g. not key-value mode); after saving the workflow and clicking on another action, when I click back to the Select action, the quotes are removed and an error Enter a valid JSON. is displayed.

Plan Type

Standard

Steps to Reproduce the Bug or Issue

  1. Create a standard logic app workflow with any trigger
  2. add a Select (array) action
  3. change it to "text" mode
  4. enter any array in the "From" input
  5. in the "Map" input, enter in two properties of the array items. In my case I used item()['IL_CODE'] and item()['IL_DESCRIPTION'], separated by a space and surrounded by quotes: image
  6. Save the workflow (See action json below)
  7. close the designer
  8. reopen the designer
  9. click on the same select action. The Map input has lost the quotes: image
  10. Click anywhere inside the map input
  11. click on another action
  12. There is now an "Invalid parameters" error, and an error in the action window: image

Workflow JSON

This is just the action json:

{
  "type": "Select",
  "inputs": {
    "from": "@body('Filter_My_Array')",
    "select": "@{item()['IL_CODE']} @{item()['IL_DESCRIPTION']}"
  },
  "runAfter": {
    "Filter_My_Array": [
      "SUCCEEDED"
    ]
  }
}

### Screenshots or Videos

_No response_

### Additional context

Azure Logic Apps (Standard) v2.86.5

VS Code:

Version: 1.85.1 (user setup) Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Date: 2023-12-13T09:49:37.021Z Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22631



AB#27286823
thinkOfaNumber commented 8 months ago

Also I just got this email:

[Azure/logicapps] Sync issue to Azure DevOps work item workflow run | [Azure/logicapps] Sync issue to Azure DevOps work item workflow run |  -- | -- | --
[Azure/logicapps] Sync issue to Azure DevOps work item workflow run

Sync issue to Azure DevOps work item: All jobs have failed

[View workflow run](https://github.com/Azure/logicapps/actions/runs/7578821795)

alert   
Sync issue to Azure DevOps work item / alert
Failed in 2 seconds

When I view the workflow run, I see Access Denied: The Personal Access Token used has expired so I'm guessing someone on the Azure team needs to update their PAT for this repo to sync to your DevOps!

thinkOfaNumber commented 7 months ago

A similar thing happens in key-value mode as well:

  1. add a select action
  2. add a property such as approved with the value @bool(false)
  3. save the designer
  4. edit the select action - e.g. add another property

all properties that are @bool... get changed to @{bool...}

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 45 days with no activity.

thinkOfaNumber commented 6 months ago

Can I provide any more information to help with this?

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.