Matthew P. Smith wrote:
> I am getting this error first time I hit a cfquery:
*Only* the first time?
> Error Occurred While Processing Request
>
> Data source foo could not be found.
>
>
> Thing is, it verifies fine in cfadministrator.
Typo in the datasource name is the most common problem. You might want
to verify using the code below:
<cflock name="serviceFactory" type="exclusive" timeout="10">
<cfscript>
factory = CreateObject("java", "coldfusion.server.ServiceFactory");
ds_service = factory.datasourceservice;
dsources = ds_service.datasources;
</cfscript>
<!--- dump existing datasources for visual verification--->
<cfdump var="#dsources#">
</cflock>
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm