Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
dossy
Regular Visitor

Need help diagnosing GA4 data source "We found an unexpected character in the JSON input" error

Trying to use the Google Analytics data source, and getting the following error:

 

"We found an unexpected character in the JSON input."

 

dossy_0-1724428532795.png

 

It was working a few minutes ago, but I'm now getting this error.

 

How do I turn request tracing/diagnostic logging on for the request that PBI is making that is receiving a response that it cannot unserialize?  I suspect the GA4 data API is returning a plain text error message and not a JSON response, but unless I can see what the response is, I cannot troubleshoot the issue.

 

I've gone into "Options & Settings > Diagnostic Options" and checked "Enable tracing" and enabled "Query Diagnostics" but I cannot find a file in my "C:\Users\<username>\AppData\Local\Microsoft\Power BI Desktop\Traces" folder that contains anything that looks like the request or response from the GA4 API.

 

Anyone know how to turn this logging on and/or where the log file is located?

3 REPLIES 3
CoderZen08
Helper V
Helper V

Hi @dossy as a workaround, maybe you can try to test your connection with a 3rd party tool. I've tried windsor.ai, supemetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the GA4 connector in the data sources list:

 

GA4-1.png

 

After that, just grant access to your GA4 account using your credentials, then on preview and destination page you will see a preview of your GA4 fields:

 

GA4-2.png

 

There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

 

SELECT_DESTINATION_NEW.png

Anonymous
Not applicable

Hi @dossy 

 

To enable detailed diagnostic logging and find log files in Power BI Desktop, you can try the following steps:

 

Enable Tracing and Diagnostics:
Go to File > Options and settings > Options. Under Global, select Diagnostics. Check Enable tracing and Collect diagnostic information.

 

vnuocmsft_0-1724637871852.png

Collect Diagnostic Information:
After enabling tracing, click on Collect diagnostic information. A dialog will appear to save the diagnostic details. By default, these details are saved in your Documents folder, but you can choose a different location if needed.

 

Locate log files:
Diagnostic information is saved in a zipped folder in a specified location.

 

Power BI Desktop diagnostics collection - Power BI | Microsoft Learn

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply, but can you tell me exactly where in the collected diagnostic details the failing request's response body is provided?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors