# Import users fails with "message":"Users file must not be empty","errorCode":"operation\_not\_supported"

**URL:** <https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880>\
**Category:** Get Help\
**Tags:** user-import\
**Created:** [March 31, 2022, 9:03am UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880 "2022-03-31T09:03:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhukar.koratagere](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/madhukar.koratagere/32/33197_2.png) [@madhukar.koratagere](https://community.auth0.com/u/madhukar.koratagere)\
**Post date:** [March 31, 2022, 9:03am UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880/1 "2022-03-31T09:03:02Z")

</div>

when trying to import users, it fails with the below error, can you please point to what am doing wrong here ?

ERROR recieved :

{“statusCode”:400,“error”:“Bad Request”,“message”:“Users file must not be empty”,“errorCode”:“operation\_not\_supported”}

Contents of the python script to import users are as below :

ubuntu@ip-10-0-1-209:~/Auth0$ cat import.py  
import http.client

conn = http.client.HTTPSConnection(“.auth0.com”)

payload = “-----011000010111000001101001\r\nContent-Disposition: form-data; name="users"; filename="/home/ubuntu/Auth0/users.json"\r\nContent-Typ  
e: text/json\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name="connection\_id"\r\n\r\ncon\_gV9jDmRljFESONiB\r\n-----011000010  
111000001101001\r\nContent-Disposition: form-data; name="external\_id"\r\n\r\nEXTERNAL\_ID1\r\n-----011000010111000001101001–\r\n”

headers = {  
‘authorization’: "Bearer ",  
‘content-type’: “multipart/form-data; boundary=—011000010111000001101001”  
}

conn.request(“POST”, “https://[auth0.com/api/v2/jobs/users-imports](http://auth0.com/api/v2/jobs/users-imports)”, payload, headers)

res = conn.getresponse()  
data = res.read()

print(data.decode(“utf-8”))

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 1, 2022, 1:22pm UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880/3 "2022-04-01T13:22:17Z")

</div>

Hi @madhukar.koratagere,

Welcome to the Auth0 Community!

We are currently seeing an issue where certain file sizes are not importing correctly. A fix is being rolled out early next week. Could you please tell us the size of the file you are importing?

reference: [File size limit for Bulk User Imports looks getting lower than 500KB as specified?](https://community.auth0.com/t/file-size-limit-for-bulk-user-imports-looks-getting-lower-than-500kb-as-specified/80287)

---

<div class="post-metadata">

**Author:** ![madhukar.koratagere](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/madhukar.koratagere/32/33197_2.png) [@madhukar.koratagere](https://community.auth0.com/u/madhukar.koratagere)\
**Post date:** [April 3, 2022, 7:47am UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880/4 "2022-04-03T07:47:52Z")

</div>

Thanks for your reply Dan, i did see the limitation on the file size as being 500KB in the documentation, hence have kept the file size much lower.

I also tried a scenario where import file contains only 1 user and the format of the file is also verified json format.

_Edit: removed sensitive info_

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 4, 2022, 3:53pm UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880/6 "2022-04-04T15:53:23Z")

</div>

Hi @madhukar.koratagere,

I removed the code you posted because it contained tokens and other info that could be considered sensitive.

Let’s wait until the bug is resolved and see if you are still returned the error.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 25, 2022, 9:25pm UTC](https://community.auth0.com/t/import-users-fails-with-message-users-file-must-not-be-empty-errorcode-operation-not-supported/80880/7 "2022-05-25T21:25:14Z")

</div>


