New features Please use http://kentico.uservoice.com as the primary place to submit your suggestions and allow others to vote for your ideas!
Version 5.x > New features > Import toolkit 5.5 data length check View modes: 
User avatar
Member
Member
lancetek - 5/18/2011 4:37:15 AM
   
Import toolkit 5.5 data length check
It would be nice if the import tool would check the destination field lengths and show a helpful message if some of the source data would be truncated or wouldn't fit.

As it stands right now, it seems to wait for SQL server to throw one of it's unhelpful exceptions, which doesn't always tell you what column you have a problem with!

example sql server error:

An error occured on import: [DataConnection.ExecuteQuery]: Query: INSERT INTO CONTENT_article ([ArticleName], [ArticleTeaserText], [ArticleTeaserImage], [ArticleText], [ArticleLeadParagraphText], [ArticleFooter], [ArticleImage], [ArticleShortHeadline], [ArticleHeadline] ) VALUES ( @ArticleName, @ArticleTeaserText, @ArticleTeaserImage, @ArticleText, @ArticleLeadParagraphText, @ArticleFooter, @ArticleImage, @ArticleShortHeadline, @ArticleHeadline); SELECT SCOPE_IDENTITY() AS [articleID] : caused exception: String or binary data would be truncated.
The statement has been terminated.


So in looking at that error, we can't tell which column has an issue. It means a longer debug cycle when we don't have enough info!

Cheers,
Lance

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/18/2011 8:38:25 AM
   
RE:Import toolkit 5.5 data length check
Hi Lance,


I agree that the error message is confusing. I have forwarded the issue to our developers and they will consider how we could improve it.


Best regards,
Helena Grulichova

User avatar
Member
Member
lancetek - 5/18/2011 9:08:06 AM
   
RE:Import toolkit 5.5 data length check
I think to improve it would be quite straightforward, but probably not too easy. I think I'm probably concerned about lengths of database fields, so if the tool could do a quick check to make sure each 'source' field doesn't exceed the length, that would be good.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/23/2011 3:36:15 AM
   
RE:Import toolkit 5.5 data length check
Hello,


there will be a Trim long text automatically button. Our developers added information about the source field to the error message as well. I hope it will be helpful.


Best reagards,
Helena Grulichova