Help with Record Type Relationship Error on Save

Certified Associate Developer


Hi everyone,

I’m working on my first Appian build and ran into an issue I haven’t been able to resolve. My save logic seems to save correctly to ri!record, but I’m getting an error related to the record type relationships.

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error: xxxx must be indexed by its corresponding record type fields or relationships

I suspect the issue is tied to how my record type relationships are configured, but I haven’t been able to figure it out.

Has anyone encountered similar issues with saving data to a record type and relationship errors? I’d really appreciate any guidance on reviewing or troubleshooting the save logic and relationships.

Thanks in advance!

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to David Moudry

    The record type behind uc2335DisclosureLog is what you'll want (edit - also added the correct way to use a!update()):

    a!save(
        ri!record[UC2335 TIN Sweep.uc2335DisclosureLog],
        a!update(
            a!defaultValue(ri!record[UC2335 TIN Sweep.uc2335DisclosureLog], recordType!UC2335 Disclosure Log()),
            {
                UC2335 Disclosure Log.disclosureText,
                UC2335 Disclosure Log.priceImpactIndicator,
            },
            {
                 local!draftDisclosures.disclosureText,
                 local!draftDisclosures.priceImpactIndicator
            }
        )
    )

Children