tracker issue : CF-4198359

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

cfexecute errors when arguments passed as array

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Giancarlo Gomez / Giancarlo Gomez ()

Created: 02/24/2017

Components: Language, Tags

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016.0.03.300466 / 302165

Priority/Frequency: Normal / All users will encounter

Locale/System: / Win 2008 Web Server

Vote Count: 0

Listed in the version 2016.0.04.302561 Issues Fixed doc
Problem Description:
Passing arguments as an array to cfexecute returns the following error.
Complex object types cannot be converted to simple values.

Steps to Reproduce:

var args = {
 name : "{{value}}",
 arguments : ["{{value}}","{{another value}}"],
 timeout : 15,
 variable : "result"

cfexecute( attributecollection:args );

Actual Result:
Error : Complex object types cannot be converted to simple values.

Expected Result:
No Error

Any Workarounds:

Set arguments as a string or do this before passing to cfexecute.

args.arguments = args.arguments.toList(" ");

This was not an issue before, upgraded last night and ran into this.