• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ValueList function error after migrating CF8 to CF10

Community Beginner ,
Jan 29, 2013 Jan 29, 2013

Copy link to clipboard

Copied

Hi All,

We are migrating our reports from CF8 to CF10. (uninstalled existing CF8 and installed CF10) in 32bit OS.

After upgradation of CF10, tried to open our report, then we got the below error.

----------------------error --------------------------

The ValueList() function has an invalid parameter: DS_ODBC_LIST.entry.Parameter 1 of function ValueList which is now DS_ODBC_LIST.entry must be pointing to a valid query name.

------------------error-----------------------

-------------original code -----------------------------------

<CFREGISTRY

    ACTION=GETALL

    NAME="DS_ODBC_List"

    TYPE="ANY"

    BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI">

<cfset DSNnames = valueList(DS_ODBC_LIST.Entry)>

-----------------------------original code--------------------------

Then tried to dump / print the DS_ODBC_List using CFoutput/cfdump then we got error like:

Variable DS_ODBC_LIST is undefined

in CF Administrator the tag CFREGISTRY is in enabled tags list.

can some one suggest me what the alternate tag / any patch I can use to solve the issue ?

Thanks in advance!!!

Views

684

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jan 31, 2013 Jan 31, 2013

installilng mandate patch and hotfix-7 sold the issue, Thanks All

Votes

Translate

Translate
Engaged ,
Jan 29, 2013 Jan 29, 2013

Copy link to clipboard

Copied

At a guess it may be choking on the underscores in the query name.  You could try referencing it like:

<cfset DSNnames = valueList(variables["DS_ODBC_LIST"].Entry)>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 31, 2013 Jan 31, 2013

Copy link to clipboard

Copied

LATEST

installilng mandate patch and hotfix-7 sold the issue, Thanks All

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation