I have a script which worked fairly well in parts, but currently, when I attempt to open it, Revit crashes almost every time, and I have to revert to a previous version, make the changes I previously made, and everything works fine until I shut down my computer. I am running Revit 2018.2 with both Dynamo 1.3.2 and 2.0 installed. The only way I can get an error which I can read without shutting down Revit is by using Dynamo Player, and when I open the script, I get the message at the bottom. Once this occurs, Dynamo will read ANY other script and say its corrupt, forcing me to have to shut down Revit anyway. I keep all my scripts in the same folder, and I can open this same script without trouble using the Dynamo sandbox, but because the sandbox isn’t setup with Revit, its functionality is very limited.
The main focus of the script is supposed to read two excel files, compare data from some columns, then send that data to compare with a Revit file and check to see if there are elements present in the project which match the data, and if not, populate the file with the elements which match the Excel data.
Originally, I thought it was something with the way the script opened Excel files, but after deleting those nodes, freezing all the rest, and getting the same problem, now I’m not sure. It is not a small script, but I don’t believe size is the issue, because when it was running, it wouldn’t take longer than 1 minute to compile and run, and there were never any critical errors while running the script.