Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.
  • Suggested answer
    eetuRobo Profile Picture
    3,470 Super User 2025 Season 1 on at
    Incorrect Object Argument Type. Expected- Text, Actual- Text
    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

Warren Belz – Community Spotlight

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

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >