Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
AlexFielder
in reply to: AlexFielder

PS. I would recommend that if you insist on continuing to delete unresolved files, that you wrap the whole method in a transaction, thereby giving the user a chance to undo the whole thing, otherwise (if there are a lot) it'll be a painful process to sit and click "Undo" repeatedly:

 

Dim trans As Transaction = ThisApplication.TransactionManager.StartTransaction(oAssemblyDocument, "Clean up unresolved files")

Try
    'Do Stuff 
    trans.Commit()
Catch 'any errors
    trans.Abort()
End Try

:slightly_smiling_face: