String or binary data would be truncated error when saving a custom property editor
(I'm using Umbraco 7.1.1)
I have created a custom property editor that saves some data for an item in JSON format. The issue is that when the text reaches a certain character amount (around 500 or so), the error gets thrown.
I put that XML in my web.config but it didn't seem to help. The default for the maxJsonLength is 2097152 which is well above the maximum Json I have tried to save.
I suspect you previously had the valueType either unspecified or specified in the wrong place, and that your manifest file is cached. Try rebuilding your site, restarting the app pool, clearing your browser cache, and restarting the website.
String or binary data would be truncated error when saving a custom property editor
(I'm using Umbraco 7.1.1)
I have created a custom property editor that saves some data for an item in JSON format. The issue is that when the text reaches a certain character amount (around 500 or so), the error gets thrown.
Here's the manifest file:
If anyone has any ideas of why I can't save more data, that'd be greatly appreciated.
Thanks
Hi Collin and welcome to our :)
I'm not sure but I think this may be due to a limitation in the default JSON length in the web.config file.
Try doing tweak number 2 mentioned in this article by Jeavon Leopold http://24days.in/umbraco/2013/6-easy-configuration-tweaks/
Hope this helps.
/Jan
Hey Jan,
I put that XML in my web.config but it didn't seem to help. The default for the maxJsonLength is 2097152 which is well above the maximum Json I have tried to save.
-Collin
Hi Collin
Ok, then I'm afraid I'm clueless on this one - Hopefully one of the other bright minds in here can help you out.
Cheers, Jan
I suspect you previously had the valueType either unspecified or specified in the wrong place, and that your manifest file is cached. Try rebuilding your site, restarting the app pool, clearing your browser cache, and restarting the website.
Here is an issue somebody else had that was very similar to yours: http://issues.umbraco.org/issue/U4-3782
The app pool restart did the trick. Thanks a ton Nicholas
I seem to be having the same issue, but setting the valueType didn't fix it. I've started a new topic here: http://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/59997-String-or-binary-data-would-be-truncated-with-custom-property-editor
Jeroen
is working on a reply...