How to fix error: Could not cast from User to Users - when there is only one Appian data type called "Users"?

 How to fix error: Could not cast from User to Users - when there is only one Appian data type called "Users"?

Not sure how it determines the new user type of singular form "User" and why it cannot cast. Please advice how to fix this.

Thank You

 

  Discussion posts and replies are publicly visible

Parents Reply
  • The code is below. the Requestor field below where the value is being saved into is a Users type. I tried to cast explicitly to Users too and got same error. Attached screenshot of error message.

    a!pickerFieldUsers(
    label: "Requestor Name",
    labelPosition: "ABOVE",
    value: ri!NSARequest.Requestor,
    saveInto: a!save(ri!NSARequest.Requestor,save!value),
    /*refreshAfter: "UNFOCUS",*/
    maxSelections: 1,
    validations: {}

    ),
Children