Troubleshooting¶
Top issues¶
"The data source cannot be used" / dynamic-source error¶
The Web.Contents base URL is being built dynamically. Re-check any custom query that wraps OpenEHR.Aql / OpenEHR.StoredQuery — pass the CDR base URL as a parameter, don't concatenate strings that include a protocol.
Gateway refresh silently fails¶
Most common cause: TestConnection is missing or malformed. The connector ships with it correctly implemented; if you've forked, verify the OpenEHR = [ TestConnection = ..., ...] record.
Column names like #0, #1¶
AQL projections without AS get positional names. Always alias:
SELECT c/uid/value AS Uid, c/archetype_details/template_id/value AS Template
FROM EHR e CONTAINS COMPOSITION c
Stale credentials after token rotation¶
The connector sets ExcludedFromCacheKey = {"Authorization"} on every Web.Contents call. If you still see cached-auth behavior, confirm you're running the build from the official release.
"Feature is disabled" when loading .pqx¶
Either:
- The self-signed cert was not installed (see install-self-signed.md), OR
- The "Data Extensions" setting is restrictive. File → Options → Security → Data Extensions.
Reading mashup-trace.json¶
Power BI Desktop writes traces to:
Filter by Source = OpenEHR. Look for:
Web.Requestentries — should show the canonical/query/aqlendpoint with your base URL's host.OpenEHR.*Errorentries — theDetailsfield carries the HTTP status and (truncated) response body.
Getting help¶
- Bug or regression → Bug report.
- CDR compatibility report → CDR compatibility.
- Question → GitHub Discussions.
- AQL syntax help → openEHR Discourse.