cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JorisR
New Member

isolate part of text

Hi ! 

 

I'm n ew in power automate and i try to isolate a variable part of an email. so i use an thml to text, i've succeeded to isolate a fix part of the email : 

JorisR_0-1630504757151.png

 

And then i want to isolate a variables part of the email with this :

 

JorisR_1-1630504797713.png

But i have the error : 

Impossible de traiter les expressions de langage de gabarit dans les entrées d'action « Isoler_le_commentaire » à la ligne « 1 » et à la colonne « 17684 » : « Impossible d'évaluer l'expression de langage de gabarit « split(split(outputs('JoinText'),'«')[1],'»')[0] », car l'index de tableau « 1 » est en dehors des limites (0, 0) du tableau. Pour les détails d'utilisation, consultez https://aka.ms/logicexpressions. ».

 

i actually understand that [1] is out of the limit (0,0) of the array but i don't know more.

 

Can you help me ?

1 REPLY 1
tom_riha
Super User
Super User

Hello @JorisR ,

what value contains the JoinText output? Just guessing based on the error message (as I don't speak French), the output doesn't contain the « character, therefore, it returns only a single item in an array = there's nothing on index 0.

Also I'm not sure if you can combine multiple split(...) in an expression. Split(...) expects a string as an input, but if you combine two split(...) together then only the inner one will work with a string and turn it into an array, the outer split(...) would then have an array as the input = an error?



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,652)