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 / Go to label not working
Power Automate
Unanswered

Go to label not working

(0) ShareShare
ReportReport
Posted on by 164

Hi all, as attached in the image, this is my flow. My issue is that if it detects that the excel worksheet is completely empty without data, it will show an error, which i have described below the images. Thus, i have put on error on line 55, and if there is an error, it will go to the label "No CourseCode", and proceed on to the next part of the flow for the next worksheet, which is after the label. However, it is not working. Any idea why? In line 53 of the code, i have also used the same go to label, but that is working

 

And also, besides using label, how can i do it such that if it detects that get first free row is empty, it will not run through the for loop and proceed on to the next loop?

Alphadrag_0-1650590606096.png

Alphadrag_1-1650590723918.png

Error that shows: Start cell row cannot be preceded by end cell row. This is caused by the empty data

 

This is an image of the excel file, just focus on the red column. I blocked out the other columns as it is not necessary.

Alphadrag_0-1650592531793.png

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @Alphadrag 

     

    According to the logic you have written in line #55, FirstFreeRowOnColumn will return 2.

    And you have done a minus 1. So it becomes H2 - 1 = H1

    So you are reading values from a bottom row to an upper row ie; H2 to H1 which is incorrect and hence you are getting the error Start cell row cannot be preceded by end cell row.

     

    - Remove the minus 1 and Change to FirstFreeRowOnColumn in line 55

    - remove the error handling in line 55

    - In line 56, if it finds any data in ProgramName datatable then it will go inside the For loop. 

    If its has no rows then it will go to line 63 which is after the For loop

     

    Post back how it goes with you.

     

     

  • Alphadrag Profile Picture
    164 on at

    What am i doing wrongly? I am trying another way which is to use loop. However, changes is only made to the first row. Below is my flow, which part did i do wrongly?

    Alphadrag_0-1650603721847.png

    Alphadrag_1-1650603798795.png

     

  • VJR Profile Picture
    7,635 on at

    It is not clear what you are trying to achieve and what is happening.

  • Pavel_NaNoi Profile Picture
    1,074 on at

    You're looping it reading and replacing text in row 2 (the first row as its not counting the title row), you need to actually increment the rows, i.e. have an index variable in place inside the read from excel worksheet column H, row "index variable" instead of "2". You in fact already have this index variable which you have called the Loopindexprogram, just put that in there, should work.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard