The name length (max 100) should be catch by the API:s. How's about the EditCaption?
Turn on log4net on full and see if that captures the failing contenttype and property. If it doesnt, turn on sql profiler or similar and check what values are the problem and then correct them...
I could not find ant errors on profiler and also there was no other useful data on log file. :(
Thanks Quan, @Daniel,
I restored my db from a back up from 2 days ago and now everything is working fine. it seems that something messed up the DB.
How to prevent it next time? :|
Without knowing what went wrong then it's hard to say. But you can compare the databases (the good and the faulty one) to see the differences - then perhaps we can find a way.
I've got the error again today.
Then,as you suggested, I've compared the running db with my backup from last night. It had some fields on MetaField (Ecommerce) table that belong to my other branch (with other connection string).
So in my opinion, it might happen if people switch their working branch, but dont rebuild their solutions before they browse the site. Is there any possible scenario?
Yes, it's of course a possible scenario. When you have some mismatches between your code and your database - anything can happen.
Thanks for your help ;)
My InitializationEngine fails after I've rebuilt today giving me this error : "String or binary data would be truncated. The statement has been terminated."
I know about the rule about max 50 characters, so I've checked my source control for any names more than 50 in last 2 days and I've found nothing bigger than 40.
I searched len of [ModelType] in table [tblContentType] in my DB but there was no problem in that either.
How can I trace the error?
More importantly, it was working fine last night so I don't know what could be the problem :(