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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Data Import / Export u...
Finance forum

Data Import / Export using Data Management

(0) ShareShare
ReportReport
Posted on by 1,128

Hi, 

I created a custom entity for Cust table and using that to import data from one entity into another.

As I tried to import the error message appears saying that "The data value violates integrity constraints." on the [filed1].

That field is not relevant to us so I deleted it from the excel upload file and tried to upload. But now it’s throwing error on [field2]. I tried deleting couple of columns like this but still no luck. what could be the issue? I have only one row of sample data. Any help is appreciated.

Thank you

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    Hard to tell without more detailed information.

    What were these fields? Were they related to other tables? For example you can't specify a customer group that doesn't already exist in the customer group table.

  • Ann2015 Profile Picture
    1,128 on at

    one field was CustTradingPartnerCode_TradingPartnerCode.  It is related to other table but the value in the excel file for this field is null.

    Thank you for the quick response.

  • nmaenpaa Profile Picture
    101,174 Moderator on at

    What do you mean by null, empty or "null"?

  • Ann2015 Profile Picture
    1,128 on at

    Sorry they are empty!.

  • André Arnaud de Calavon Profile Picture
    308,205 Super User 2026 Season 2 on at

    Hi Ann,

    Check if the fields are set mandatory in the staging table. If so, there is a value required in the source file. It would be possible to remove the mandatory flag. What is your reason to create a new entity for customers? Did you miss some attributes in the standard entities?

  • Ann2015 Profile Picture
    1,128 on at

    I am importing data from one entity into another. Since I  have custom fields in CustTable and the standard out of the box customer entity didn't have those custom fields, I created a new entity.

    I will check if the fields are set to mandatory in the staging table. Thank you.

  • André Arnaud de Calavon Profile Picture
    308,205 Super User 2026 Season 2 on at

    Hi Ann2015,

    Creating a new entity is one option. It would also be possible to create a data entity extension to expose the new custom fields. It is up to you.

    Once you checked the mandatory property, please update this thread with your findings. There might be some more causes, but then the cells in the Excel file should have some "illegal" values and not blanks.

  • Ann2015 Profile Picture
    1,128 on at

    Andre,

    Thanks for the reply.

    Do you have any documentation of creating data entity extension to expose the new custom fields? I think this would be a better option for us.

    Thanks!!

  • Verified answer
    nmaenpaa Profile Picture
    101,174 Moderator on at
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Ann2015,

    Has your question been answered?

    If so, please mark the answer as verified.

    Many thanks and best regards,

    Ludwig

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans