SAP Knowledge Base Article - Public

3628824 - Error: Data Import Fails Due to Exceeding Character Limit in SAC Model Using OData Connection from Datasphere

Symptom

  •  When trying to create a dataset using an OData Connection from Datasphere, the error is displayed: 
  • "Query results exceeded the cell character limit of 4998 in column XXX. Please edit your query to acquire fewer characters."
  • From the error message in the HAR file: "LIMIT_EXCEEDED_CELL_LENGTH - errorDefinition": "{\"errorCode\":274,\"errorMessage\":\"SAP DBTech JDBC: [274]: inserted value too large for column: Failed in \\\"XXX\\\" 

Environment

SAP Analytics Cloud 2025.8.5

Reproducing the Issue

    1. Log into SAC;
    2. Go to Dataset > Try to create one using the OData Connection from Datasphere
    3. Select the field (Dimension) 'XXX' as Selected Data and try to create the dataset
      1. It throws the error above

    Cause

    • The error occurs because the size defined for the XXX column does not accommodate the length of all incoming data points. 
    • Columns must be defined with appropriate lengths to ensure all data can be imported without issues. In this instance, the column length defined on Datasphere needs to be adjusted.

    Resolution

    1. Review and Adjust Column Size: Increase the character limit for the XXX column in your Datasphere source system. This change should allow larger string values to be imported without error.

    2. Data Validation: Conduct a quick check on the data format and ensure all entries conform to expected types and lengths. For values that might be exceptionally long, consider truncation or processing them separately as needed.

    See Also

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

    Keywords

    SAC, error, Datasphere, model, dataset, limit exceeded, cell, length, Analytics Cloud, limit, character, column, query, data , KBA , LOD-ANA-AQU-ODATA , Acquiring Data into SAC using an ODATA connection , Problem

    Product

    SAP Analytics Cloud 1.0