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 / Multiple choice column...
Power Automate
Answered

Multiple choice columns in SharePoint library – Output repeats row 4 times instead of 1

(0) ShareShare
ReportReport
Posted on by 47

@ChadVKealey I actually did first create my flow using the video you suggested  here: https://youtu.be/T10-JRtgCaE?t=951.  But I got the ActionFailed error and the Same row is repeated 4 times (as detailed below).  Since you recommend this method can you help me solve this issue?

 

The Flow runs Quarterly.  It looks at files in a SharePoint Document library.  If the files have a specified Owner the data is put into a CSV table.  Then the table is saved as a file on the SharePoint.  These steps match the screenshots below.

 

  1. Recurring – quarterly
  2. (Ignore the Initialize variable 1 year ago).
  3. Get Files (properties only) – get the following information from a SharePoint Library.  Using ODATA filter to only get documents where the Owner = Data Analytics.
    1. Name – title of document
    2. Owner of document single choice column
    3. Modified Date
    4. Department – a multiple choice column (and therefore an array)
  4. Compose – pulls in the Department data as an array. 
  5. Select – selects just the value from the array
  6. Join – joins the Select with a comma
  7. Condition – make sure that the file contains at least one row.
  8. Create CSV table – put data in a table.  For the Department use the output of the Join.
  9. Create a file –save file on the SharePoint.

 

What the SharePoint library looks like.  Only the Department column is multiple choice

Jlee_0-1660929467371.png

 

Error Message: ActionFailed. An action failed. No dependent actions succeeded.

Same row is repeated 4 times for all columns

Jlee_1-1660929467383.png

 

What the file should look like

Jlee_2-1660929467387.png

 

Jlee_3-1660929467398.png

Jlee_6-1660929859564.png

 

Jlee_0-1661262351098.png

@tobor58 this is similar to your post.  Can you provide more detail on how you got your solution to work?

@tom_riha 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @J-lee ,

     

    Please try and initialize an array variable with below structure at the beginning of your flow:

    [
     {
     "Name":"",
     "Owner":"",
     "Modified":"",
     "Department":""
     }
    ]

     

    In Apply to each loop, use the Append to array variable, move the Create CSV table and Create file actions out of the loop. 

     

    Best regards,

  • J-lee Profile Picture
    47 on at

    @v-jefferni Thanks!  I tried your solution and it seems closer but maybe I did not set the actions correctly.  Please show me what I may have done incorrectly.

     

    Output

    Jlee_0-1661261654934.png

     

    Department Output is still the same on all 4 rows.  At least the text that should be on each row is now grouped together by quotes and separated by a comma.  I don’t know why the text in bold appears.


    [{"Name":"","Owner":"","Modified":"","Department":""},"Data analytics,Happy,Innovative,Process management,Project Mgmt,SharePoint users","Project Mgmt,Happy","Data analytics,Process management","SharePoint users,Innovative"]

     

    All the text in red should be on the first row

    All the text in green should be on the second row

    All the text in blue should be on the third row

    All the text in purple should be on the fourth row

    Jlee_1-1661261654940.png

     

    Jlee_2-1661261654943.png

    The CSV Table and Create File actions are outside of the Apply to Each.

    Thanks for any assistance you or anyone else can provide!!!

    @ChadVKealey 

  • J-lee Profile Picture
    47 on at

    @Expiscornovus Hello!  I noticed that you posted a solution that is similar to my issue of stringing output together in this post  Solved: Styling flow output multple choice - Power Platform Community (microsoft.com)

    I would really appreciate it if you could review my post and see if you have any insight.  I've been trying to solve this for a long time !

  • Verified answer
    Expiscornovus Profile Picture
    33,488 Most Valuable Professional on at

    Hi @J-lee,

     

    I don't think you would need to initiate those properties without values. I would just leave the initialize variable empty. And the CSV table action should recognize the properties from the data itself. You would not need the mapping. You could add that logic to your append action. 


    Can you try something like below?

     

     

    {"Name":"@{items('Apply_to_each')?['{Name}']}","Owner":"@{items('Apply_to_each')?['Owner/Value']}","ModifiedDate":"@{formatdatetime(items('Apply_to_each')?['Modified'], 'M/dd/yyyy')}","Department":"@{join(body('Select'), ', ')}"}

     

    arrayvariable.png

  • J-lee Profile Picture
    47 on at

    @Expiscornovus I tried your solution but got this error.  Any clue as to why?

    Unable to process template language expressions in action 'Append_to_array_variable' inputs at line '0' and column '0': 'The template language function 'join' expects two parameters: the array of elements to join as the first parameter, and the element separator as the second parameter. The function was invoked with '1' parameter(s).

     

    Jlee_5-1661275522535.png

     

    Jlee_8-1661277216064.png

    Jlee_7-1661275522545.png

     

  • Verified answer
    J-lee Profile Picture
    47 on at

    @Expiscornovus  IT WORKED !!!!!!!!  THANK YOU SO MUCH !!!!

    Just had to make one change in the Append to Array format

    Jlee_0-1661280985124.png

     

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 224 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 181 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard