Symptom
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
When establishing OData connection to DM system with OAuth authentication, user get the errors as in screenshot
- Connection to service failed : OData services
The following error message appears inside the Network Trace (HAR file):
- An error occurred while connecting to the data source: Error read metadata: An exception of type \\ u0027WFCException \\ u0027 occurred.
Your Service URL uses OData v1 as the following example:
- https://<...>/dmci/v1/<..>
When accessing the OData URL directly in browser, you face the error message below:
-
- Invalid JWT
Environment
- SAP Analytics Cloud
- Digital Manufacturing
Reproducing the Issue
- Configure your OData Service connection based on Digital Manufacturing Service URL (https://<...>/dmci/v1/<..>)
- Click "Save"
- Receive error message "Connection to service failed : OData services"
Cause
- As per Help Page APIs | SAP Help Portal from Digital Manufacturing product, OData v1 is Deprecated.
Resolution
According with the documentation above, please try to create the SAC OData connection using not deprecated URL patterns (v2 and v4)
By calling the SAP Digital Manufacturing for insights public APIs, you can perform the following actions:
-
Fetch metadata for OData Services
Example pattern: https://api.eu20.dmc.cloud.sap/dmci/v2/extractor/$metadata
-
Fetch metadata for OData Services
Example pattern: https://api.eu20.dmc.cloud.sap/dmci/v4/extractor/$metadata
Also check SAP Note 0003463893 - Additional information on Digital Manufacturing for insights APIs (New) for additional information on how to use Digital Manufacturing for insights OData V2 and OData V4 APIs to access the data stored in Manufacturing Data Objects (MDOs)
See Also
For more information on how to use the SAP Digital Manufacturing for insights OData APIs to access the data stored in Manufacturing Data Objects (MDOs), see 3324908
Keywords
SAC, Digital Manufacturing, OData, v1, v2, v4, Invalid JWT, Connection to service failed , KBA , LOD-ANA-AQU-ODATA , Acquiring Data into SAC using an ODATA connection , MFG-DM-MI , Manufacturing Insights , Problem