System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated. (MultiNode Tree Picker)
Hi all, I need to programmatically fill property MultiNode Tree Picker. But when the values too much, I get an error:
System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated.
Easy i think, go to the developer section, then go to datatypes and find the multinode tree picker and set the maximum allowed items up to what your needs may be.
Unfortunately it did not help. I set the maximum allowed items = 100. I have 95 items that I want to add. The error occurs after 80 items. But then I add new entries manually, and there is no error. But since I have to handle a lot of items I can not add them manually.
System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated. (MultiNode Tree Picker)
Hi all, I need to programmatically fill property MultiNode Tree Picker. But when the values too much, I get an error: System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated.
How do I get around this?
Easy i think, go to the developer section, then go to datatypes and find the multinode tree picker and set the maximum allowed items up to what your needs may be.
Hope that works out for you
Unfortunately it did not help. I set the maximum allowed items = 100. I have 95 items that I want to add. The error occurs after 80 items. But then I add new entries manually, and there is no error. But since I have to handle a lot of items I can not add them manually.
Could you try to change a dbType (field) property from nvarchar to ntext for Umbraco.MultinodeTreePicker on cmsDataType table?
Thank you! It works!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.