DropdownField “invalid value” error when saving to related record field

Hi all,

I’m working with a dropdown that pulls data from a related record type (RCP Status) and saves the selected ID into a field on another record (RCP Concession Line). I’m getting this error when I bind value and saveInto to the related field:

Interface Definition: Expression evaluation error at function a!dropdownField: A dropdown component [label="Status"] has an invalid value for "value". All selected values must be present in the choiceValues array, but value was <blank> and choiceValues was 1; 2; 3; 4; 5.

I am trying to copy this solution: https://docs.appian.com/suite/help/25.2/Dropdown_Component.html#dropdown-with-choices-from-a-record-type but no success so far.

The above is what I am trying to do:

a!dropdownField(
data: 'recordType!{2c544b58-1128-491a-b5e6-9b4015febc8a}RCP Status',
choiceLabels: 'recordType!{2c544b58-1128-491a-b5e6-9b4015febc8a}RCP Status.fields.{daea1685-9eaa-423c-a8f9-1e120d9b4527}value',
choiceValues: 'recordType!{2c544b58-1128-491a-b5e6-9b4015febc8a}RCP Status.fields.{36b09322-cfee-4544-a324-621bbc77d62c}id',
label: "Dropdown",
labelPosition: "ABOVE",
placeholder: "--- Select Status ---",
value: ri!record['recordType!{52bc53be-6f55-4f9f-965a-74d9e8f1ab5f}RCP Concession Line.relationships.{ec89a2b2-d48f-4c22-b1e8-ba17ea76c7a9}status.fields.{36b09322-cfee-4544-a324-621bbc77d62c}id'],
saveInto: ri!record['recordType!{52bc53be-6f55-4f9f-965a-74d9e8f1ab5f}RCP Concession Line.relationships.{ec89a2b2-d48f-4c22-b1e8-ba17ea76c7a9}status.fields.{36b09322-cfee-4544-a324-621bbc77d62c}id'],
searchDisplay: "AUTO",
validations: {}
)

Would really appreciate any advice or working examples. Thanks in advance!

  Discussion posts and replies are publicly visible