If you receive this error when publishing a module in Terraform Cloud Private Module Registry (TFC PMR):
Module is usable, but some versions have errors.
Error: 1 error occurred: * pq: Could not complete operation in a failed transaction.
The issue is usually related to text files (README.md, etc) encoding is NOT UTF-8 or ASCII format.
- Confirm the text files are UTF-8 or ASCII
- Change the file/s (README.md, etc.) encoding to UTF-8 or ASCII.
- Reflect the update in a new tag version within the VCS so the workspace can see the updated configuration version changes. If not it will still error.
- The module should successfully publish.