# Fatal error when updating special\_document and special\_attachments with CSV import

**URL:** <https://tainacan.discourse.group/t/fatal-error-when-updating-special-document-and-special-attachments-with-csv-import/2106>\
**Category:** Suporte\
**Created:** [Outubro 7, 2024, 9:47pm UTC](https://tainacan.discourse.group/t/fatal-error-when-updating-special-document-and-special-attachments-with-csv-import/2106 "2024-10-07T21:47:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![argeifontesfunes](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@argeifontesfunes](https://tainacan.discourse.group/u/argeifontesfunes)\
**Post date:** [Outubro 7, 2024, 9:47pm UTC](https://tainacan.discourse.group/t/fatal-error-when-updating-special-document-and-special-attachments-with-csv-import/2106/1 "2024-10-07T21:47:14Z")

</div>

I have records in which the main document is a pdf file. I have exported the records to a csv file. I am using CSV import to import a file with data for special\_item\_id, special\_document, and special\_attachments. I want the pdf file to be now an attachment and the main document to be a URL for a YouTube video. My CSV file looks like this:  
special\_item\_id;special\_document;special\_attachments;  
1180437;url:[https://youtu.be/m5-z70FFkNQ;https://funes.uniandes.edu.co/wp-content/uploads/tainacan-items/32454/1180437/Martinez2020CoCalc.pdf](https://youtu.be/m5-z70FFkNQ;https://funes.uniandes.edu.co/wp-content/uploads/tainacan-items/32454/1180437/Martinez2020CoCalc.pdf);

Tainacan recognizes the mapping for the three fields (see figure attached). Nevertheless, when executing the import, I get the following error log:  
[2024-10-07 21:30:55] Fatal Error: see the server error log for more details  
[2024-10-07 21:30:55] Process aborted

There are no errors in the nginx and php error logs.

Thank you in advance for your help.

Best regards,

```
                    Pedro

```

 ![MetadataMapping](https://global.discourse-cdn.com/free1/uploads/tainacan/original/2X/6/6874c70aa871cae4e8e99afa697aed1cbda5fe84.jpeg)

---

<div class="post-metadata">

**Author:** ![argeifontesfunes](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@argeifontesfunes](https://tainacan.discourse.group/u/argeifontesfunes)\
**Post date:** [Outubro 8, 2024, 2:08pm UTC](https://tainacan.discourse.group/t/fatal-error-when-updating-special-document-and-special-attachments-with-csv-import/2106/2 "2024-10-08T14:08:57Z")

</div>

Update.

The problem came from the linefeed coding of the CSV file. I am using a Mac and the CSV file had Legacy Mac coding. When that coding was changed to Unix, the import worked without problems.

Best regards,

```
                    Pedro

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/tainacan/original/1X/7a4cda66d79553ef5eebf93769c00bdba65e7ab2.png) [@system](https://tainacan.discourse.group/u/system)\
**Post date:** [Outubro 13, 2024, 2:09pm UTC](https://tainacan.discourse.group/t/fatal-error-when-updating-special-document-and-special-attachments-with-csv-import/2106/3 "2024-10-13T14:09:34Z")

</div>

Fechado em Outubro 13, 2024, 2:09pm UTC

Este tópico foi fechado automaticamente 5 dias depois da última resposta. Novas respostas não são mais permitidas.
