Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am using Microsoft Fabric Data pipelines to export JSON files into a dataflow using an API connection.
The output of the "Copy Data Activity" exports the data as a JSON file to a Bronze Lakehouse. This "Copy Data Activity" includes the Pagination rules shown in the attached image below.
The Bronze Lakehouse is the datasource for the Dataflow. The pipeline runs successfully up until I attempt to transform in Power Query within the dataflow.
The error from the dataflow is as follows
The transform file source shows the JSON export to be split like this, which I imagine is what is causing the error.
Power query isn't formatting the JSON output correctly as the JSON files aren't separated by each row. This would explain the character error shown above.
Could you please help me figure out how to correctly format the JSON outputs in my power bi dataflow and/or the fabric data pipeline?
Thank you!
Hey @v-shex-msft Fix errors in PBI dataflow from exported JSON files any ideas for this one? Still struggling to remove the error. If you have any advice it would be hugely appreciated. I have tried to explain as much as possible above, but please let me know if there is any further information you require and I will do my best to fill in the gaps.
Thank you in advance for your help!
L
Hello,
Thank you for getting back to me, and apologies for my delay in responding.
I am working on extracting social media marketing data for a software company and their competitor companies, using the Brandwatch platform. I am using an consumer research API (Getting Started (brandwatch.com)) in fabric data pipelines following a very similar logic to that within this article Martin's Blog - Working with OAuth 2.0 APIs in Azure Data Factory: Refreshing tokens (martinschoombe...
The below screencap shows the pipeline and a series of web connection/set variable steps using the guidance from the brandwatch.com link, that eventually results in JSON file outputs, which I save into a Bronze Lakehouse, and then into a power bi dataflow for consumption.
From step 2 I then follow the guidance set out in the Brandwatch.com documentation to get the specific queries that I want from the project. This again is via relative URL links and the oauth variable set in step 1, and the project_id gained from step 2.
At the end of the JSON output, there is a nextCursor. The pagination rules in my pipeline use this nextCursor from the previous JSON file from the output of the copy data steps to start off the next lot of pagination, and the EndCondition is when the $nextCursor of the JSON output is blank. Please see the screencap below for an example of this
I can see from the JSON output that the JSON file doesn't end how PBI would expect it to to be able to correctly format the JSON. I imagine this might be where the error is coming from, but I am not sure.
Please could you help me understand what I need to do either in the data pipeline or in the dataflow to correctly format the JSON output? Thank you in advance for your help, and I hope this is enough detail to help you understand my problem.
Thanks again!
L
Hi @lbg-sage ,
Can you please share some more detail information about this issue? They should help us clarify your scenario and test to troubleshoot.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hello
Have you had a chance to look at the additional information I have provided above?
Thanks,
L
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.