You are trying to sore the session id in a numeric column.
most likely, it is storing the session id in the orderReferanceID column of the orders table.
Double check this in the store order summary behavior.
In the store order summary behavior, set the data type for the column storing the session id to text.
you will also need to change that column in the database to a varchar column.