post deleted.
When you say:
"We have changed the the credentials to the connection is why we are overwriting."
Have you tried changing the item owner to match the credentials? You can't overwrite layers you don't own. At least that's been my experience, as admin in portal or online.