SAP Knowledge Base Article - Public

3598895 - Error: "502 Bad Gateway: Registered endpoint failed to handle the request" when trying to create a model on SQL Database connection to Databricks in SAC

Symptom

  • Failed to create model on SQL Database connection to Databricks in SAP Analytics Cloud (SAC) due to error:

    "502 Bad Gateway: Registered endpoint failed to handle the request."

  • This error usually happens while importing data more than 30000 rows.

Environment

  • SAP Analytics Cloud (Enterprise) 2025.1.8
  • Databricks DB

Reproducing the Issue

  1. Logon to SAC tenant and create a new model on SQL Database connection.
  2. Select the location and choose the connection to Databricks.
  3. Create model via Freehand query like following:
    SELECT * FROM DATASOURCE LIMIT 30000
  4. Model creation failed with error:
    "502 Bad Gateway: Registered endpoint failed to handle the request."

Cause

This data import is blocked by the datasource.

Resolution

Add the following parameter to the JDBC connection string: "EnableQueryResultDownload=0"

See Also

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

Keywords

SAP Cloud, sc4p, c4p, cforp, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Sac, Acquisition, Model, Connect, Story, Tenant, Import, Failed, Using, Working , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem

Product

SAP Analytics Cloud 1.0