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 / Blank line written in ...
Power Automate
Answered

Blank line written in Flow

(0) ShareShare
ReportReport
Posted on by 51

I have created a flow that takes data from a webpage and writes the data to a network file. (note that the data is in a table from  https://www.bloomberg.com/professional/product/indices/bsby/)  I have several issues 1. the data is extracted as a list and adds a blank 1. from the data I have selected. (see example) which then get written in the file.   How do I remove the blank data? Next PAD writes the data down in a active column when I would like it to write the data across a specific a column and row.  

Stephmeta_1-1663276845033.png

Stephmeta_2-1663276988588.png

 

 

 

 

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Please share your Extract step by selecting it and copy-pasting it here.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    If it always grabs the blank one, remove from list %List[0]% where the list is 0 based index, so 0 is the first item.

     

    After that, I would put it on a loop starting at 0 ending at %List.Count% increment of 1.  Then write each item from the list as needed.  Example:

    Loop

        Set variable %ExcelRow% to %LoopIndex +1%

        Write %List[LoopIndex]% to Excel A & %ExcelRow% 'so in the first loop (loopindex 0), it goes to row 1

    End Loop

     

    Good luck!

     

     

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Michael is 95% correct. One-column extractions like this are always datatables and not lists anymore. So you would have to Delete row from datatable.

     

    Another method is to edit the extraction selector like so. Syntax is kinda quirky, but it works...

    td:eq(2):not(:empty))

    Henrik_M_0-1663338609961.png

     

  • Stephmeta Profile Picture
    51 on at

    As requested. I select the data, right click  and extract element value as a text. 

    Stephmeta_2-1663339201280.pngStephmeta_3-1663339262728.pngStephmeta_4-1663339285671.png

     

     

     

  • Stephmeta Profile Picture
    51 on at

    I followed your steps as illustrated entered td:eq(2):not(:eq) yet the no change.

     

    Picture1.png

     

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Even easier way of getting rid of any blanks no matter what inside a list / 1 column data table:

    Use "Remove item from list"  as such:

     

    Pavel_NaNoi_3-1663342566827.png

    where %""% is any null value.

    this finds any null value in your data and removes it from the list.

    if the blank value is a space instead use %" "% with a space in-between the quotations.

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You have to put this selector: 

    td:eq(2):not(:empty))

  • Stephmeta Profile Picture
    51 on at

    Unfortunately it did not work. see error.

     

    Stephmeta_0-1663792387054.png

     

  • Pavel_NaNoi Profile Picture
    1,074 on at

    That's fine it means it didn't find any blanks that are spaces, try %""% instead, note that you also have to create an On Error command if you ever don't get blanks, this will prevent this error from being in the way of the automation (do that last)

  • Stephmeta Profile Picture
    51 on at

    Thank you. I enter td:eq(2):not(:empty)

    Stephmeta_0-1663797871795.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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard