Tuesday, June 17, 2014

Error updating options list.The option list value exceeds the maximum length allowed of 50

PROBLEM:

Error updating options list.The option list value exceeds the maximum length allowed of 50


SOLUTION:

1)If you are manually defining the Option list for metadata i.e hard coding the value in ValuesList,then you will get this error
"The option list value exceeds the maximum length allowed of 50".
This is the expected behaviour.
Workaround:
If you go to the OCS schema,you can find a table "OptionList",there is column called "doption".
Now this column size is defined as 50.
So,by altering this you will be able to define option list value with more than 50.
NOTE:This is not the supported way,as in future if some patch set applied it will revert it back to 50.
2)Another Workaround which is supported way,is by using the views,and allowing the option list value to be populated by the Views.

No comments:

Post a Comment