cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ToddM1
Level: Powered On

Suddenly entire Screen broken - Invalid use of "."

I left last night and my App was working perfectly in Preview mode.  Arrived this morning with 47 errors with most of them being invalid use of "." 

 

For example the code is:  

  • CurrentUserType="Admin"&& MaDSProj_Filter.SelectedText.Value = "Filter by Change Request"
  • PowerApps is requesting that I remove the .SelectedText.Value in order to make the formula correct.  

 

  • ColorFade(MaDS_ProjStageFilterDropDown.BorderColor, 15%)
  • PowerApps is stating that "ColorFade has some invalid arguments".  It is the same command that works on every other screen and that worked yesterday when I left the office.

 

This is not the first time that this has happened.  I am hoping not to restore from yesterday morning and recreating the code because, of course, there is no way to print or view the code easily in PowerApps along with all of the setting associated with each variable, label or gallery.

 

My build is PowerApps release 3.19081.26

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Suddenly entire Screen broken - Invalid use of "."

Hi @ToddM1 

 

check to see if the dropdonw with that name exists

you can use the search option on the left side panel to check

if it does not or if there is one that already exists - rename it to match the name being used in formulas

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Dual Super User
Dual Super User

Re: Suddenly entire Screen broken - Invalid use of "."

Hi @ToddM1 

 

since all the erros are  related to that dropdown - has that dropdown been accidently deleted or has something on the datasource related to that dropdown changed?

ToddM1
Level: Powered On

Re: Suddenly entire Screen broken - Invalid use of "."

No changes to the form or to the datasource.  Just 48 red x's (Errors).  The majority of them are on DropDown items, but on properties like PressedBorderColor, HoverBorderColor, or the Visible property.

 

I think in the past, I have deleted the DropDown and just rebuilt it throughout the app.  I'm hoping to find a root cause so that I can avoid it in the future.  Especially as we start incorporating PowerApps more into our business operations.

Dual Super User
Dual Super User

Re: Suddenly entire Screen broken - Invalid use of "."

Hi @ToddM1 

 

check to see if the dropdonw with that name exists

you can use the search option on the left side panel to check

if it does not or if there is one that already exists - rename it to match the name being used in formulas

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Highlighted
ToddM1
Level: Powered On

Re: Suddenly entire Screen broken - Invalid use of "."

Hi @RezaDorrani ,

 

Thanks for your assistance.  I followed your advice and verified that the name existed.  Everywhere that the names were referenced, it was throwing the errors.

 

It looked like somehow there were three dropdown list that somehow went haywire.  My solution was to copy dropdown list and then substitute the new variable name into all the formulas where they were called (fortunately all on the same screen). I then deleted the original variable.

 

Back to zero errors.Smiley Happy

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,105)