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 / Error index '0' is out...
Power Automate
Answered

Error index '0' is out of range

(0) ShareShare
ReportReport
Posted on by 7

It stops working on the next PDf file in the folder when it gets ''error index"0' out of range. How can we get rid of this error or bypass this error? it happens as one of my PDF files does not contain a specific value (email id). 

PremSharma_0-1701986142448.png

 

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    4,150 Super User 2026 Season 1 on at

    Hi @PremSharma ,

     

    Did you checked with putting value in display message.

  • CU31080729-3 Profile Picture
    502 Moderator on at

    Hi, PremSharma

    So while running your process if one of item (pdf) failed you can handle the  those error in exception handling

    you can used on block error action and select go to next action or go to label from advance option by using those 

    you can handle this error

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    chetan ninghot

  • Srini007 Profile Picture
    3,471 Super User 2026 Season 1 on at

    Hi @PremSharma 

     

    This because your value is getting null, and you can't extract the index[0] from a null value, either you can handle that error by customizing the On error block as per you requirement OR you can use If condition and place Isn't empty, Then write your conditions

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

    You can 

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I assume you would still want to rename the file successfully even if the email Id is not found? If so, I would recommend adding an If statement that checks if %EmailID.RowsCount% = 0. If it is, it means the Recognize entities in text action did not find anything, and as such, you should skip the email Id in the file name, and simply rename the file to use only the other values. Then add an Else statement to rename it as it is, when the rows count is not 0, indicating Recognize entities in text actually found the email.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • PremSharma Profile Picture
    7 on at

    It works , thanks for the resolution!!

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 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard