Skip to main content
January 27, 2025
Question

Issue while updating the form - pickerFieldUsers

  • January 27, 2025
  • 3 replies
  • 0 views

Hello,
While editing the form am getting below error for the pickerFieldUsers
An error occurred while executing a save: Expression evaluation error: Cannot update List of NGM Tasks; length of assign value list (0) does not match length of the list to update (1)


Below my code 

a!pickerFieldUsers(
    label: "Assignee",
    placeholder: "Select task assignee",
    value: local!taskData['recordType!{8bba5308-f92d-4f52-99ca-a84194e2b86b}NGM Tasks.fields.{4b779da2-0a05-4d7f-a99e-c30b4b4e087d}assignee'],
    saveInto: local!taskData['recordType!{8bba5308-f92d-4f52-99ca-a84194e2b86b}NGM Tasks.fields.{4b779da2-0a05-4d7f-a99e-c30b4b4e087d}assignee'],
    required: true(),
    maxSelections: 1
)

3 replies

stefanhelzle0001
January 27, 2025

Could it be that this local!taskData is a list? Then to which item in that list would you want to save the data to?

January 27, 2025

Hello [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] 


is not a list local!taskData its an record type variable. This is for single record 

While editing the record am getting all details in this variable like below 

local!taskData: index(
      rule!NGM_QRD_getTaskData(taskId: ri!taskId),
      "data",
      {}
    )
    

stefanhelzle0001
January 27, 2025

This is still a list. Even when there is a single item.