Salesforce produces incorrect metadata with invalid Entity ID

Problem: Sometimes Salesforce produces metadata incorrectly with the EntityID https://saml.salesforce.com instead of https://customdomain.my.salesforce.com.

Solution: Ivanti Access displays a warning message as follows:

You might have uploaded incorrect metadata. The EntityID in the uploaded metadata is saml.salesforce.com. However, it must be customdomain.my.salesforce.com.

When you upload the Ivanti Access metadata to Salesforce, download the Salesforce metadata again for the Ivanti Access IDP and upload it again. Alternatively, edit the Salesforce metadata file and provide the correct Entity ID. Upload the modified metadata file again to Ivanti Access.