admin管理员组

文章数量:1395436

I am creating a flow in Microsoft Power Automate Desktop that retrieves the weather information for a user-specified city. The flow prompts the user to enter a city, then opens Google Search to get the maximum temperature for that city. However, I encounter an error when trying to set a variable using the Text() function.

The error message is:

The untyped object argument to the 'Text' function has an incorrect type. Expected: Text, Actual: Text.
Location: Subflow: Main, Line: 6, Action name: Set variable

This error occurs at the Set Variable step, where I attempt to convert the extracted value into text using:

Text(${Temperatuur})
  1. I first attempted to use:

    Text(${Temperatuur})
    

    expecting it to properly convert the extracted web data to text. Instead, I got the type error mentioned above.

  2. I also tried simply assigning the variable directly without Text():

    =Temperatuur
    

    but I still received the same error.

  3. I verified that the Extract data from web page step successfully retrieves the weather data. However, it seems that the extracted value might not be automatically recognized as text.

How can I properly extract and assign the temperature value as text to avoid this error?

本文标签: