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

Notifications

Announcements

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
    68,717 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard