# How to Open/Fix Corrupted dyn. file?

**URL:** <https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134>\
**Category:** Revit\
**Created:** [May 30, 2017, 4:01pm UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134 "2017-05-30T16:01:07Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [July 25, 2022, 4:54pm UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134/24 "2022-07-25T16:54:10Z")

</div>

Hello @Ahmed_Ramy, the JSON appears to be valid so it would need debugging. Are you comfortable sending on your Dynamo graph and the file you were running it on? Can be private via Direct Message 🙂

---

<div class="post-metadata">

**Author:** ![Ahmed\_Ramy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ahmed\_Ramy](https://forum.dynamobim.com/u/Ahmed_Ramy)\
**Post date:** [July 26, 2022, 6:18am UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134/25 "2022-07-26T06:18:06Z")

</div>

@solamour Hi Sol ! Thanks for answering! Here you’ll find the graph.  
[POLYLINES TO C3D PIPES.dyn](https://forum.dynamobim.com/uploads/short-url/8Y2bVojvZKDhN3CGBp4b7YYmo9Z.dyn) (131.5 KB)

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [July 27, 2022, 8:10pm UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134/26 "2022-07-27T20:10:44Z")

</div>

@Ahmed_Ramy - @jacob.small took a look (He has Civil installed on his machine and I do not 😃 ) and figured out the following way to get it to open. All credit goes to him 🦸 You’ll have to validate if the graph is indeed correct beyond that:

> **Steps:**
> 
> 1. Open your .DYN file in a text editor such as Notepad
> 2. Use “CTRL + F” to search for the _NodeLibraryDependencies_ key inside the JSON file
> 3. This value is _null_ which is causing your graph to fail. Change it to an empty list by replacing **Null** with **[]**
> 4. Save your .DYN file and reopen in Civil 3D

**Before fix:**  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/1566482564a7798f49a79a9f79e82458e2d739b5.png)

**After fix:**  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/8/a8211b68b7f2dc228bcc78ae896ac50781cee9fb.png)

Or you can use this file that @jacob.small fixed for you 🙂 [POLYLINES TO C3D PIPES - JWS REPAIR.dyn](https://forum.dynamobim.com/uploads/short-url/hniit40vxgIhOsg3hYCLjklkYym.dyn) (130.5 KB)

Can you please let us know as best you can the answers to the following so we can track down why it broke? If any of this is sensitive you can always DM either of us:

1. What is the history of this file - Where did you start it?
2. What version of Civil 3D are you using for it, and what version of Dynamo?
3. Has it moved between Computers?
4. Has it lived on the Cloud?

---

<div class="post-metadata">

**Author:** ![Ahmed\_Ramy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ahmed\_Ramy](https://forum.dynamobim.com/u/Ahmed_Ramy)\
**Post date:** [July 28, 2022, 9:41am UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134/27 "2022-07-28T09:41:51Z")

</div>

Hi @solamour ! Thanks for helping out ! Totally appreciate it. Absolutely, no problem.  
The visual script was running on C3D 2023 and dynamo 2.13.1.3887. The problem I believe was due to a corrupt code block I didn’t debug as I’ve saved the script with this block giving me warnings .

Can you explain to me what _NodeLibraryDependencies_ means in case the issue got repeated again.

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [July 28, 2022, 2:16pm UTC](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134/28 "2022-07-28T14:16:44Z")

</div>

Hi @Ahmed_Ramy - The **NodeLibraryDependencies** key is around any custom package nodes used inside your graph 🙂 In the case below, my test graph you can see this via the _Name_, showing that my graph is using nodes from the _Ampersand_, _Clockwork for Dynamo 2.x_, _Rhythm_ and _VASA_ packages.

This is also the part of the DYN file that the Workspace References extension checks to tell you if you are missing packages 😃

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/e/dee88959c4f78cf4de5c4e5e7bea5a60edad00a2.png)

[Previous page](https://forum.dynamobim.com/t/how-to-open-fix-corrupted-dyn-file/12134.md?page=1)
