web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Decode JSON with null ...
Power Automate
Unanswered

Decode JSON with null vaules from OneDrive for Business and import data to CDS

(0) ShareShare
ReportReport
Posted on by 6

Hello community, I have a problem with parsing JSON file, which is stored on OneDrive for Business. I have created a flow with Compose base64ToString(triggerBody()? function to decode json file.

 

However the .json file contains some null values and Compose gives me back an error message that values must be string not null. How can I solve this problem? All .json files, which will send to OneDrive from OCR app will contain some null values.

 

Thanks a lot for your advice.

Categories:
I have the same question (0)
  • Sumen Subramaniam Profile Picture
    26 on at

    Hi,

    Have you tried Parse Json to decode it?

    Sumen_0-1603813418605.png

     

  • Pstork1 Profile Picture
    69,543 Most Valuable Professional on at

    When you use the Parse JSON action to create a schema it automatically sets the type for String fields to string.  But if the field can be null then you need to make two changes to the default schema.  First, for any property that can be null you need to change the type from 

    "type": "string"

    to 

    "type": ["string", "null"]

     You should also check if that property is listed in the "Required" section.  If it is then remove it.

  • MichalB_106 Profile Picture
    6 on at

    Hello, thanks a lot for your answers. Finally the problem was in OneDrive, not in Flow.

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard