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

Community site session details

Session Id : AOkTtaKYKoQcgR42bGIPJ/
Power Automate - Building Flows
Answered

Create file not loading information properly

Like (1) ShareShare
ReportReport
Posted on 10 Jul 2024 15:24:37 by 91

Hello, I have a flow that takes a file from Sharepoint and retrieves only certain columns from that file. It then, needs to create a new csv file that includes only the columns I selected. Everything works properly, except for the file creation part. It looks like this:

 

Monikk2711_2-1720623943848.png

 

The CSVDecode variable is an array and it uses the following formula:

 

 

Monikk2711_3-1720623986870.png

 

Then, the Select action uses the output of the CSVDecode variable to retrieve the corresponding columns from the file skipping headers:

Monikk2711_8-1720624609065.png

 

 

Monikk2711_4-1720624052621.png

 

Finally, the Create file (which should not be a loop, as I only want one file to be created, takes the body from the Select action 

Monikk2711_5-1720624144372.png

And creates the file using the outputs of the Select action.

 

I have two problems:

 

1. Instead of creating a single file, Power automate automatically creates a loop when I add the Create file action, therefore, it creates one file per each one of the items in the file.

2. The information is not pulled correctly in the file. Instead of showing the information as shown in the outputs, it is blank in each one of the files as shown below:

 

Monikk2711_9-1720624783952.png

 

This is the output of the Select action:

Monikk2711_6-1720624562363.png

 

Any help would be greatly appreciated.

 

I have the same question (0)
  • MG-27051438-0 Profile Picture
    91 on 10 Jul 2024 at 17:24:22
    Re: Create file not loading information properly
    Done! Thanks a lot!
  • Michael E. Gernaey Profile Picture
    50,070 Super User 2025 Season 2 on 10 Jul 2024 at 17:20:19
    Re: Create file not loading information properly

    Thanks @Monikk2711 

     

    Glad to hear,

  • MG-27051438-0 Profile Picture
    91 on 10 Jul 2024 at 17:16:53
    Re: Create file not loading information properly

    @FLMike yes, I solved the problem by adding a Create CSV table action right before the Create file action. The data now loads properly and the flow creates the file. The output of the select needed to be placed into the CSV file and saved into Sharepoint. It works now, thank you!

  • Verified answer
    Michael E. Gernaey Profile Picture
    50,070 Super User 2025 Season 2 on 10 Jul 2024 at 17:08:59
    Re: Create file not loading information properly

    hi @Monikk2711 

     

    2 things

     

    1. Yes your create file becomes a loop because of the fact that you added an array to it from the Select, so yeah its going to do that, even if your select only outputs 1 entry its still an array

     

    2. Can you please explain what you expect to happen with the output of the Select.

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 707 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 499 Moderator

#3
chiaraalina Profile Picture

chiaraalina 312

Last 30 days Overall leaderboard
Loading complete