# importing leads error

**URL:** https://forum.mautic.org/t/importing-leads-error/2315
**Category:** General Discussion
**Created:** [September 9, 2015, 3:24pm UTC](https://forum.mautic.org/t/importing-leads-error/2315 "2015-09-09T15:24:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kbeideman](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kbeideman](https://forum.mautic.org/u/kbeideman)
#### Post date: [September 9, 2015, 3:24pm UTC](https://forum.mautic.org/t/importing-leads-error/2315/1 "2015-09-09T15:24:57Z")

</div>

Installed 1.2 on SME Server 9 with PHP 5.5.29. Works beautifully except for importing leads. When I try to upload a CSV with about 38K rows I get "Unable to read the imported csv file. " No matter how I format with delimiter, escape and enclosure I get the same error message. Any special tricks to get this working?

---

<div class="post-metadata">

### Author: ![kbeideman](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kbeideman](https://forum.mautic.org/u/kbeideman)
#### Post date: [September 9, 2015, 3:24pm UTC](https://forum.mautic.org/t/importing-leads-error/2315/2 "2015-09-09T15:24:57Z")

</div>

Installed 1.2 on SME Server 9 with PHP 5.5.29. Works beautifully except for importing leads. When I try to upload a CSV with about 38K rows I get "Unable to read the imported csv file. " No matter how I format with delimiter, escape and enclosure I get the same error message. Any special tricks to get this working?

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 10, 2015, 8:37am UTC](https://forum.mautic.org/t/importing-leads-error/2315/3 "2015-09-10T08:37:38Z")

</div>

Could you try to import a file with only first let’s say 3 rows of the CSV file? That could tell us if the whole file is broken or if there is some problem in some row 3789 or so. Also, please, check if there is some error message in app/logs folder.

---

<div class="post-metadata">

### Author: ![kbeideman](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kbeideman](https://forum.mautic.org/u/kbeideman)
#### Post date: [September 10, 2015, 11:22am UTC](https://forum.mautic.org/t/importing-leads-error/2315/4 "2015-09-10T11:22:44Z")

</div>

Thanks for the reply. Regardless of how many lines I still get the error. I did find the logs and the only entry is:

ERROR: Fatal: File upload error - unable to create a temporary file - in file Unknown - at line 0 [] []

Is Mautic trying to use /tmp?

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 10, 2015, 11:27am UTC](https://forum.mautic.org/t/importing-leads-error/2315/5 "2015-09-10T11:27:10Z")

</div>

Well, yes. Server uploads the file to a tmp directory (upload\_tmp\_dir). If it doesn’t have permission to do that, it throws the error.

---

<div class="post-metadata">

### Author: ![kbeideman](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kbeideman](https://forum.mautic.org/u/kbeideman)
#### Post date: [September 10, 2015, 2:08pm UTC](https://forum.mautic.org/t/importing-leads-error/2315/6 "2015-09-10T14:08:21Z")

</div>

ok…think I got the /tmp permissions and access figured out. It still fails with the same error, but there is nothing showing up in the log file.

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [September 11, 2015, 12:26pm UTC](https://forum.mautic.org/t/importing-leads-error/2315/7 "2015-09-11T12:26:43Z")

</div>

Does Asset upload work for you?

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/importing-leads-error/2315/8 "2020-02-02T22:58:33Z")

</div>


