Hello, I am beginner to Appian. I am getting an error from my process model when I start publishing. The error is:
Details: java.lang.IllegalArgumentException: The record to be saved must not be null: TypedValue[it=4570,v=<null>] Data: TypedValue[it=4570,v=<null>]
From other threads are saying one of my values is null which isnt the case nothing is null in the cdt and all of the fields are mapped on the interface. Any thoughts?
Is there a way to tell what field is giving this issue, again very new so as much details would be helpful.
Thanks!
Discussion posts and replies are publicly visible
While it might be correct that you mapped all fields in the interface, you will have to check that the data flow is going from rule inputs in the interface to AC variables in the node to process variables in the model.
This video described that pretty good: www.youtube.com/watch
Just a small question are you having both as same type. You say CDT and the error says Record. May be share some more info? Also have you checked if your DB has any non-null fields
"java.lang.IllegalArgumentException: The record to be saved must not be null" indicates that your code is trying to save a null CDT (Custom Data Type) record in Appian.It seems like you're encountering an issue with null values in your Appian process model. To identify which field is causing the problem, you can try debugging your process model step by step. Start by checking each field and their corresponding mappings in the interface. Ensure that all required fields have values assigned to them before publishing. Additionally, you can try logging or printing out the values of each field before saving to see if any of them are null. This way, you can pinpoint the exact field causing the issue.
That is a good point. You unknowingly might have tried to mix CDT with Record variable which is causing this issue.
YOu are trying to save a null recordType, or the recordType contains at least one field that is null and the field in database does not accept nulls
Hi dans7636 ,
It seems while defining the DB table you have restricted the column to be not null by default. But from the process model you are trying to store the null value to that particular column.
You can go to the database and select you table and click on the structure and check the below for your column. If No is set for the column , change it to Yes in order to allow the null values to be stored.