web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Variables type with Po...
Power Automate
Answered

Variables type with Power Fx

(0) ShareShare
ReportReport
Posted on by 48
Hello,
 
Following the last PA Desktop update all the variables type does not work correctly. Seems to be linked to Fx
 
 
So when I want to use variable, PA says "It's not the correct type" ... My flow is dead :-(
 
 
My version is 
 
 
 
After some investigations on the flow with a text editor 
 
With issue :  LOOP FOREACH OF_VALUE IN $fx'OF_65_CSV'
 
Select from     this variable gives this  does not work ==> $fx'OF_65_CSV'
 
Without issue : LOOP FOREACH OF_VALUE IN OF_66_CSV
 
 works well but ... (If I update the variable, the line is "dead") ==> OF_66_CSV in text mode
 
 
By copying the line with OF_65_CSV variable in text editor, updating the text manually to OF_65_CSV instead of $fx'OF_65_CSV' and pasting to PA, the flow works now.
 
But the type issue remains ...
 
If I set      in the same way of %OF_66_CSV% displayed I get this error.
 
 
The text file is LOOP FOREACH OF_VALUE IN $fx'%OF_65_CSV%'  ==> Fx mode enclosing % 
 
I think this is a bug due to Power Fx variables when Fx is activated. (I need it because I use Active Directory call)
 
Any idea ?
Thx for your help by advance.
Christophe
 
 
 
I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,524 Super User 2026 Season 1 on at
    I am not sure I fully understood. Why does this not work if you just put equal sign before the table name?

    =OF_65_CSV

    In Power Fx syntax variables always have equal sign before them.

    So if you paste this in your flow does it not work?
    LOOP FOREACH OF_VALUE IN $fx'=OF_66_CSV'
    END


    I have the same version for PAD and it doesn't give me any error for this.


    What error does it give? If it still gives you error only thing I can think of that this bug is for your language settings (France) 
  • CU07101922-0 Profile Picture
    48 on at
    Hello,
     
    Firstable, Thx a lot for your help :-)
     
    1/ Build a Flow named test with Power Fx activated
     
    2/ Create flow as requested ... and it works ... Strange
     
    TEXT => LOOP FOREACH OF_VALUE IN $fx'=OF_66_CSV'
     
    3/ Same approach in the main Flow, Issue already presents
     
     
     
    I've deleted and rebuild the FOR EACH LOOP and it works ... 
    The solution is amazing but some bugs remains :-)
     
    I've translated this flow from environement without Fx to an environnement with Fx (For Active Directory needs)
    I think this is the root cause.
     
    After some research, I've found the correct syntax to retrieve Fx variable in SQL transaction.

    SET QUOTED_IDENTIFIER OFF
    insert into OpenFlyers (
    [id],
    [name],
    [first_name],
    [last_name],
    [email],
    [cell_phone]

    values (
    "${ReadCell(OF_VALUE,1)}",
    "${ReadCell(OF_VALUE,2)}",
    "${ReadCell(OF_VALUE,3)}",
    "${ReadCell(OF_VALUE,4)}",
    "${ReadCell(OF_VALUE,5)}",
    "${ReadCell(OF_VALUE,6)}"
    )

    So Thanks again for your help.
     
     Christophe

     
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard