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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Junaid11
Helper V
Helper V

JSON connection Error

Hello,

I am connecting the the JSON with JSON connector but getting the error Key should not be null or empty!. I have attached the error picture as well as file that is causing the problem. It would be quite helpful if you can help.

Thank you

sdafff.PNG

https://drive.google.com/file/d/19kunblfwulGDe7GeicZiZzFR6zIgBh8o/view?usp=sharing

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Junaid11 ,

 

As far as I am concerned,property has to be defined as nillable in the schema or else it will throw an exception.

If it is an array, it must be an array of strings, where each string is the name of one of the basic types, and each element is unique. In this case, the JSON snippet is valid if it matches any of the given types.

https://json-schema.org/understanding-json-schema/reference/type.html 

Please check the [] and null property in your json file.

https://stackoverflow.com/questions/17487205/how-to-check-if-a-json-key-exists 


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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.