Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

cannot be evaluated because array index '1' is outside bounds (0, 0) of array

Hi @Paulie-M ,


From the instructions in video,  i am able to convert a HTML table but i am stuck on last step (Video time stamp at 15.17 ).

In Select action after filter array, the first mapped row is coming with split expression - split(item(),'^')[0]

but the row value is not coming using split(item(),'^')[1] and so on till [4]

I am getting error 'cannot be evaluated because array index '1' is outside bounds (0, 0) of array'


Can you please help at the latest possible. Let me know if more information is required. thanks in advance


this is the filter array output. 





Accepted Solutions
Frequent Visitor

We can mark this closed as I found the issue.

the additional/last line in the html to text output was causing the trouble. Which i replaced with null and it worked fine.


View solution in original post

Most Valuable Professional
Most Valuable Professional

@Nimit-Jain  as per the video, have you added the ReplaceTD action and its expression correctly, because you are having issue where split with a carat (^) is not returning any elements for you. I hope you have similar table structure with Table, tr, td, in your html.

Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Thanks @annajhaveri  for getting back,


yes i have a similar structure of TD and TR. I have followed all steps in that video including steps of replacing td (with carat ^) and tr (with pipe |). I am getting all correct output at each step. Its just the last one i am stuck at.


this is the output from filter array with ^, now i have to split it in select action using expression split(item(),'^')[0]

for split(item(),'^')[0], its working. for split(item(),'^')[1] and so on is not working.


Frequent Visitor

We can mark this closed as I found the issue.

the additional/last line in the html to text output was causing the trouble. Which i replaced with null and it worked fine.


@Nimit-Jain - can you show the code you added to replace the additional/last line with null? I am having the same exact issue you mentioned in your post.




Hi @b_benn1983 , 

i had a fixed text in last line of the output after replacing tr and td so i replace it with a null in an additional step.

1. I added another compose -> output of previous (after tr and td)

2. Used expression 'replace(outputs('Compose_8'),'text','')

and then next step is to convert html to text. 

if you are follwoing the same video, after html to text, we will remove null so i only left with desired output.

Let me know if this works for you.


Frequent Visitor

Hi @Nimit-Jain , Thanks for getting back to me so quickly! I added a compose after the ReplaceTD step (yes, I am following the video exactly) and my select statement still gives me the below message. I also added a screenshot of that section of my flow. I probably did something wrong, any suggestions?


InvalidTemplate. The execution of template action 'Select' failed: The evaluation of 'query' action 'where' expression '{ "File": "@split(item(), '^')[0]", "Recv'd": "@split(item(), '^')[1]", "Matched": "@split(item(), '^')[2]" }' failed: 'The template language expression 'split(item(), '^')[1]' cannot be evaluated because array index '1' is outside bounds (0, 0) of array. Please see for usage details.'.





Hi @b_benn1983 , in this experssion replace(outputs('Compose_8'),'text','')


text is something that was part of my email appearning in the last line of email. for example text was thank you

now the expression became replace(outputs('Compose_8'),'thank you','')

please find the text  in your email (hopefully its text only) and replace it with null and it should work.

in my case this text that i referred to above is static thus i could use it in expression.   

Frequent Visitor

@Nimit-Jain - I replaced the 'text' with 'Non updated key information is in ABCDE', so the full expression is replace(outputs('ReplaceTD'),'Non updated key information is in DQTKIP','') and still getting the error message in the select step.




Hi @b_benn1983 , is it possible for you to share the output after td/tr replace...before HTML to text (without replace expression discussed above)

Frequent Visitor

Hi @Nimit-Jain  - I have attached a screenshot of my flow and the output before HTML to text below. Hope you had a good holiday break!



"<table width=\"90%\" border=\"1\"><font face=\"times new roman\"><font size=\"3\"><b><tbody><tr><td>File^</td><td>Recv'd^</td><td>Matched^</td>|</tr></b><tr><td>AS^</td><td>23^</td><td>15^</td>|</tr><tr><td>CR^</td><td>0^</td><td>0^</td>|</tr><tr><td>HT^</td><td>7^</td><td>7^</td>|</tr><tr><td>IN^</td><td>24^</td><td>24^</td>|</tr><tr><td>PS^</td><td>24^</td><td>24^</td>|</tr><tr><td>XU^</td><td>146^</td><td>146^</td>|</tr></font></font></tbody></table><br>Non updated key information is in DQTKIP.</font></font> </div></body></html>"

Hi @b_benn1983 ,

Hope you have a great holiday break!

can you try using this formula replace(outputs('Compose_8'),'Non updated key information is in DQTKIP.','') as we discussed earlier before html to text and then run the flow.

Frequent Visitor

Hi @Nimit-Jain - I have rerun the flow with the 

replace(outputs('ReplaceTD'),'Non updated key information is in DQTKIP','')








Hi @b_benn1983 ,


looks like the flow ran successfully now.

Frequent Visitor

Hi @Nimit-Jain - Yes, that was ok. The failure was at the end when attempting to add that output to an excel file. I have the excel file all set up on my one drive ready to be added, but I am having issues getting the output below into rows and exported to excel.




I would like it to just export to look like this 



Any suggestions?


you can try something like this,




@Nimit-Jain Do you possibly have a solution for only selecting the first few rows of a table before step HTML to text? 

I've followed the same video as you guys, had the same issues originally which led me here. I've removed text at the bottom of email but I'm still getting the sinister error. I think it might be an issue with table in the email as this is how it looks like: 


I'm only interested in getting detail from highlighted rows. 

Hope this makes sense? 




Helpful resources


Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Summer of Solutions | Week 3 Results | Win free tickets to the Power Platform Conference

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22  

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (4,885)