Forum Discussion
Error ingesting json files in warehouse table
- 8 months ago
A final update for now at least: Microsoft has confirmed this is a bug, they hope to fix in the 1st quarter of 2026.
In the mean time they suggest to ingest it as a string and than use a notebook to parse the json array back into its original columns, or change the source, which for us wasn't an option.
Since it took ages for them to got to this stage I had already figured out I could use a notebook to read the json files in the lakehouse, read them into a dataframe, and when all files were read, write that dataframe to a table, in my case with an option "overwrite" since this is just a raw staging table.Final kicker: They want me to give permission to archive the case (no doubt because of their KPI's), but the bug is not registered on MS's known issue list. I want them to document it there, but they for some reason don't want to do that, they want to keep it internal, so now my Dutch stubberness is playing up .
The python code was quite simple in the end, even though we had multiple nested arrays. I used co-pilot to do the heavy lifting for me since i had to alias about 30 columns since i had to put the data in an existing table and the names needed to match
These are the libraries I needed:
Folder path to read json files
Exploding the main body of the json (just part of it, as example)
Thats it in a nutshell
Good afternoon v-kpoloju-msft It has not been resolved yet. I am still working through the notebook. The suppliers API is not helping me due to the complexity of nested json libraries within libraries 🤣 .. I do get a little bit further everyday though.
I did get feedback from Microsoft though, which make me feel that this may be a bug. The response last Monday was :
"I’ve reproduced the issue on my end and confirmed that it appears to be related to the Lakehouse. We’ve already opened a collaboration ticket with the relevant team to investigate further.
We truly appreciate your patience and understanding while we work through this. Please allow us a little time, and we’ll keep you updated as soon as we have more information."
For now we are handling this as a two pronged approach
1: Trying to get the notebook to work, once I have a working notebook I will post sample code here
2: Waiting (and chasing MS) to see if this is a bug or caused by an update.