tracker issue : CF-3720764

select a category, or use search below
(searches all categories and all time range)

Error message with cfindex not detailed enough.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 03/10/2014

Components: Text Search, Solr

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 1

Listed in the version Issues Fixed doc
Consider the code block below. I've done something wrong with cfindex (my fault for sure), but this is the error detail:

There is an invalid attribute name

That's it. I've got no idea what I did wrong.

<cfif isDefined("url.index")>
	<cfset q = queryNew("key,title,body,cat")>
	<cfset queryAddRow(q, {key:1,title:"TItle one", body:"b1", cat:"sports"})>
	<cfset queryAddRow(q, {key:2,title:"TItle two", body:"b2", cat:"sports"})>
	<cfset queryAddRow(q, {key:3, title:"TItle three", body:"b3", cat:"sports"})>
	<cfset queryAddRow(q, {key:4, title:"TItle four", body:"b4", cat:"music"})>	

	<cfindex action="update" collection="test_blog" query="q" key="key" title="title" body="body" category="cat" result="r">
	<cfdump var="#r#">


----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3720764

External Customer Info:
External Company:  
External Customer Name: cfjedimaster
External Customer Email:  
External Test Config: My Hardware and Environment details:



That's a bit sad, Adobe chaps. Pls take this sort of thing seriously. -- Adam
Vote by External U.
13099 | March 10, 2014 03:53:09 PM GMT
For folks curious, it was result. It should have been status. I got confused because other CF tags use result.
Comment by External U.
13095 | March 10, 2014 03:55:16 PM GMT
fix to be made available with a future CF11 update.
Comment by Piyush K.
13096 | January 16, 2015 07:42:01 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5 and ColdFusion 10 Update 16
Comment by CFwatson U.
13097 | February 20, 2015 09:25:19 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). The error message is now: ----------- result is an invalid custom field name. Format of custom field name is CUSTOMFIELDNAME_DATATYPE like customdate_dt ----------- Thanks! -Aaron
Comment by External U.
13098 | November 19, 2015 03:53:55 AM GMT