Error when using the "Save as umbraco document" workflow type for certain fields
I'm trying to use Contour to create new content nodes in Umbraco and I'm having trouble during the workflow setup.
When I try to map text fields to properties in my Document Type (including Node Name) I get the error below.
It appears to be that there isn't enough space on my Document Type properties in SQL Server to store the infomation from me Contour Form. But there isn't a way to limit the size of the fields in Contour (from what I can tell).
As a side note, its saves OK when I map Contour fields to only field that are set as "Textbox Multiple" types.
String or binary data would be truncated. The statement
has been terminated.
Just tried updating to the latest nightly (1.0.10) and now I can map to node name, but I'm still getting the error on some other fields.
If I only map to the node name, I do get an item published in the content tree on submission, so that works. Its just the setup of the mapping that is throwing the exception.
One thought might be to change the Database Datatype for the "Textstring" datatype from Nvarchar to Ntext. Ntext is what the Textbox Multiple uses, and since you're not having problems there I would assume that's the issue.
Note - (I think) changing this (might) cause you to lose data typed into existing Textstring fields. You could try adding a new data type or test on a dev box first :). Also I don't know if using ntext for all your textboxes would cause any performance issues, so maybe better to add a new datatype anyway if that works for you.
Thanks for the reply Tom, I'll probably have to try that. I was thinking I could change all the fields to multiline text fields, but that looks funny on the Content Page. Perhaps a new Datatype could give a single line text field but use ntext in the database.
I'm also hoping that the Contour team can take a look and perhaps see if its a bug.
The mappings get saved in a single db field, so it looks like when you map a lot of fields the field isn't big enough. It should be easy to fix by just a simple db update.
It's the Value column in the UFSettings table that is causing the problem (so updated that so it can store more then 1000 chars should fix the problem)
Error when using the "Save as umbraco document" workflow type for certain fields
I'm trying to use Contour to create new content nodes in Umbraco and I'm having trouble during the workflow setup.
When I try to map text fields to properties in my Document Type (including Node Name) I get the error below.
It appears to be that there isn't enough space on my Document Type properties in SQL Server to store the infomation from me Contour Form. But there isn't a way to limit the size of the fields in Contour (from what I can tell).
As a side note, its saves OK when I map Contour fields to only field that are set as "Textbox Multiple" types.
String or binary data would be truncated.
The statement has been terminated.
Stack Trace:
Just tried updating to the latest nightly (1.0.10) and now I can map to node name, but I'm still getting the error on some other fields.
If I only map to the node name, I do get an item published in the content tree on submission, so that works. Its just the setup of the mapping that is throwing the exception.
I guess I need to contact support on this one...
Hi Jason,
One thought might be to change the Database Datatype for the "Textstring" datatype from Nvarchar to Ntext. Ntext is what the Textbox Multiple uses, and since you're not having problems there I would assume that's the issue.
Note - (I think) changing this (might) cause you to lose data typed into existing Textstring fields. You could try adding a new data type or test on a dev box first :). Also I don't know if using ntext for all your textboxes would cause any performance issues, so maybe better to add a new datatype anyway if that works for you.
Thanks,
Tom
Thanks for the reply Tom, I'll probably have to try that. I was thinking I could change all the fields to multiline text fields, but that looks funny on the Content Page. Perhaps a new Datatype could give a single line text field but use ntext in the database.
I'm also hoping that the Contour team can take a look and perhaps see if its a bug.
Comment author was deleted
Hi Jason,
The mappings get saved in a single db field, so it looks like when you map a lot of fields the field isn't big enough. It should be easy to fix by just a simple db update.
Will check which table and field and report back.
Regards,
Tim
Comment author was deleted
Hi Jason,
It's the Value column in the UFSettings table that is causing the problem (so updated that so it can store more then 1000 chars should fix the problem)
Tim, you are awesome. I knew there was a simple answer that I was missing. I set it to nvarchar(MAX) and it worked like a dream.
Seriously, that feature alone makes Contour so fricken cool.
Thanks!
is working on a reply...