Are you publishing to a PDF on a network drive?
If so that PDF may be open by someone else so it can't save to that file.
Rename or choose a new location or try to find out who it is and have them close it.
I have found in the past even having the file selected with a preview in Window Explorer will mark the file as open.
If it is not a PDF then maybe it is a similar thing if you are publishing to a network drive.
Someone else is accessing the file you are trying to save.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11