Changing a setting on Session does not have any effect (Article # 312)
View products that this article applies to.
Problem:
CreateCase was not truncating string fields after setting TruncateStringFields = true - instead it was throwing an exception.
The error from the log file was: FChoice.Foundation.Clarify.Compatibility.CompatibilityException: (20141) Invalid string value '6666666666666666666666666666666' for field 'x_pin'. Value must not be longer than 8 characters.
Resolution:
This turns out to be associated to the use of the Session State Manager. When the SupportToolkit object was created (after setting TruncateStringFields = true), the SupportToolkit used the session id it was given to get that session data from the State Manager - which did not have the new value for TruncateStringFields.
To resolve this issue, after setting TruncateStringFields, just call the SaveSession method on the session, before the Toolkit creation is done.
this.sess.TruncateStringFields = true;
this.sess.SaveSession();
this.fccs = new SupportToolkit(this.sess);
Applies To:
-
Dovetail SDK – Dovetail Software Development Kit for Clarify