1

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?

1
  • 1
    Show us the value of Temperatuur from the Variables panel. Commented May 7 at 2:37

1 Answer 1

1

Your first attempt isn't a formula, so saying that Temperatuur = 15 C, it then should be assigning the value:

Text(${Temperatuur}) //Text(15 C)

I get the expected output from:

=Text(Temperatuur) //15 C

While using:

=Text(${Temperatuur})

I get these errors regarding unexpected characters:

Parameter 'Value': Unexpected characters. Characters are used in the formula in an unexpected way.
Unexpected characters. The formula contains 'CurlyOpen' where 'ParenClose' is expected.
Unexpected characters. Characters are used in the formula in an unexpected way.
The function 'Text' has some invalid arguments.
Expected text or number. We expect text or a number at this point in the formula.

Best regards,

Gustav

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.