@vandoren.david
Ok, let's circle back to your original post.
You stated the following.
"Im unable to update visualization files from Vault (update locally). I get a "The file abc.idw.dwf cannot be deleted due to restrictions."
You will only get this error if the DWF file is checked out or the user doesn't have permission to delete the DWF file.
- Clicking Update View deletes the tip version of the DWF file and creates a new one. That is why you are getting a delete restriction error.
Since you also state that the DWF files are assigned to the Record category but it doesn't have any permissions set in the category, it shouldn't be a permissions issue.
You stated:
"The solution is to open the file in inventor, check it out, save, check-in and create it then, this works 100% of the time, but updating from Vault Pro 2021 works 30-ish% of the time."
- Checking out the IDW and checking it in to create a new version of the IDW and creating a DWF, creates a new version of the DWF. It will not delete the previous version of the DWF. However, if the DWF file is checked out, it cannot create a new version of the DWF and the checking should fail.
My guess here is that you are running up against a race condition. If a user had the file checked out to mark it up and checked it back in before you checked in the new IDW, you won't see the error.
What I recommend not doing
Don't allow users to check out DWF files. If they need to mark them up, get the DWF file, mark it up, save it as a different name, check it back into Vault with the different name and attach it to the original IDW.
This just might remove the issue altogether.
This DWF markup process that you are using runs the risk of losing the marked-up DWF file.
- User checks in an IDW and creates a DWF at the same time.
- IDW and DWF are at version 1.
- A user checks out the DWF, marks it up.
This is where a different user clicking Update View on the IDW will get the delete restriction error.
- The user checks in the marked-up DWF file making version 2.
- A different user decides to click Update View on Version 1 of the IDW.
- Vault will delete versions 1 & 2 of the DWF file, the marked-up version is deleted, and a new version 1 of the DWF file is created.