This is the first error that I am getting: Invalid data [d6-2014-74, , ] for CFSQLTYPE CF_SQL_VARCHAR
Here is the corresponding code.
<cfset x = Arguments.surveyDocNo>
<cfprocparam cfsqltype="cf_sql_varchar" value="#x#">
To solve that problem, I changed my code to this:
<cfset x = Arguments.surveyDocNo[1]>
However, that returns this error:
500 You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members.
So the array issue is fixed, but I don't know how to fix the second error.
<cfdump var="#arguments.surveyDocNo#">



surveyDocNois an Array but in your second screenshot it is a string. If you changed the variable to no longer be an array then you can go back to your original referenceArguments.surveyDocNowithout the index value.Arguments.surveyDocNovariable (not the whole structure) and post a screen shot.<cfset x = Arguments.surveyDocNo[1]>could possibly throw the error "...attempted to dereference a scalar variable". Seems like either different code is causing that error OR there is something more going on that we are aware of ...?