Skip to main content
Participant
Jan 29, 2013 11:53 AM UTC
Answered

ValueList function error after migrating CF8 to CF10

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!!!

    This topic is closed to new replies. Start a new post to keep the conversation going.
    M phani kumarCorrect answer
    Participant
    Jan 31, 2013 10:41 AM UTC

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

    2 replies

    Participating Frequently
    Jan 29, 2013 12:20 PM UTC

    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)>

    Translate
    M phani kumarAuthorCorrect answer
    Participant
    Jan 31, 2013 10:41 AM UTC

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

    Translate