Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

SQL Insert Row - Parse JSON inserting only NULL rows

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I have build a flow to be triggered when a new Excel file is uploaded to a SharePoint folder. The flow takes a table in the Excel file and then inserts each row in a SQL table.

 

As an outline, this is what the flow looks like:

 

kdp321_1-1626684897991.png

The "Parse JSON" operator looks like:

 

kdp321_2-1626684958795.png

And the "Insert row" for SQL, where each field in the SQL table is linked to the corresponding field in the JSON:

kdp321_3-1626685082740.png

 

The problem comes when I run the flow, the JSON outputs contain the data from the Excel table, but the are not input into the SQL connector. The output of the Parse JSON, which contains data as highlighted:

kdp321_5-1626685290022.png

However in the SQL connector the output does not make sense:

kdp321_6-1626685347606.png

And in the corresponding SQL table, the flow does write into the SQL table but the values remain NULL:

 

kdp321_7-1626685412142.png

 

 

 

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: SQL Insert Row - Parse JSON inserting only NULL rows

    SOLVED:

     

    What I did was place the Insert Row in SQL after the Parse JSON connector:

     

    kdp321_0-1626947053262.png

     

    And then to map the Parsed JSON to specific fields in my SQL table I used the expression - "items()?['column_names'] for each column in SQL. After the first run, the connection to my excel table was established and it's working perfectly

  • Community Power Platform Member Profile Picture
    on at
    Re: SQL Insert Row - Parse JSON inserting only NULL rows

    @ScottShearer - yes. So my idea is to have the user upload an excel file which contains a preconfigured table every week. So the excel files will have different names, but the table I want to extract has the same structure every week

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: SQL Insert Row - Parse JSON inserting only NULL rows

    @kdp321 

    Is the Excel file structure, table names, etc. the same for each file and just the name is different?

     

  • Community Power Platform Member Profile Picture
    on at
    Re: SQL Insert Row - Parse JSON inserting only NULL rows

    Thanks @ScottShearer 

     

    The flow is triggered when a user adds a new excel file, and then the table in that new file has to be uploaded to SQL. The problem that I have is, because I'm not linking my flow to a specific file, I'm not able to link those columns in excel table to the corresponding fields in my SQL table. When I look under my dynamic properties in the SQL connector, all I see are these:

     

    kdp321_0-1626759395649.png

     

    For me to be able to do that I would need to see the names of the corresponding fields from my Excel table, right?

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: SQL Insert Row - Parse JSON inserting only NULL rows

    @kdp321 

    Can you tell me why you are using the Parse JSON action rather than just referencing the Excel columns from Dynamic properties when inserting a row?

     

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics