tracker issue : CF-4148583

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

cfoutput with attributecollection causes "cannot find encodefor key in structure" error

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): e-domizil License Team / e-domizil License Team (Alexander Hass)

Created: 05/04/2016

Components: Functions

Versions: 2016

Failure Type: Crash

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 0

Listed in the version 2016.0.02.299200 Issues Fixed doc
Problem Description:

May 4, 2016 15:36:30 PM Error [http-nio-8500-exec-4] - Cannot find encodefor key in structure.The specified key, encodefor, does not exist in the structure. The specific sequence of files included or processed is: C:\ColdFusion2016\cfusion\wwwroot\cfoutput\index.cfm, line: 10

Steps to Reproduce:

<cfset result = queryNew("id,name","Integer,Varchar",[{id=1,name="One"},{id=2,name="Two"},{id=3,name="Three"}]) />
<cfset params={query:'result'} />

<!--- this works --->
<cfoutput query="#params.query#">
#id# - #name#
</cfoutput>

<!--- this don't work --->
<cfoutput attributecollection="#params#">
#id# - #name#
</cfoutput>

Actual Result: Fail

Expected Result: No fail

Any Workarounds: Do not use attributecollection.

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

Watson Bug ID:	4148583

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

Attachments:

Comments:

This issue is fixed now and the fix will be available as part of ColdFusion 2016 Update 2.
Comment by Nimit S.
2948 | May 20, 2016 01:51:22 AM GMT
test note
Comment by CFwatson U.
2949 | June 07, 2016 04:17:17 AM GMT
The fix for this bug is available as part of the early-access build for ColdFusion 2016 Update 2.
Comment by CFwatson U.
2950 | June 07, 2016 04:23:57 AM GMT