Copy link to clipboard
Sergey, as a sanity check, can you simply do a cfdump before the cfquery of the 3 things: this.EnvStruct.Items, this.EnvStruct, and this (in that order), to confirm that what is in them is indeed what you expect? Of course, what matters most is the first, but doing the others after it may be insightful.
Note that depending on other code we can't see, you may need to do more to be able to SEE that cfdump. Let's wait to hear back before proposing solutions to that. (At a minimum, it may help to do a cfabort right before the cfquery, to prevent its error from happening.)
Charlie, I saved a dump for 3 objects in files and they have valid structure. I see the error: class coldfusion.runtime.TemplateProxy cannot be cast to class coldfusion.runtime.Struct (coldfusion.runtime.TemplateProxy and coldfusion.runtime.Struct are in unnamed module of loader coldfusion.bootstrap.BootstrapClassLoader @609e57da).