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 / Create File doesn't co...
Power Automate
Answered

Create File doesn't contain outputs as shown in successful test

(0) ShareShare
ReportReport
Posted on by 191

i've created a flow to read an excel table and filter the rows by two columns. then i've done a select statement to get specific data mappings in the form i want (maybe wrong? maybe i should build an array? - not sure?)

 

when i run the flow its looks like its working correctly, it gives me all the data  mapps the column headers, even shows the file content is correct. but when i open the file i get repeats of the select operation without the data being mapped in. just the text. see all images of flow.

 

DexPoint_0-1688644827785.png

 

DexPoint_1-1688644851600.png

Here the output looks good / accurate per the data from the file

DexPoint_2-1688644883856.png

Here the file Content also looks good 

 

DexPoint_3-1688644904283.png

 

here is what i actually get, which is not any of the data.

 

the data listed here is actually the 2nd row in my list, i'm not sure why its printing the second row data vs the row that i have filtered.

DexPoint_4-1688644985807.png

 

 

Here is the details of the loop - in this scenario i only have 1 record but it could be more which is why i have the loop.

the concat formula is all about formatting, in excel its a text field that is coming across as '41052' (or very close)

 

DexPoint_0-1688645297644.png

 

 

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    I think the problem is because you are doing the data select and creating the CSV table etc inside a loop.  Why are you using the Apply to each and what are you looping on?  To do what you want it should just be a filter array followed by a parse JSON, then a data Select on the output of the Parse JSON, then create the CSV and build the file.  I think you are doing the loop because you are missing the parse JSON.

  • DexPoint Profile Picture
    191 on at

    my attempt was to read the rows of data.

    find the rows that have data in column 25 and no data in column 26 - this is the filter array 

    @And(not(empty(item()?['Column25'])), empty(item()?['Column26']))

     

    then i want to pull specific data columns from the rows for the records that match the filter criterial (i believe it forced me to add the "Apply to each" logic when i added the next action. 

    once i have the data with the mappints (The Select statement) i want it to write them out. / create a CSV file.

    This was the intent of the flow.

     

    I'll give an attempt at the Parse JSON and then select statement etc.

     

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

    The problem is that after you do the filter array the output is an array of rows, but you don't have access to the individual columns as dynamic content. That's why you need the Parse JSON. Then you can do a data select on the output of that, which is the filtered array, and create the CSV. I think you are getting the apply to each because you are accessing the fields from the original list rows instead of the filtered rows.

  • DexPoint Profile Picture
    191 on at

    I'll rebuild using parse JSON then continue the rest of the flow per your steps., i've never used this before and i just tried to enter the scheme and i think its failing. so i'll do some research on this. not sure exactly what to enter in but i'll bet there are a lot of questions on it.

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

    For Parse JSON just take the output of the filter array from a previous run and paste it into the Generate sample Schema button on the parse JSON.  That will create the schema for you.

  • DexPoint Profile Picture
    191 on at

    Thats what i did, but its failing. i tried changing the "Object" to "Array" and then i get different errors. So now i'm trying to figure out why.

        "message": "Invalid type. Expected Object but got Array.",
        "lineNumber": 0,
        "linePosition": 0,
        "path": "",
        "schemaId": "#",
        "errorType": "type",
        "childErrors": []
     
    DexPoint_0-1688655868307.png

     

  • DexPoint Profile Picture
    191 on at

    Ok, well i've reworked the flow. but for whatever reason i still get the same output.  its much easier than a loop but it isn't writing the data that it shows in the output. 

     

    I've accepted your solution but output is wrong 😞

     

    New Flow

    DexPoint_1-1688656656230.png

     

    Create CSV Table

     

    DexPoint_2-1688656684583.png

     

    Create File

    DexPoint_3-1688656714685.png

     

     

    Output file

    DexPoint_0-1688656614790.png

     

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

    Are you sure you are using the output of the filter array to generate the schema for the Parse JSON?  That should be an array, not an object.

  • DexPoint Profile Picture
    191 on at

    Yes. i worked through that issue. i failed to copy the complete selection.

    The flow completely works now, but i still get 3 records in the CSV file that aren't the data that was parsed / shown in the outputs of each step.

  • Verified answer
    Pstork1 Profile Picture
    69,026 Most Valuable Professional on at

    Can you show me the output of the Parse JSON and Data Select actions? The steps all look correct, but somewhere the inputs or outputs are off.

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
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard