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 / Incorrect Object Argum...
Power Automate
Suggested Answer

Incorrect Object Argument Type. Expected- Text, Actual- Text

(0) ShareShare
ReportReport
Posted on by
Hi all, 
I am trying to click on each link in a browser table to extract data from the subsequent page. For each row, I have selected to click on the link and am met with this error when running the flow. It is saying the expected type and actual type are the same, so am unsure.
 
Hoping someone has an idea of what gone wrong.
Thanks for your help.
Screenshot 2025-06-01 135415.png
Screenshot 2025-06-01 135352.png
Screenshot 2025-06-01 134950.png
Categories:
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,301 Super User 2025 Season 2 on at
    Hello,
     
    Two issues that come to mind:
    Firstly the selector is missing quotation marks around the CurrentItem -variable.



    Change to:


    Second issue is that Extract data from webpage is extracting a datatable variable. So your CurrentItem is one row of that data table. You are using that on a selecetor that is expecting a text value. So it tries to find <a> that has text which includes datatable row. 


    You can fix this in two ways:
    1. Add Set variable to the beginning of the For each -loop that takes in the text value that you want to have in CurrentItem. Do it like so: 
    =ReadCell(CurrentItem,1)
    In Power Fx indexing starts at 1 so that would read first columns value from the CurrentItem that is Datarow -type (contains one row from a table).


    Now that should work in the CurrentItem. 

    Remember to add quotation marks around the CurrentItem in the Selector


    Second method to fix this: Convert the ListNames -datatable into a list with Retrieve data table column into list -action. This way it will be just array of text items and you don't need to use ReadCell on it.


    Then the use that in the For each loop and the CurrentItem should be text variable that you can use in the selector. 

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 255 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 169 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard