Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

(0) ShareShare
ReportReport
Posted on by 60

I am working to import contacts and the company name will not import due to this error.  Is there a way to resolve this? 

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    Hello,

    pls refer below article,

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/309481/solved-workflow-error-character-limit-in-text-field/896487

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/206449/business-process-error/538413

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    I believe you may actually have an incorrect mapping.  Phone number fields are 50 long, and there is a Phone number field whose schema name is 'company' and it is trying to import into that field instead of the one you want (which would be the parent.lookup)

  • Suggested answer
    PabloCRP Profile Picture
    PabloCRP 1,088 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    Hi LMata,

    As is been told some records that you are trying to import exceed the max length in company column. I'd like to point you where you can update that max from e.g: 50 to 1000,

    Go to Settings

    pastedimage1612990613786v1.png

    Select arrow down and click on Customizations

    pastedimage1612990696480v2.png

    Select Customize the system

    pastedimage1612990744421v3.png

    Expand Entities tab and look for contact, click on that.

    pastedimage1612990847119v4.png

    pastedimage1612990869309v5.png

    Click on fields

    pastedimage1612990938565v6.png

    Look for company column and click it

    pastedimage1612991092031v7.png

    locate Maximum Length* field and set a bigger number e.g:50 to 1000

    pastedimage1612991173537v8.png

    click on save and close

    pastedimage1612991251091v9.png

    Back in contact, click on publish 

    pastedimage1612991380243v10.png

    Regards.

    please consider marking as an answer if it was helpful
  • LMata Profile Picture
    LMata 60 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    I don't see where I can do this?  Where is this done?

  • Suggested answer
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    I think that the event can be avoided by setting the maximum length of the field where the error is occurring to 50 or more.

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    Hi,

    Could you share some more details about the Company name field is this a lookup or text field? Normally company name is associated with the Account entity but account entity have limit of 160 for the name field )

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: A validation error occurred. The length of the 'company' attribute of the 'contact' entity exceeded the maximum allowed length of '50'.

    You are probably attempting to import into the "Company Phone" field (Company in the schema).  You can increase the maximum length of the fields definition or import into the appropriate column most likely ParentCustomerId ("Customer name") - note the latter is a lookup and so won't just take a plain text value the target record must already exist in the system.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans