CF8 Bind failed for autosuggest s

still have problems with trying to get a simple example of auto suggest with CF8 to work. i see NO reason why it should not work

the only error i get is

error:widget: Bind failed for autosuggest search, bind value is not a 1D array of strings
info:http: CFC invocation response:
error:widget: Bind failed for autosuggest search, bind value is not a 1D array of strings
info:http: CFC invocation response:
info:http: HTTP GET /components/utils.cfc?

what i have already tested

1) the path to the compontent is correct i have managed to pull from it using and returning the valueList (just not with autosuggest)
2) the database query is correct i.e i run the above and pulled from it
3) everything seems to mapped on my server correct i can access my cfide and script form the domain
4) i have tried a static autosuggest (no bind)  example and thats works i.e. autosuggest="apple,banana,lemon,lime,mango,orange,peach,pear"
my cfc
<!--- Lookup used for auto suggest --->
	<cffunction name="findPark" access="remote" returntype="string">
		<cfargument name="search" type="any" required="false" default="BEEF">	
		<!--- Define variables --->
		<cfset var local = {} />		
		<!--- Query Location Table --->
		<cfquery name="local.query" datasource="#application.dbSource#" username="#application.dbUsername#" password="#application.dbPassword#" >
            SELECT name
            FROM products
            WHERE name LIKE <cfqueryparam cfsqltype="cf_sql_varchar" value="%#ucase(" />
            ORDER BY name
		<!--- And return it as a List --->
		<cfreturn valueList(>
my bind....
<cfform action="test2.cfm" method="post">
	test:<br />
	<cfinput type="text" name="search" size="50" autosuggest="cfc:components.utils.findPark({cfautosuggestvalue})" autosuggestminlength="1" maxresultsdisplayed="10" /><br /><br />

Open in new window

LVL 12
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Although the documentation says that you can return a list from the cfc, it only shows examples of returning an array.  Perhaps try converting the list to an array..

<cfreturn valueList(>


<cfreturn listToArray(valueList(>

It may be a long shot, but it does corresponds to the error message you're getting..

pigmentartsAuthor Commented:
i get the same error message when returning an array

 <!--- Build result array --->
  <cfloop query="data">
    <cfset ArrayAppend(result,>
  <cfreturn result>

i also tried your convert code at the same error message again.

any other ideas?
pigmentartsAuthor Commented:
still having problems with this, has anyone else got it running with a query of the same sort?
pigmentartsAuthor Commented:
OK, problem resloved. incase anyone is having the same problem: my code is correct nothing wrong with what i was doing, my application OnRequest method screws up Ajax because if affects the http responses. You can not use OnRequest with AJAX in CF!!!

i don't necessarily know if it is a bug in CF8

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.