admin 管理员组

文章数量: 1086019

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?

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)