Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Wvo3qe9y8QiogoS549FFNd
Power Automate - Building Flows
Answered

Replace quotation marks in output

Like (1) ShareShare
ReportReport
Posted on 24 Apr 2021 09:36:14 by 77

Hello,

 

I have an excel file that I load using 'List rows in table'. With 'Select' I chose the columns needed.

Next, using 'Compose' I select the output. I believe this generates a json type structure. Finally I upload this output to a SQL Server using 'Execute a SQL Query'.

 

Everything works fine - the json output i being uploaded.

However in the the excel file a strings that include quotation marks (') - and this messes with the json structure apparently.

I tried to replace the ' character - see the screenshot below.

However this leads to the following error message:

 

 

Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '23396': 'The template language function 'replace' expects its first parameter 'string' to be a string. The provided value is of type 'Array'. Please see https://aka.ms/logicexpressions#replace for usage details.'.

 

 

Bildschirmfoto 2021-04-24 um 11.20.39.png

How can I remove the quotation marks from my output?

Thanks!

  • dash_7 Profile Picture
    77 on 24 Apr 2021 at 18:10:29
    Re: Replace quotation marks in output

    thanks @CFernandes for the info and the solution for my original question. I did mark it as solution if anybody else stumbles upon the same problem!

     

    However I am kind of lost now...

    I thought I could use Power Automate (which I have practically no experience with) to solve a problem that I thought was rather "boring" and easy: send excel data to sql server.

     

    I tried two ways in power automate:

    - "List rows in table" and than loop through with "Insert Row". For 30k rows in the excel it would take several hours

    - and this solution with "execute sql query" which works but splitting the file each time is not the best solution.

     

    Is there a best practice to solve this kind of task that I missed?

    Thanks!

  • CFernandes Profile Picture
    8,285 Most Valuable Professional on 24 Apr 2021 at 12:25:35
    Re: Replace quotation marks in output

    @dash_7

     

     Ahh We have a limitation - You will have to split the excel file - We have an idea in Community - https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Increase-the-maximum-buffer-size-from-100/idc-p/197615 

     

    Please Vote- Up.

     

    If was able to answer your original question, please mark it as an answer. 

    Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • dash_7 Profile Picture
    77 on 24 Apr 2021 at 12:09:25
    Re: Replace quotation marks in output

    thanks @CFernandes that did the trick!

     

    However now that the string would get submitted to the server (30k lines in the excel file) I get this error message in the "Execute a SQL Query" part:

    {
     "status": "413",
     "message": "The request is larger than 52428800 bytes."
    }

    Is the generated json string to big for power automate to handle? Is there a way around other than splitting the excel file?

  • Verified answer
    CFernandes Profile Picture
    8,285 Most Valuable Professional on 24 Apr 2021 at 10:24:05
    Re: Replace quotation marks in output

    Hey @dash_7 

     

    Try to Convert the output of "Select" to string .

     

    replace(string(body('Select')),variable('Quote'),'')
     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard