Without more information it's impossible to say. Clearly, whether or not you
believe the variable is defined, it isn't, or CF wouldn't be throwing an
error. It's also worth pointing out that referencing the application scope
from within a component is generally not a good idea anyway, since it
violates the encapsulation of the component.

On Mon, Apr 28, 2008 at 11:35 PM, Colman, Richard <[EMAIL PROTECTED]>
wrote:

> I keep getting these on an intermittent basis, and don't know how to go
> about diagnosing the problem. I know the variable exists. Any
> suggestions welcome.
>
>
>
> Element DATASOURCE is undefined in APPLICATION.
>
>
>
>
>
>
>
>
> The error occurred in C:\Inetpub\wwwroot\dev\changeLog\changeLog.cfc:
> line 15
>
> 13 :           <cfargument name="order" default="asc" required="true"
> type="string">
>
> 14 :           <cfargument name="filter" default="all" required="true"
> type="string">
>
> 15 :           <cfquery name="qChangeLog"
> datasource="#application.datasource#">
>
> 16 :                   select *
>
> 17 :                   from dbo.change_log
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304376
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to