Forum Discussion
Google Analytics GA4 Connector
- 1 year ago
Hi hmilam , Thank you for reaching out to the Microsoft Community Forum.
The problem lies not in your pipeline setup but in a fundamental limitation of how the GA connector handles parameter injection during runtime. There is no reliable way to work around this within the Dataflow + GA connector path today. Your best bet is either to stage the GA data separately using a non-parameterized dataflow or switch to direct API ingestion into your Lakehouse or Warehouse. Both options are stable under CI/CD, work well in production, and avoid the brittle connector behaviour you're currently facing.
If this helped solve the issue, please consider marking it “Accept as Solution” so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.
Hi hmilam ,
I’ve seen this issue pop up with the Google Analytics GA4 connector, especially when using Dataflow Gen2 and Fabric pipelines. The “unexpected character in the JSON input” (with DataFormat.Error and Value = \31) is something I’ve hit before too, and it’s def a pain.
From what you described, it looks like the root problem is with the way credentials get handled in the connector, and it’s actually a known bug (as you found). Sometimes the pipeline tries to pass parameters in a way the connector doesn’t expect, so it fails on the JSON parse step.
The workaround that’s usually shared (deleting and recreating the connection, using “Skip Test Connection”) hasn’t really worked for everyone. The DMTS_InvalidDatasourceTypeForSkipTestConnectionError is a sign that the connector isn’t letting you skip the test for that specific datasource type – it’s a bit annoying because not all connectors support the skip test option, even though the UI allows you to try.
Right now, unfortunately, there isn’t a perfect fix for this. What sometimes helps:
- Double check if all the parameters being passed at runtime are exactly in the expected format (sometimes a sneaky empty value or special char causes the parse error).
- If possible, try to create the connection manually (not through CI/CD) and then reference that connection in your pipeline – it’s not ideal, but can sometimes get you unstuck.
- Keep an eye on the official updates for the connector. Microsoft is aware of this and working on a patch, but it’s not out yet.
If this is blocking a production workflow, you might want to log a support ticket directly with Microsoft just to get more visibility on your case.
Hope that helps at least a bit. Sorry I can’t give a magic fix here – just wanted to let you know you’re not the only one seeing this.
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.