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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Unable to import records that are Inactive

(0) ShareShare
ReportReport
Posted on by 20

I am trying to import records in a custom entity and am getting errors when the import tries to import any records that have a StateCode of "Inactive" while all of the other records that are marked as "Active" import without any issue.  I have verified that each inactive record does have an Account record (also is marked inactive) so the lookup for the import should work.  Am I missing something?  How can I import inactive records against Inactive Accounts?

Thanks for any help that you can provide.

I have the same question (0)
  • gisiquei Profile Picture
    Microsoft Employee on at

    Hi there, potentially this behavior is happening because in an importing process the records are created by Dynamics and the system creates them in an active status. I understand you would need a second step to convert your imported records in inactive status.

    Also, the accounts you have probably are not being imported, but they already exist in Dynamics, so the system does not have an action on them, instead of only relate the records that are beingimportedto them.

  • DeVoe1 Profile Picture
    20 on at

    So if I follow your reply correctly, you're saying that ALL records have to be imported as "Active" and then I need to go back and update the certain records as "Inactive".  Is that correct?  If so, why is it that the system won't allow you to import "Inactive" status records given that companies typically have to bring over historical information into Dynamics?

    Thanks for your help and clarification above.

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi, DeVoe1

    I have tried updating and creating inactive records by importing data.

    1. For updating original inactive records, you can switch to the view of the corresponding records and click the ‘Export to Excel’ button on top to download the file.

    Then you can modify the file and import it to update the inactive records even if it has an inactive Account record.

    But it needs to be re-exported every time you’d like to update records, otherwise they cannot be updated.

    Here’s a record which is updated successfully. (update the Middle Name as ‘inactive’)

    25032.png

    6116.png

    2. For creating new inactive records, you need to follow the steps below:

    a) Add the field of status, which you mentioned as StateCode, into the main form of the Entity.

    b) Go to Advanced Settings > Settings >Data Management > Templates for Data Import and select the Entity you need to import to download the template.

    0652.png

    c) Fill in the template with the data you need to create.

    Set the status as inactive.

    Set the Account as an inactive account.

    d) Import the saved template file. It was possible to import and create it successfully by my attempts.

    25841.png

    1273.png

    If your import is still unsuccessful, you can provide me with the corresponding error message as a reference. Here's how to get error messages:

    1. Go to Advanced Settings > Settings >Data Management > Imports
    2. Click on the failed import record.
    3. Find the description of the reason for the failure on the pop-up page.

    3618.png

    Also, there is another way to temporarily solve your import failure problem If you need to import inactive records urgently and the above methods do not meet your requirements.

    1. Create a field to the entity. For example: ‘isActive’.

    2526.png

    2. Add it into the main form of the entity.

    3. New a workflow for the app.

    4606.png

    If ‘isActive’ = No, change the status of the record as ‘inactive’.

    3414.png

    4. Download, fill, save and import the template file as mentioned above. Set the ‘isActive’ as No if you want to deactivate the record.

    1856.png

    5. It can be also imported as an inactive record.

    78155.png

    Best Regards

    Nya

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 82 Super User 2026 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 44 Super User 2026 Season 2

#3
ParthPatel249 Profile Picture

ParthPatel249 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans