Skip to main content
Participant
February 17, 2012
Answered

Attribute validation error for tag CFQUERY

  • February 17, 2012
  • 2 replies
  • 5769 views

I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:

Attribute validation error for tag CFQUERY.

The value of the attribute datasource, which is currently '', is invalid.

The datasource is being set in application.cfc, and again works just fine in the shared environment.

The only differences is the shared is running on Windows, and the VPS is Linux. Also, the Windows is running version 9,0,1,274733 and the Linux is 9,0,0,251028

Any help would be greatly appreciated.

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    If the file in question really is called "application.cfc" then that is your problem.  It's supposed to be "Application.cfc".

    --

    Adam

    2 replies

    BKBK
    Community Expert
    Community Expert
    February 17, 2012

    bbholdem wrote:

    I have a CF application that's running fine on a shared host. I now have a VPS running version of CF 9. When I try to use this on the VPS, I get the following error:

    Attribute validation error for tag CFQUERY.

    The value of the attribute datasource, which is currently '', is invalid.

    The cause of the error is obvious. Somewhere in your application, the cfquery tag is used as follows, with an empty string as datasource:

    <cfquery datasource="">

    </cfquery>

    That is a mistake. The error message should tell you where that occurs.

    Owainnorth
    Inspiring
    February 17, 2012

    It'll be what Adam says - as it's linux it's case sensitive, so hasn't run your application.cfc and set the datasource.

    Adam Cameron.Correct answer
    Inspiring
    February 17, 2012

    If the file in question really is called "application.cfc" then that is your problem.  It's supposed to be "Application.cfc".

    --

    Adam

    bbholdemAuthor
    Participant
    February 17, 2012

    That did it. Thank you so much!