web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error in string Replac...
Power Automate
Answered

Error in string Replace help

(0) ShareShare
ReportReport
Posted on by

Hello! I have a question about a Replace error.
I used a Run script to extract the necessary string using a regular expression.
Afterwards, I tried to use replace to further remove unwanted characters, but I am encountering persistent errors.
Could you please provide guidance on how to resolve this?

You're welcome in advance!


Here is the code: replace(outputs('Compose333').base64ToBinary,'SD-1_','')."

hermechin_0-1705468743380.png

 

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @hermechin ,

     

    What's the error message?

     

    Best Regards,

    Wearsky

  • hermechin Profile Picture
    on at

    @v-xiaochen-msft 

    Thank you for your response.

    I'm encountering the following error.

    Can you please offer some advice?"

     

    InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language expression 'replace(outputs('Compose333').base64ToBinary,'SD-1_','')' cannot be evaluated because property 'base64ToBinary' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @hermechin ,

     

    Please try this

    json( replace(string( outputs('Compose333')),'SD-1_',''))

     

    Best Regards,

    Wearsky

  • hermechin Profile Picture
    on at

    @v-xiaochen-msft 

    Thank you so much!!

    It's truly amazing. The issue has been resolved. Thanks again!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard