Skip to main content
mukeshk3628
January 6, 2023
Solved

In Summery - Error Evaluating UI Expression

  • January 6, 2023
  • 2 replies
  • 0 views

Hi Team,

When i open my application Record Type "AX Vehicle", clicking on View record list. Till here everything is going fine. But in View record list when i am clicking on any Vehcile Vin to view vehcile details like Summary getting below error.

Error Evaluating UI Expression
Expression evaluation error [evaluation ID = UKXX9] at function rule!AX_VehicleSummary [line 7]: Could not cast from RecordType to AX Vehicle. Details: CastInvalid (APNX-1-4198-000)




Note: News and Related action is fine, only In Summery error is coming. Could anyone please help.
I am just beginner here. 

Best answer by peter.lewis

In the expression box for the interface, you're referencing recordType!AX Vehicle. However, this kind of a reference just defines the type of the data - it doesn't actually have your data. Instead, you should set up your expression to use rv!record, which returns the data for your records. Try this:

rule!AX_VehicleSummary(vehicle: rv!record)

2 replies

peter.lewis
Employee
January 6, 2023

In the expression box for the interface, you're referencing recordType!AX Vehicle. However, this kind of a reference just defines the type of the data - it doesn't actually have your data. Instead, you should set up your expression to use rv!record, which returns the data for your records. Try this:

rule!AX_VehicleSummary(vehicle: rv!record)

mukeshk3628
January 6, 2023

thank you so much [mention:6b9f80ff18f9420082d13ef2d5121d56:e9ed411860ed4f2ba0265705b8793d05]  [emoticon:c4563cd7d5574777a71c318021cbbcc8]