Could not display interface. Please check definition and inputs. Rule Input "address": Could not cast from Number (Integer) to AT_address. Details: CastInvalid

a!localVariables(
local!locationsList:rule!AT_getAddresses(addressId: null), -- getting an error at this line.
{
a!sectionLayout(
label: "Address",
contents: {
a!radioButtonField(
label: "Radio Buttons",
labelPosition: "COLLAPSED",
choiceLabels: local!locationsList,
choiceValues: local!locationsList,
saveInto: {},
choiceLayout: "STACKED",
validations: {}
)
}
)
}
)

  Discussion posts and replies are publicly visible

Parents Reply
  • I'm struggling to find the address rule input. It has to be somewhere but it's not in anything I've seen yet. As the error has Rule Input "address" in it and it's a casting issue I really need to find this parameter.

    I've re-created your code but have substituted the query rule with hard coded dictionary and it works. If you copy and paste my code, does it work for you?

    Finally, does the interface you're working in have an `address` rule input? Does anywhere have an `address` rule input?

    a!localVariables(
      local!locationsList: {
        {
          addressId: 1,
          shippingAddress: "47 New Saddle Ave",
          unitNumber: null,
          city: "Goose Creek",
          stateOrProvince: "SC",
          postalCode: 29445
        }
      },
      {
        a!sectionLayout(
          label: "Address",
          contents: {
            a!radioButtonField(
              label: "Radio Buttons",
              labelPosition: "COLLAPSED",
              choiceLabels: local!locationsList,
              choiceValues: local!locationsList,
              saveInto: {},
              choiceLayout: "STACKED",
              validations: {}
            )
          }
        )
      }
    )

Children