# Getting fatal error when importing documents

**URL:** <https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466>\
**Category:** Prismic for Content Creators\
**Created:** [October 28, 2020, 5:15pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466 "2020-10-28T17:15:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.morgan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/m.morgan/32/1108_2.png) [@m.morgan](https://community.prismic.io/u/m.morgan)\
**Post date:** [October 28, 2020, 5:15pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/1 "2020-10-28T17:15:29Z")

</div>

When importing a batch of new documents to my prismic repository, some but not all of the documents are getting the error "1 fatal error", hovering over this it says "Unable to save". There is not any more detail than this so it is impossible to know why the document import is failing. When I check the documents before the import all the documents pass your initial check.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 30, 2020, 3:10am UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/3 "2020-10-30T03:10:08Z")

</div>

Hey @m.morgan, thanks for reaching out!

You can preview the document after importing it and sometimes it highlights the line where the error is found. Could you try and take a look at that and if you see the error? take a screenshot and share it in here with us so we can better understand what could be wrong.

Also, you need to make sure that each field is entered correctly, otherwise it'll break the import.

> **[Import - JSON Reference](https://user-guides.prismic.io/en/articles/846084-import-json-reference)**
>
> JSON reference for importing documents using the Import module

---

<div class="post-metadata">

**Author:** ![m.morgan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/m.morgan/32/1108_2.png) [@m.morgan](https://community.prismic.io/u/m.morgan)\
**Post date:** [October 30, 2020, 12:52pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/4 "2020-10-30T12:52:30Z")

</div>

I did that. I am seeing no errors in the preview view. Screenshots attached.

 ![Screen Shot 2020-10-30 at 8.50.51 AM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/7/75af4e5037899ff0a370a9105668aa12d69f6e97.jpeg)  
 ![Screen Shot 2020-10-30 at 8.51.18 AM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/3/3171842eace1e7b863d8301652cc17fb16dd9fb2.jpeg)  
 ![Screen Shot 2020-10-30 at 8.51.26 AM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/1/141c2dc0ea475277a8c17b526f88b45eb71a5731.jpeg)

---

<div class="post-metadata">

**Author:** ![m.morgan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/m.morgan/32/1108_2.png) [@m.morgan](https://community.prismic.io/u/m.morgan)\
**Post date:** [November 2, 2020, 3:17pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/5 "2020-11-02T15:17:59Z")

</div>

Any update on this, still waiting for hear back.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 3, 2020, 11:11pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/6 "2020-11-03T23:11:31Z")

</div>

Hey @m.morgan, I cannot see any error, as you say. Maybe It'll be better if I do a quick test on my side.

To do so, I'll need you to share with the (in a private dm) the name of your repository and the zip file with your documents?

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 11, 2020, 3:52am UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/7 "2020-11-11T03:52:41Z")

</div>

[Update from private dm] in this case the imported documents had duplicated versions inside the import zip file, which were causing the files to break when trying to import them.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [December 2, 2020, 4:19am UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/8 "2020-12-02T04:19:03Z")

</div>

closed on December 2, 2020, 4:19am UTC, flag & select 'Something Else' to reopen.

This issue has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:55pm UTC](https://community.prismic.io/t/getting-fatal-error-when-importing-documents/2466/9 "2021-12-09T12:55:15Z")

</div>

Opened on December 9, 2021, 12:55pm UTC


