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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Error o...
Power Automate
Answered

Power Automate Error on SQL Stored Procedure JSON Parse

(0) ShareShare
ReportReport
Posted on by 97

Hi Everyone

 

In trying to create process that moves the results of a SQL Stored Procedure (On premise) into a SharePoint List, I'm running into a problem during the 'Apply to Each' process.  I see here that all other steps have passed but get that Table1 error of Type 'Null'.  Is there something I'm missing here after parsing the JSON Object?

 

 PowerAutomateErr.PNG

Categories:
I have the same question (0)
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @IncursioML1 ,

     

    Have a look at this post when trying to parse JSON.

     

    Thanks

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

     

  • IncursioML1 Profile Picture
    97 on at

    Thanks, I definitely knew it had to do with the SQL stored procedure coming up with some extra syntax to put into the JSON Schema.  Below is a screenshot of the flow for any others pulling their hair out.

    It really isn't intuitive as it should be on the flow there, but it is what it is.

    I am curious though why on the first compose statement, couldn't I theoretically bypass this by going directly into the table to get the array instead of doing that additional substring logic?

    i.e. The 'ResultSet' expression is this 

     

    outputs('Execute_stored_procedure_(V2)')?['body/resultsets']

     

    but couldn't I just use this instead of all that parsing logic?

     

    outputs['Execute_stored_procedure_(V2)')?['body/resultsets/Table1']

     

     

    In any case, thanks very much!

    composestoredproc.PNG

  • LeightonG Profile Picture
    25 on at

    Thank you IncursioML1!
    Your method works a treat!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard