# (SOLVED) PLEASE HELP! Could Not Open File

**URL:** <https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157>\
**Category:** Bug Reports\
**Created:** [4 January 2020 20:45 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157 "2020-01-04T20:45:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinel.page](https://discuss.pencil2d.org/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@spinel.page](https://discuss.pencil2d.org/u/spinel.page)\
**Post date:** [4 January 2020 20:45 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/1 "2020-01-04T20:45:51Z")

</div>

I was simply working on an animation I have been working on for weeks. I accidentally hit something and my computer turned off. When I turned it back on the animation file I have been working on wouldn’t load, coming up with a message that says ‘Could not open file’ under it said ‘There was an error processing your file. This usually means that your project has been at least partially corrupted. You can try again with a newer version of Pencil2D, or you can try to use a backup file if you have one.’. I do not have a backup file and I am using the current version of Pencil2D. Could someone please help me fix this? I have been working on this for weeks, almost a month and I don’t wanna lose it all.

---

<div class="post-metadata">

**Author:** ![JoseMoreno](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/josemoreno/32/7_2.png) [@JoseMoreno](https://discuss.pencil2d.org/u/JoseMoreno)\
**Post date:** [4 January 2020 22:05 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/2 "2020-01-04T22:05:21Z")

</div>

@spinel.page Hi sorry to hear about this problem. Indeed when there’s something that interrupts the saving procedure (like a blackout, power surge, etc) files can get corrupted.

If you are under Windows OS you can look in the **temporary files folder** , as Pencil2D saves a copy when the program doesn’t close properly.

**CONSIDERATIONS** :

- **There is no guarantee this will work** to recover your corrupted projects, but a few people have managed to get their some of their files back using this method.
- If you were using `.pcl` files instead of `.pclx` files and you can’t find your files inside the **.data** folder, there’s little we can do to recover.
- You will be required to change the file extensions of your Pencil2D project files. If you cannot currently see file extensions please follow these external guides:  
WINDOWS

> **[How to show File Extensions in Windows 10](https://www.thewindowsclub.com/show-file-extensions-in-windows)**
>
> Learn how to hide or show file extensions in Windows 10/8/7 File Explorer via Folder Options, Registry, Group Policy or CMD. It is better to set Windows to show them, from a security point of view

**RECOVERY STEPS** :  
a) In the **Start Menu** \> go to **System** , or open the **folder explorer**

b) Locate the folder **address bar** at the top of the window.

1. Click over the **current folder address** e.g if you see something like “Desktop”, **`C:\User\Username\Destop`** or **`USERNAME > Desktop`** click on that.  
_Note: MORE is my username, your’s will be different._  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/d74c6b942bd05fe3826f40790580943033cb29b4.png)
2. Erase the current address text  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/2579ef82cc7c7a4537da2aebaa43100c0ff0bec0.png)
3. And type the symbol-phrase **`%temp%`**  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/8606e32e12bdbb51565fd5722ab0ac2fedcde169.png)  
This will take you to the “temporary files” folder.

c) Search for a “ **Pencil2D” folder**. Enter the Folder. Organize the files by “last modified”  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/3f5bc5e3f29b37e5ee1280493e26076dddd82bb2.png)  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/c13881e0834c8238b6150b0eeff05f22b2eb52ac.png)  
d) Look for a folder with the name of your saved file + the Y2XD extension and a random alphanumeric string. e.g _MyFileName\_Y2xD\_5yz4hsui_  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/da4a15a4141cb54d9c114c10d811756a16ebec6a.png)

e) Inside the Y2xD folder, verify if there’s a “ **main.xml** ” file. If there is, there’s a good chance your file is still healthy.  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/41515fa312eadf3fa021e38482c937e3dadac6a9.png)

f) After checking the main.xml file, browse to the _ **data folder** _ and verify if there is **any** file inside.

Drawings are saved as images with the filename having a number sequence. The name will correspond to the naming convention _ **layer.frame.png** _ e.g _003.001.png_ which would be Layer No.3 from and Frame No. 1.  
 ![image](https://discuss.pencil2d.org/uploads/default/original/1X/798ff88d468f13766fdacafe61192456d3a44332.png)  
Layers are counted bottom to top and the camera layer is always the first layer. If you used a bitmap layer to draw you’ll find PNG images, if you used a vector layer you’ll find .VEC files, which are read by Pencil2D only.

If you indeed find a **main.xml** and a **data** folder with the “lost” drawings, then you can select both elements (main.xml and data folder), right click and use the “send to zip” command to “compress” them together, then rename the `.ZIP` filetype part, as `.PCLX` and try to open it inside Pencil2D.

To learn how to zip files look at this guide:

> **[Use Windows 10 to zip (and unzip) chunky files](https://www.windowscentral.com/how-zip-and-unzip-files-windows-10)**
>
> This guide details the steps required to zip and unzip files on Windows 10 without using any third-party software.

---

<div class="post-metadata">

**Author:** ![JoseMoreno](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/josemoreno/32/7_2.png) [@JoseMoreno](https://discuss.pencil2d.org/u/JoseMoreno)\
**Post date:** [4 January 2020 22:07 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/3 "2020-01-04T22:07:55Z")

</div>

If you are using a **macOS** computer however, the steps are similar but I’ve been told by one of the devs that the temporary folder might be under **`/var/folders/`** and that you should use the search function there to find the “Pencil2D” folder from step **c)**.

---

<div class="post-metadata">

**Author:** ![spinel.page](https://discuss.pencil2d.org/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@spinel.page](https://discuss.pencil2d.org/u/spinel.page)\
**Post date:** [4 January 2020 23:07 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/4 "2020-01-04T23:07:12Z")

</div>

Oh my goodness. THANK YOU SO MUCH! I got my animation back exactly where I left off. You’re the best

---

<div class="post-metadata">

**Author:** ![JoseMoreno](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/josemoreno/32/7_2.png) [@JoseMoreno](https://discuss.pencil2d.org/u/JoseMoreno)\
**Post date:** [4 January 2020 23:09 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/5 "2020-01-04T23:09:22Z")

</div>

@spinel.page I’m glad! Make sure you make an extra copy of your file after working just in case. We do no recommend to always save to the same file so one can go back to a previous file in case these steps don’t work. Good luck with your animation!

---

<div class="post-metadata">

**Author:** ![system](https://discuss.pencil2d.org/uploads/default/original/2X/b/be472d9d9c3e92d2432da03a00b781a7f15bc51b.png) [@system](https://discuss.pencil2d.org/u/system)\
**Post date:** [15 February 2020 23:09 UTC](https://discuss.pencil2d.org/t/solved-please-help-could-not-open-file/4157/6 "2020-02-15T23:09:27Z")

</div>

Closed on 15 February 2020 23:09 UTC

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.
