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 / Problem with condition...
Power Automate
Answered

Problem with condition and SharePoint

(0) ShareShare
ReportReport
Posted on by 67

Hello people! I'm using a flow for change name in some archives, and I do OCR on the archive and get the infos I want to use, but they should be placed in different folders, so I'm using a condition... The problem is that for some text I get from the OCR it works fine, but for the others, it returns InvalidTemplate contains expect to receive a string... Here is some screenshot from my flow, it is in portuguese, but I think it won't be a problem... 

victor_lion_0-1603894772371.png

I receive the OCR from HTTP, but also tried to use substring function, compose, and others, with no success

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

    Hi @victor_lion,

     

    It seems that the error is caused by the different data types input in the two sides of Condition action.

    If a string on one side of Condition action, an integer on the other side, the condition couldn't work. You should use int() function or string() function to convert one side, for example:

    Screenshot 2020-10-29 103817.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • victor_lion Profile Picture
    67 on at

    Hi @v-litu-msft

     

    I'm using string(), and also have used substring, to select just one line of the document:

    victor_lion_0-1603969659488.png

    This nested flow receives information from this flow:

    victor_lion_1-1603969771135.png

    But it appears to be random, as some of the files it goes well, and for some of them occurs the related error.

  • victor_lion Profile Picture
    67 on at

    @v-litu-msft, just used string() on both flows, and it came out ok, will do some more tests, and I hope this is it, thanks for the help!

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