Symptom
Error below is occurring in Power BI when attempting to connect to SF OData API using an OData connector:
"Metadata Errors: UnexpectedXmlAttribute: 'CollectionKind' not expected in context` at multiple positions in the feed.".
Important note: SAP does not own or control the Power BI OData connector implementation. If you need assistance with the Power BI configuration or the recommended workaround presented in the Resolution section of this KBA, please contact Microsoft Support.
Environment
- SAP SuccessFactors HCM Suite
- OData API
Cause
This error occurs because Power BI sends a $metadata request to the SuccessFactors API, and the returned XML payload contains unexpected attributes named "CollectionKind". These attributes are deprecated in the OData protocol, which causes Power BI to fail when parsing the metadata.
This issue only occurs when using the OData connector in Power BI. The connector is unable to correctly interpret the payload returned by the $metadata request.
Resolution
The deprecated CollectionKind attribute cannot be removed or suppressed on the SuccessFactors server side, as doing so would affect all customers and could lead to unpredictable impacts.
On the Power BI side, this limitation prevents the OData connector from retrieving the full dataset from SuccessFactors.
Microsoft has provided the following alternatives:
-
Specify an entity or table in the OData connection string.
This prevents Power BI from issuing a generic $metadata request and instead requests metadata only for the specified entity, avoiding the problematic payload. -
Use the Web connector instead of the OData connector.
Microsoft has confirmed that the Web connector has no known functional or performance limitations in this scenario and is the recommended approach until the issue is resolved.
Keywords
web connector, power bi, metadata, unexpected xml attribute, microsoft, CollectionKind , KBA , LOD-SF-INT-API , API & Adhoc API Framework , Problem
SAP Knowledge Base Article - Public