Are you trying to publish to Tableau Public or Tableau Server?
If Tableau Public, then try this. Click on your name at the bottom, then choose Sign Out.
If full Tableau Desktop, try logging out of the server by going to Server, then to the server you're logged into, then choose Sign Out.
Once you've done that, try to publish it again.
If this works, be sure to mark this answer as correct. Otherwise, let us know if the issues persist so we can keep digging into it. Thanks!
Trying to publish in tableau server.
Did you try to sign out then sign back in and try again?
I moved this post to the Forums.
Have you reviewed this KB Article for potential solutions?