Custom Property Editor with Angular array to add rows throwing 500 on save and publish
Hi All,
We're building up a simple custom property editor which is a media item with text and link.
The property editor is in a repeat so the user can add a number of them on the fly. It is a very simple implementation but we're having some niggly unexplained issues.
We also found if you render a button control in the property editor and have any interaction with it for the AddItem method it would 500.. wrapping the addItem method in a span or any other tag fixed that issue.
I can't see how it would be a space issue or the like as the JSON blob shouldn't be too big. I was wondering if the multiple media properties were throwing it?
There is a close div in the view but the code editor on the forum seems to be eating it
What was getting us though was that the Data Type was created before the valueType property was added, and so the admin continued to be saved into the wrong column in the db (where our content was rejected because it was too long to fit under the dataNvarchar column).
What we did in the end was to just resave the Data Type from the Developer section in the admin panel and it worked.
Custom Property Editor with Angular array to add rows throwing 500 on save and publish
Hi All, We're building up a simple custom property editor which is a media item with text and link.
The property editor is in a repeat so the user can add a number of them on the fly. It is a very simple implementation but we're having some niggly unexplained issues.
The controller is here:
We're basically building up an array of property editors but when we go to save and publish we're getting a 500. "POST https://my.website.test/umbraco/backoffice/UmbracoApi/Content/PostSave 500 (Internal Server Error)"
Here's the html view:
We also found if you render a button control in the property editor and have any interaction with it for the AddItem method it would 500.. wrapping the addItem method in a span or any other tag fixed that issue.
I can't see how it would be a space issue or the like as the JSON blob shouldn't be too big. I was wondering if the multiple media properties were throwing it?
There is a close div in the view but the code editor on the forum seems to be eating it
https://github.com/imulus/Archetype/issues/34
Looks like it is related to this. We're running 7.2 so this hasn't been fixed?
We're getting an sql would be truncated error
We have solved this, basically need to make sure that in
package.manifest
that the valueType is set as JSON like so:What was getting us though was that the Data Type was created before the
valueType
property was added, and so the admin continued to be saved into the wrong column in the db (where our content was rejected because it was too long to fit under the dataNvarchar column).What we did in the end was to just resave the Data Type from the Developer section in the admin panel and it worked.
is working on a reply...