Skip to main content
Inspiring
Nov 1, 2021 12:32 AM UTC
Question

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

14 replies

andrewh0007
Inspiring
Nov 1, 2021 2:17 AM UTC

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

Inspiring
Nov 1, 2021 2:20 AM UTC

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
Inspiring
Nov 1, 2021 2:34 AM UTC

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?