# Export / Import Users

**URL:** <https://community.dreamfactory.com/t/export-import-users/1033>\
**Category:** Users & Roles\
**Created:** [April 24, 2015, 12:21pm UTC](https://community.dreamfactory.com/t/export-import-users/1033 "2015-04-24T12:21:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serkan](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@Serkan](https://community.dreamfactory.com/u/Serkan)\
**Post date:** [April 24, 2015, 12:21pm UTC](https://community.dreamfactory.com/t/export-import-users/1033/1 "2015-04-24T12:21:11Z")

</div>

Hello,

When i export and import users from dreamfactory dashboard, i get this error:  
“Api Error  
Batch Error: Not all parts of the request were successful.”

Note: I use the same csv,json or xml file. (Not edited)

---

<div class="post-metadata">

**Author:** ![formerstaff](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/formerstaff/32/1133_2.png) [@formerstaff](https://community.dreamfactory.com/u/formerstaff)\
**Post date:** [June 8, 2015, 2:36pm UTC](https://community.dreamfactory.com/t/export-import-users/1033/2 "2015-06-08T14:36:22Z")

</div>

Serkan, when importing users you cannot import a user with an ID # that is the same as a currently existing user in the system. This is likely the cause of your issue.

For example, when I export all my users from one DSP, my account (the original admin) is ID # 1. My account in the new DSP is also ID # 1, so I cannot import that row from my export file without editing it first. I can change the ID or remove the row entirely.

Email addresses are also unique to the user records, so attempting to import a user with an email address already taken will also fail. In my example above, this would mean I would take the second option of removing the record entirely, since I used the same email address to register my admin user in both DSPs.

Finally, looking into your DSP log file will provide more detailed information about why the import is failing (if it’s not one of the reasons I listed above.)

---

<div class="post-metadata">

**Author:** ![Serkan](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@Serkan](https://community.dreamfactory.com/u/Serkan)\
**Post date:** [June 11, 2015, 5:04pm UTC](https://community.dreamfactory.com/t/export-import-users/1033/3 "2015-06-11T17:04:07Z")

</div>

Thank you @formerstaff, i will try it but i am sure you are right. 👍
