Help with Action - can't check out or in...

I'm trying to create a Dispatch Action that will delete a specific file and replace it with a different file, but have the replacing file have the same name as the deleted one.  I ran this action originally without the Checkin and Checkout lines, but it didn't work.

After some experimentation, I found that if I checked the file out manually, ran the action, then checked the file in manually, it worked.  Therefore I decided to try to have the check out and check in occur within the action, but it gives me an error, saying "the method completed successfully, but returned a value of 'false'.  I'm paraphrasing, but that's the gist of it.

Does anyone know what this error means and how to fix it, or perhaps there's just a whole lot better way to create an action that will copy file A to file B, over-writing the contents, but retaining the file name.

Thx

SolidworksSolidworks Pdm enterprise Pdm