Overwrite a file copied to a SharePoint library

I wrote a dispatch to copy a docx file into a SharePoint online library. It works great the first time. If I run it again, with the same file, I get an error of Access Denied and some other text, basically stopping me from overwriting the file in SharePoint. I have SP set up right; I tried both turning on versions and turning them off. It appears it's PDM that won't let it happen. Is there a way around this?

Thanks

SolidworksGeneral