Hi, I am getting the below error in the process. I have created a CDT

Hi,

I am getting the below error in the process. I have created a CDT with a field name AirlineID as an Number(Integer). It throws an error when it try to store the value in "Write to Store Entity". Please suggest why the CDT integer type value is not able store in the DataStore Entity. Please note the below CDT syntax.

"Details: An error occurred while trying to convert the given data to the type of the specified entity “AirlineDetailMaster” [id=ed3e7773-2bba-4ae6-87af-ded44c76eb95@14330, type=AirlineDetailMaster (id=5170)] (data store: AirTicketManagement). Value that could not be converted: ActivityClassParameter[name=AirlineID,it=1,v=1] Details: com.appiancorp.core.type.TypeCastException: Invalid Cast: Cannot cast from type 'Number (Integer)' to type 'AirlineDetailMaster': CastInvalid "

<xsd:complexType name="AirlineBooking">
<xsd:sequence>
<xsd:element name="AirlineId" type="xsd:int">
<xsd:annotation>
<xsd:appinf...

OriginalPostID-114466

OriginalPostID-114466

  Discussion posts and replies are publicly visible

Parents
  • Have you noticed that the error is taking about field 'a_id' while your primary key is actually AirlineID? It seems that the CDT didn't have the @Id annotation originally and that this model or the data store hasn't been updated to point to the latest version of the CDT in which there's a user-defined primary key instead of the Appian defined a_id. I suggest you review the configuration of your Data Store and map it to AirlineDetailMaster instead of AirlineDetailMaster^1 (where 1 is the previous version number)

Reply
  • Have you noticed that the error is taking about field 'a_id' while your primary key is actually AirlineID? It seems that the CDT didn't have the @Id annotation originally and that this model or the data store hasn't been updated to point to the latest version of the CDT in which there's a user-defined primary key instead of the Appian defined a_id. I suggest you review the configuration of your Data Store and map it to AirlineDetailMaster instead of AirlineDetailMaster^1 (where 1 is the previous version number)

Children
No Data