web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Importing Products Failed - Truncating Error?

(0) ShareShare
ReportReport
Posted on by 10

Hello D365 Community!

I have encountered a rather odd issue...I am attempting to import new products into our D365 instance but am met with the following error: "Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 2628". I have looked up the error code 2628 here and found that the code is defined as "String or binary data would be truncated in table '%.*ls', column '%.*ls'. Truncated value: '%.*ls'.".

After some testing, I've narrowed it down to the name of certain products being too long, anything over 100 characters specifically. Oddly enough, the text field properties for product.name allow for up to 300 characters per our custom needs, and I have verified that the maximum product name length in this import is less than 150 characters long. I wonder why it's throwing an error then?

For your reference, part of my testing included parsing the product names and only keeping the first 100 characters and upon import via that test I achieved 100% success. So I have verified that the product name length is the issue. As a side note - I did go ahead and bump up the maximum character limit to 350 to see if that would "reset" anything but I am still hit with failures when attempting to import the full names.

We recently migrated from Dynamics On-Premise to D365 - I wonder if that would have anything to do with this?

I appreciate any suggestions in advance - thank you!!!

- Jared

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Jared Moore,

    One of the columns in the source data is larger than its corresponding destination column. You will need to increase the size of the destination column causing the issue, or alternatively if it is acceptable for the data to be truncated then you can turn off the warning and allow the truncation to take place.

  • thatotherdude Profile Picture
    10 on at

    Thank you for your input Adrian. Unfortunately that is not the issue I am experiencing here. I have verified that the destination column's length is 350 characters, while the source data's maximum character length is less than 150 characters - yet D365 still "thinks" that it will be truncated for some reason.

  • AishRR Profile Picture
    5 on at

    This error is resulting from an internal field "Purchase Name", that holds the same name as the product name. Try to increase the string length of that field from 100 to your desired value and re-try import.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans