complex object types cannot be converted to simple values
I am moving an old application which is on a CF11 install to my CF2021 install.
the code has worked fine for 10 years under CF11
i have code where after i am adding a product to my cart it its updating the database with the cart product information. it is running this code as part of a UPDATE cfquery and upating a user table:
SET PreviousProduct_ID = '#Listfirst(Form.Product_ID)#',
CF is complaining -
Complex object types cannot be converted to simple values.
but it is not a complext object it is a simple list productid numbers with commas
this is the variable output in the CF debug
PRODUCT_ID=5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350
that is a list? not a complex object? works fine in CF11 but not in 2021 and i can not for the life of me fiture it out.
Please help.
