ColdFusion · Database exception

Datasource Could Not Be Found

What does Datasource Could Not Be Found mean in ColdFusion?

Occurs when a page references a datasource name that isn't registered in the ColdFusion instance actually serving the request — the name is misspelled, the variable used in cfquery's datasource attribute was never set, or in a multiserver setup the datasource was only defined on one instance while the web server routes to another. It appears even when the same datasource verifies fine in the Administrator, if you're looking at a different instance.

Datasource Could Not Be FoundAdobe ColdFusion

Condition

Occurs when a page references a datasource name that isn't registered in the ColdFusion instance actually serving the request — the name is misspelled, the variable used in cfquery's datasource attribute was never set, or in a multiserver setup the datasource was only defined on one instance while the web server routes to another. It appears even when the same datasource verifies fine in the Administrator, if you're looking at a different instance.

Fix

Confirm which CF instance actually handles the request, and register the datasource on every instance that needs it rather than assuming a multiserver setup shares datasource configuration.

Pending source verification. Not yet checked against official documentation.

Related database exception