I recently encountered the following message trying to copy a ISO file located on a datastore :
Expected put message. Got: ERROR
Unfortunately, this message isn’t telling us much. However by deduction, this error is caused by some lock on the file because already in use in some way.
Make sure that no virtual machine have the ISO mounted. If there is any, just unmount the ISO from all VMs optical drive device and start the copy again.