Why do strings from a dropdown component get truncated in SQL query

I am working on the ignition gold cert practice test. I ran into an odd error where the value of my staff_id dropdown does not seem to be passing correctly. I am running this script:

and getting this error:

It seems to be truncating the value to the first character, but I can’t figure out why. The data type in the database is varchar like the other strings:

What am I missing?

The varchar type has a length associated with it, so I'm guessing you have it defined as length 1.

2 Likes

Hi Daniel: have another look at the prompt for the staff_id field datatype, it is listed as an INT to correlate with the user source users table.

Welcome to the forum, Rob!

Thanks, I appreciate the help!