Skip to main content
November 1, 2021
Question

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

  • November 1, 2021
  • 14 replies
  • 0 views

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: {}
)
}
)
}
)

14 replies

andrewh0007
November 1, 2021

This issue appears to be in the rule itself. Need more information about that rule including the rule inputs and the code.

November 1, 2021

Hi,

Please find the attached rule info. Thanks for your ack.

a!localVariables(
local!queryResults:
a!queryEntity(
entity: cons!AT_DSE_ADDRESS,
query: a!query(
paginginfo: a!pagingInfo(1, -1),
logicalExpression: a!queryLogicalExpression(
operator: "AND",
ignoreFiltersWithEmptyValues: true,
filters: {
a!queryFilter(
field: "addressId",
operator: "in",
value: ri!addressId
),
}
)
)
).data,
cast(
typeof({'type!{urn:com:appian:types:AT}AT_address'()}),
local!queryResults)
)

andrewh0007
November 1, 2021

In the first code you entered the `addressId` as NULL. Was this just for posting here or is it genuinely NULL? With Ids entered do you still have the issue?

Also, is there an `address` field in the AT_address CDT? If so, what is the data type in both the CDT and the database?