SAP Knowledge Base Article - Public

3839287 - Data import refresh fails with 'Data mapping ended unexpectedly' during XLSX import in SAP Analytics Cloud

Symptom

  • Import job refresh of an XLSX file fails.
  • Error message: "Data mapping ended unexpectedly."
  • In some runs, the job shows "Couldn't refresh the data."

Environment

SAP Analytics Cloud

Reproducing the Issue

  1. Open the import model and go to Data Management.
  2. Configure an import task to read an XLSX file via the Import Data connection.
  3. Run the refresh; the job fails with "Data mapping ended unexpectedly."

Cause

A local dimension attribute was incorrectly marked as Required in the model while the corresponding dimension properties/mappings did not provide values for it, leading to mandatory attribute not mapped and causing the mapping to fail.

Resolution

  1. Open the affected model in the modeler.
  2. Review all local dimensions used by the import and identify attributes marked as Required.
  3. Align settings so that only attributes that will be provided by the import are marked Required:
    a. If an attribute is not intended to be mandatory, clear the Required flag in the dimension/attribute settings.
    b. If the attribute must remain mandatory, ensure it is mapped to a valid source column in the import task.
  4. Save the model changes.
  5. Rerun the import job.

Keywords

SAP Analytics Cloud, import model, XLSX import, data mapping ended unexpectedly, update local dimensions with new members, mandatory attribute not mapped, required attribute, import job refresh failure, data acquisition mapping error , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem

Product

SAP Analytics Cloud 1.0