Symptom
When attempting to consume a Data Export Odata Service that is coming from a SAC tenant, you get the error:
"Response from external server has status code of 400
Key column(s) not selected in input [1402]"
Environment
- SAP Analytics Cloud 2025.1
Reproducing the Issue
- Create a model
- Obtain an export service URL
e.g.
https://<tenant URL>/api/v1/dataexport/providers/sac/aBCdeFGh12345HG - Attempt to consume that Export URL and get the error
Cause
This error occurs because of a limitation that all Key columns must be included in a $select statement. It does not need to be all columns, just the key columns.
Resolution
In order to verify which columns are key columns you may check the /$metadata endpoint
The reason all key columns must be selected is due to an OData stadnard which enforces referential integrity for the data when its read via the API
Additional Query Options for Data Export
Link
See Also
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening a case for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using SAP for Me, Google or Bing:
- https://me.sap.com/servicessupport/search#?q=SAP%20Analytics%20Cloud%20OR%20SAC&tab=All
- https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
Keywords
Import, export, manage, management, dataexport , KBA , LOD-ANA-DES , Story Design & Visualizations , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem