Bulk upgrade Revit and Delete older version

Hello,

I have a dynamo script that did a bulk Revit upgrade for the files inside a folder and deleted the older version of the files. I am trying to run it on Revit 2024, but it not saving the file. It does open it but it does not save the new version. I updated the nodes (Applications.OpenDocumentFile Document.SaveAs and Applications.CloseDocument)

Any idea what I need to fixed ?

Thank you

Do you need to save on close if you have just done a ‘Save As’ operation?
Have you tried saving as a different file name?
Could you pin the info from other nodes like Object.Identity and Application.OpenDocumentFile?

The SaveAS needs a FilePath, instead of a object or even a directory. You either need to decide if your using the same Location or decide if its a new one.

Also the close document node needs a document but you are giving it a “Result”, therefore this may need a change too.