I am new in slack. I hope am giving enough inform...
# cfml-general
d
I am new in slack. I hope am giving enough information. I am getting seeing this error off an on. "The detail: Element DSN is undefined in THIS. The error occurred on line 231." This error is indicating that the datasource is undefined. It seems as if it is dropping all of a sudden. Any ideas on why this would be?
r
We would need a bit more context to help you solve your problem. In your code it looks like you are trying to access
this.dsn
. I assume you are trying to access that variable inside a cfc and so your code is trying to access a property on the cfc instance and cfml cannot find it. Have you made sure the variable has been define. You can dump out the
this
scope to inspect what properties are available.
writeDump(var=this)
If you provide a snippet of your code it would be much more helpful
1
m
If using tags <cfdump var="#this#" />
💯 1
Ryan, wouldn't that be writeDump(this)?
r
@Mark Takata (Adobe) same same. My dump hotkey is
writeDump(var=this, top=5)
as my cfc property trees get huuuuuge
m
oh that's a sweet trick, nice. You're right haha
🤘 1