I’ve inherited a legacy codebase, and one message that has suddenly popped up is:
Attribute [stoponerror] is not allowed for tag [cfimap]
I can see in the CFDocs that the attribute is valid, so I’m curious why I’m getting this error. Is it a missing file on my end?
I had installed CommandBox 6.2, with Java 21 JDK from Oracle and Lucee 6.2.2.91.
One more thing, I also was instructed by the error report:
valid attribute names are [ action, attachmentpath, debug, delimiter, folder, generateuniquefilenames, maxrows, messagenumber, name, newfolder, password, port, recurse, secure, server, startrow, timeout, uid, username,connection]
Any advice would be appreciated.
Thanks, and kind regards,
Jay
Ultimately, always refer to Lucee docs, cfdocs only a subset of information
As the error says, Lucee simply doesn’t support it (yet)
I’ve added the attribute to the tag definition, so it will show up as unimplemented next time we update docs to render from the latest 7.0 snapshot (Lucee docs for tags and functions are generated automatically from the Lucee code, so they reflect 100% of what is available)
https://luceeserver.atlassian.net/browse/LDEV-5764
Can you explain when it’s useful, what errors have you encountered etc?
Are you after the false version, i.e ignore any errors?
2 Likes
Added to 7.0.0.340-SNAPSHOT
2 Likes
Thanks for that insight, I’ll take a look at the Lucee docs next time.
I’m only reacting to the onstoperror
attribute error because it’s periodically showing up in my inbox (I have errors sent to my inbox) due to a scheduled task calling it.
It doesn’t look like the codebase actually did anything with any errors that occurred trying to take the cfimap action, so maybe I’ll just remove the onstoperror
attribute to see if that let’s us get through the operation alright.