Facing issue in insert record activity.
In my process app, I have a form. I did not use Data model to map form filed with data table.
I use insert record activity for it. When I run insert record activity then I get message
"Cannot insert the value NULL into column 'ID', table 'PayableInvoice__u'; column does not allow nulls. INSERT fails. The statement has been terminated."
So I create a process variable and assign its value = @${GUID}
and map this filed to ID in insert record activity.
But I get error message "Invalid cast from 'System.String' to 'System.Guid'."



-
We recently faced this same issue and the support team helped with the following solution:
- Using an Update Process Data task, create a new variable with an appropriate name like "convertedGUID" and use the expression Guid.Parse(Convert.ToString(string_holding_the_guid)) to set it. You will see then in your process data at run time a new variable of type "q1:guid".
- Now you can use this new variable in the Insert Record activity.
Please sign in to leave a comment.
Comments
3 comments