# DB clears automatically after import Data from another instance

**URL:** <https://community.dhis2.org/t/db-clears-automatically-after-import-data-from-another-instance/41444>\
**Category:** Implementation - Implémentation\
**Tags:** import\
**Created:** [8 December 2020 04:55 UTC](https://community.dhis2.org/t/db-clears-automatically-after-import-data-from-another-instance/41444 "2020-12-08T04:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sthrohit](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/sthrohit/32/29950_2.png) [@sthrohit](https://community.dhis2.org/u/sthrohit)\
**Post date:** [8 December 2020 04:55 UTC](https://community.dhis2.org/t/db-clears-automatically-after-import-data-from-another-instance/41444/1 "2020-12-08T04:55:41Z")

</div>

After importing OUs, Tracker Data from another instance. DB automatically gets clear after some period of uses. i tried many versions of dhis2 but the problem still persist. What causes DB to flush all the data automatically??

---

<div class="post-metadata">

**Author:** ![chase.freeman](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/chase.freeman/32/29570_2.png) [@chase.freeman](https://community.dhis2.org/u/chase.freeman)\
**Post date:** [8 December 2020 13:27 UTC](https://community.dhis2.org/t/db-clears-automatically-after-import-data-from-another-instance/41444/2 "2020-12-08T13:27:07Z")

</div>

@sthrohit that doesn’t sound right. How are you verifying that there is no data in the database? Are you querying the database directly? Are you using the API? Or are you looking for analytics objects to be populated?

---

<div class="post-metadata">

**Author:** ![sthrohit](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/sthrohit/32/29950_2.png) [@sthrohit](https://community.dhis2.org/u/sthrohit)\
**Post date:** [10 December 2020 03:54 UTC](https://community.dhis2.org/t/db-clears-automatically-after-import-data-from-another-instance/41444/3 "2020-12-10T03:54:58Z")

</div>

Hi @chase.freeman,  
i directly viewed if there were data in DB using **pgAdmin**. there were no data in the tables( users, trackedentity).

**How did i import/export data?**  
I exported data using import/export tool from another instance and imported to the new instance.
