cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcus_cmps
New Member

Suddenly cannot reference variables inside a component

I have built a component which includes a Gallery with icons in the template section, the icons have this code in the OnSelect section - It sets a variable called cmpOperation

 

Set(cmpOperation,"Edit")

 

I setup a custom property called varOperation on the component -  Property type: Output, Date Type: Text

marcus_cmps_0-1637584574663.png

However when I try to assign cmpOperation to varOperation it says Name isn't valid - I have done this exact same thing for another component in the app and it works fine (wasn't part of a gallery if that's relevant)

 

marcus_cmps_1-1637584675109.png

 

It seems strange this works on one component but  not another - is this a bug?

1 ACCEPTED SOLUTION

Accepted Solutions
marcus_cmps
New Member

Update - bizarrely - although this generates an error - the variables actually work - so I guess this is just a glitch I can live with

View solution in original post

6 REPLIES 6
gabibalaban
Dual Super User
Dual Super User

@marcus_cmps ,

Are you sure that is a "t" in cmpOperation name. It looks a little bit odd in picture.

Hello gabibalaban - yes its correct - just looks weird - as soon as I get to cmpO when typing it in - it already has no suggestions

marcus_cmps
New Member

Forgot to add mention in

Hello @gabibalaban - yes its correct - just looks weird - as soon as I get to cmpO when typing it in - it already has no suggestions

marcus_cmps
New Member

Update - bizarrely - although this generates an error - the variables actually work - so I guess this is just a glitch I can live with

v-xiaochen-msft
Community Support
Community Support

Hi @marcus_cmps ,

 

Please change your variable name to clear the error.

 

Best Regards,

Wearsky

Benema
New Member

Hello Everyone

 

I have the same Error. Do I just have to live with that or is there a fix for it? App seems to work fine, but I would like to clear all Errors before releasing it into production.

 

Best

Ben

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,068)