There is a bug somewhere in the code (i reported it about 6 months ago on the forums where currentversion isnt set in the object). To get around that I posted a script that ensured that the currentversion was set to be 1 if it didnt exist. It also happens on occasion with the maxversions property too..
-----Original Message----- From: Seth Hodgson [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 7:46 PM To: Spectra-Talk Subject: Versioning error Hi, I ran into the following error with the cfa_contentObjectVersionCreate tag today - this error was occuring within the cfa tag: [ Error Diagnostic Information An error occured while evaluating the expression stCurrentObject.objectHistory.currentVersion = stCurrentObject.objectHistory.currentVersion + 1 Cannot convert to number ] Upon approved edit on an object, I am running a cfa_contentObjectVersionSettings call to ensure that the object is ready for versioning and then I run a cfa_contentObjectVersionCreate - at which point the error above would occur. After examining the object, it had the objectHistory structure in it but the currentVersion property was an empty string. I manually ran a cfa_contentObjectData call against the object to set it's currentVersion to 1, after which editing and versioning proceeded without incident. Any thoughts or ideas on why that contentObjectVersionCreate call was failing - why the currentVersion property was empty - would be much appreciated! Thanks, Seth ---------------------------------------------------------------------------- -- To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to [EMAIL PROTECTED] with ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
