defect
If a TL script contains an expression that results in a database query and includes a transient object as a parameter, the script execution fails.
Cause
The system attempts to pass the ID of the transient object to the database; since a transient object has no ID, this fails.
Solution
A synthetic ID is generated and passed to the database.