DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
334 stars 187 forks source link

Files become corrupt for no known reason #2869

Closed ChrisBStudio closed 1 year ago

ChrisBStudio commented 1 year ago

Hi All,

I am having issues with files becoming corrupted for no reason in Dynamo. This has happened on 2 separate occasions where I have closed the file for the day and the next day it will not open.

I am using Dynamo Revit 2.13.1.5510 and the script was created in this version as well. I have had an issue before with old packages, but I cleared all the packages and downloaded only the latest versions to get a fresh start.

I use Dynamo a lot in our office and up until now it has been very reliable. Unfortunately if this becomes a common problem people will loose their trust in its reliability. If some could help with some information on why this might be happening, it would be greatly appreciated.

Thankyou

Chris

Dynamo version

Dynamo Revit 2.13.1.5510

Revit version

Revit 2023

Operating system

Windows 10

What did you do?

Closed and reopened a script and now has an unknown error

What did you expect to see?

The script to open as normal

What did you see instead?

Script does not open and has unknown error

QilongTang commented 1 year ago

hi @ChrisBStudio When you mention unknown error, what do you see when you try to open the dyn?

mjkkirschner commented 1 year ago

Can you also provide one of the damaged scripts?

ChrisBStudio commented 1 year ago

This is the error message

image

And this is the script. Just change the extension to .dyn

Step 2_New Views By Level_R23.txt

ChrisBStudio commented 1 year ago

Sorry hit wrong button.

Thanks for your help

mjkkirschner commented 1 year ago

Hi @ChrisBStudio the issue is that the file contains "NodeLibraryDependencies": null, I don't know how this property became null but we can make deserialization more robust, in any case to fix this file - just replace it with the following in a text editor:

"NodeLibraryDependencies": [],

mjkkirschner commented 1 year ago

should be fixed after this: https://github.com/DynamoDS/Dynamo/pull/13423

ChrisBStudio commented 1 year ago

You are a champion! Thankyou for your help on this, it is greatly appreciated