logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

quotes are removed from Select when in text mode

Open thinkOfaNumber opened this issue 2 years ago • 5 comments

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 avatar Jan 19 '24 02:01 thinkOfaNumber

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 avatar Jan 19 '24 02:01 thinkOfaNumber

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...}

thinkOfaNumber avatar Feb 07 '24 05:02 thinkOfaNumber

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

github-actions[bot] avatar Mar 23 '24 06:03 github-actions[bot]

Can I provide any more information to help with this?

thinkOfaNumber avatar Mar 23 '24 07:03 thinkOfaNumber

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

github-actions[bot] avatar May 07 '24 07:05 github-actions[bot]

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

github-actions[bot] avatar Jun 21 '24 08:06 github-actions[bot]

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

github-actions[bot] avatar Jul 05 '24 09:07 github-actions[bot]