Hello! I added a new property to a document type here today, but I can't seem to save all of my data. I get a 500 error and when I check my log, I see that "string or binary data would be truncated." Okay, maybe something is too long here. Is there another way to approach this? Or can I increase the acceptable size for the data?
In the example shown below, some code in my view will grab each key and then make some sort of list or array out of the pipe-delimited value. Basically, I have this in some JSON in my view already, but I want to make it super easy for anyone after me to just add or remove data in the back office.
How can I save without having my data truncated?
Hello! I added a new property to a document type here today, but I can't seem to save all of my data. I get a 500 error and when I check my log, I see that "string or binary data would be truncated." Okay, maybe something is too long here. Is there another way to approach this? Or can I increase the acceptable size for the data?
In the example shown below, some code in my view will grab each key and then make some sort of list or array out of the pipe-delimited value. Basically, I have this in some JSON in my view already, but I want to make it super easy for anyone after me to just add or remove data in the back office.
Thanks for any input!
Jeremy
Hi Jeremy,
What does your
package.manifest
file look like?Most likely you need to set the value type of your editor - eg. like in this example:
Anders,
I tried adding JSON like in your example, but I still get the same problem:
Do you think I might need to specify something else there? I'm new to this, so I'm not totally sure how to proceed.
Thanks!
Jeremy
I can't remember for sure, but I think Umbraco remembers the old value (which was probably
STRING
if you hadn't specified anything).Does it change anything if you create a new data type and update the property to use that instead?
I just realized that I think I can't do this because other pages use this property editor and there might be unforeseen consequences.
Hmm...
is working on a reply...