Views:

What's happening?

When attempting to clone a product family, bundle, or individual product with minimal data in Dynamics 365, users encounter an error message stating "String Length Too Long," preventing the cloning operation from completing successfully.

Reason:

This occurs because the length of the 'productnumber' attribute of the 'product' entity exceeds the maximum allowed length. Specifically, the allowed length was incorrectly set to 20 characters, whereas the default maximum length for this field in a standard Dynamics 365 environment is 100 characters.

Resolution:

To resolve this, follow these steps:

  1. Import an update to the solution containing the affected field ('productnumber').
  2. Adjust the length of the 'productnumber' attribute back to the correct default length (100 characters).
  3. Publish all customizations after making the above changes.

After completing these steps, the issue should be resolved, and products, bundles, or product families should clone successfully without encountering the "String Length Too Long" error.