When shredding a document I got the following error
“Message: Caught exception on shredding document (DocType = 'ARKForm', DocId = 796) encountered a critical error and needs attention: System.ApplicationException: An error occurred saving form data to the database: -One of the form's values was too large or could not be converted to the correct data type to be stored in the database.“
I have investigated the document and found that one of the fields contained 280 chars and the field in the DB was set to nvarchar(200).
I am sure I have found the field which is causing the problem, because when I delete the value in the field and save I don’t get any errors.
Also when I reduce the length of the field to 199 characters and save I don’t get any errors. When I have the field with 201 characters I get errors.
I have moved the data to another field on the form – (which is already mapped to a nvarchar(max) field) - and saved, I don’t get errors – so it I don’t think it is a problem with the “total” amount of data shredded.
I have updated the table in the database to be nvarchar(max) and saved. I have taken the field value (280 chars) and pasted it into the db successfully, to check that the field is now big enough.
I still get errors when I shred the document.
I have opened the doctype in dbxl refreshed the database and saved. – still errors
Checked the mapping to make sure that field is not mapped anywhere else. It is not mapped to another field in this table. ( It is mapped to another table the field table was already set to nvarchar(max) and other long fields are mapped to it with no problem.)
After changing the db to be nvarchar(max), reduced the length of the field to 199 characters and saved with no errors. When I increased the field to 201 characters I get the error.
I am sure I am missing a step somewhere but don’t know where.
Thank you
Catharine