brybott
9 years agoVisitor
ifSGNodeField.setField() fail
I have a situation where setting a field on a node occasionally fails. According to the documentation:
So, setField() is definitely returning false, and the field type is definitely correct (it's defined as a string, and I'm definitely attempting to set a string on it). Is there anything else that could make setting a value on a field fail besides a type mismatch?
setField(fieldName as String, value as Object) as Boolean
Sets the value of the subject node field identified by fieldName to value. This will fail and stop script execution if the value is not of the appropriate type. Returns true if the field is successfully set, false otherwise.
So, setField() is definitely returning false, and the field type is definitely correct (it's defined as a string, and I'm definitely attempting to set a string on it). Is there anything else that could make setting a value on a field fail besides a type mismatch?