SAP Knowledge Base Article - Public

2809248 - "The uploaded file is formatted incorrectly. Please add the XML prolog to the beginning of the file..." error when configuring SAML Single Sign-On in SAP Analytics Cloud (SAC)

Symptom

  • The following error message occurs in SAP Analytics Cloud (SAC) in "Step 2: Upload Identity Provider metadata" for "SAML Single Sign-On (SSO)" after uploading the IdP metadata:
    "The uploaded file is formatted incorrectly. Please add the XML prolog to the beginning of the file and try uploading it again. For example, <?xml version ="1.0" encoding="UTF-8"?>."

Environment

  • SAP Analytics Cloud 2019.8.16
  • Custom Identity Provider (IdP)

Reproducing the Issue

  1. Follow "Enabling a Custom SAML Identity Provider".
    • Upload the IdP metadata in Step 2.
  2. Notice the error.

Cause

XML prolog is missing from the metadata xml file.

Resolution

  1. Edit the metadata xml.
  2. Add XML prolog in the first line. (e.g.:<?xml version ='1.0' encoding='UTF-8'?>)
  3. Save the file.
  4. Upload it to SAC again.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, EPM-ODS, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics , KBA , LOD-ANA , SAP Analytics Cloud (SAC) , LOD-ANA-BI , Business Intelligence Functionality, Analytic Models , Problem

Product

SAP Analytics Cloud 1.0