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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sudden err but no dev ...
Power Apps
Unanswered

Sudden err but no dev changes made 'Types of the specified context variables are incompatible.....'

(2) ShareShare
ReportReport
Posted on by

 

Spoiler (Highlight to read)
"The types of the specified context variables are incompatible with the types specified elsewhere"
"The types of the specified context variables are incompatible with the types specified elsewhere"

Hi All - I suddenly cannot navigate to ANY form in ANY app where context variables are being passed. This has started to err on ALL of my apps!

 

NO exaggeration to say I cannot support live apps right now after having waded through tens of 'yellow error triangles' in one app for quite some time only to see them disappear without having made any changes! Said app is now working but the others have started to err as well.

 

I found a similar thread and posted a reply there but I feel this warrants an urgent resolution AND the cause unrelated so I started new thread here!

https://powerusers.microsoft.com/t5/PowerApps-Forum/service-desk-template-errors-in-filter/m-p/47345#M19803

 

(session ID below)

 

Session ID: c29acddf-9a17-5584-23f6-92ace3b9e215

 

 

Categories:
I have the same question (0)
  • RuiBarbosa Profile Picture
    52 on at

    Same problem here. Yesterday with 2.0.663 version everything was ok, today, I open the APP and this problem appears in entire application.

  • theCatalyst Profile Picture
    2 on at

    I have the same problem. I was working yesterday and everything was fine, but today I got errors all over my application as soon as I opened it.

  • BenAtDataImprov Profile Picture
    21 on at

    Hi

     

    I have an app that was working fine until yesterday. Today when I open it it doesn't even show any screens on the left pane. It seems a new version - 2.0.672 - released this week, has a SERIOUS bug in it. I can still run the4 app from Powerapp web but cannot edit it.

     

    Anyone else have this?

     

    Ben

  • duffysp Profile Picture
    63 on at

    Also the same for me. It was working an hour ago and has now broken without any changes being made.

     

  • Hemanth Profile Picture
    on at

    Hi,

    Sorry to hear that you are facing this issue. In order to find the exact root cause of the issue, It would help tremendously if you caould share the rules where you are facing the issue i.e. what is the Navigate rule and what is the rule where you set the type of the context variable in the navigated screen.

    My email is hekum@microsoft.com Can you please email me with the details to speed up the process ?

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks Hemanth - just sent you a reply.

  • BenAtDataImprov Profile Picture
    21 on at

    Hi Hemanth, 

     

    I've also sent an email reply, with the msapp file giving the problem, attached.

     

    Thanks

    Ben

  • Brian Dang Profile Picture
    3,976 on at

    I have had this happen all the time. I know what it is--and it occurs when you are typing formulas. As you type formulas, PA redetermines the validation for a variable. See my post: 

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Disable-check-for-errors/idi-p/45075

     

    So when you are in the middle of typing:

    UpdateContext({variable: tr...})

    PA will stall since it's now unsure if the variable takes boolean values or this broken text. Once you finish typing the formula, PA might be okay again. Other times, the yellow signs will remain. The fix I have found is to save the file and reopen it. As long as the variable is validated to take the same type of data in every instance, the app will open correctly without the yellow signs.

     

    In addition to closing/reopening the app, it's a good idea to view the variables: where are they used and how are they defined. In one variable I had--I defined it with all the columns in one area and fewer columns in another one. It would work in 99% of situations, despite the different definitions. Then in editing a definition or adding another definition in another location, the yellow signs. It is just best to keep it all the same number of columns. To be exact, I consider a variable that is based on a record in a collection to be different than a variable that is based on an item from a gallery. The gallery item includes all of the controls with the data while the collection record is just data. Once I got everything redefined to be based on collections, I started having fewer of these situations.

     

    The problem with UpdateContext() and Navigate(,,variable) is that the variables are scoped to one screen only, yet you need to define them in so many areas. A recent version of PA introduced the Set() function which makes a variable universally accessible on any screen.

     

    As I was transitioning to change my old formulas that used UpdateContext to use Set() instead, I noticed that all instances of UpdateContext stopped working--which is okay. No error dialogues or yellow signs popped up saying they were incompatible--this is good for transitioning as you don't want to be slowed down. I recommend that you switch over to Set. View the variable wherever it is defined, including in Navigation formulas, and change it to Set instead. 

     

    Note: This is anecdotal, but I find that when writing a formula for Set(), PowerApps doesn't stall in the middle of typing "true." 

     

    Note2: I started editing certain variables outside of PowerApps and copy+pasting it back, but it defeats the purpose of using the formula bar in PA: you miss out on the color coding, spacing, referencing, and autocomplete. However, in this method, I can't break variables. https://powerusers.microsoft.com/t5/PowerApps-Ideas/Disable-check-for-errors/idi-p/45075

  • Community Power Platform Member Profile Picture
    on at

    Very interesting mr-dang ..

     

    Although we can't get away from this being a bug (as most users with the issue have not changed any code) it does give an insight into how PowerApps manages variables. I can see that even if a gallery's .Items are assigned to a connection and the .Selected is loaded into a var - there could be problems if the var writes to or reads from the original connection's records. As you say perhaps because of some difference in system fields that we're not aware of.

     

    Also I suggested to Hemanth (@ Microsoft PowerApps) that it may be the new Set global var function that's now interfering with Context Variables?

  • duffysp Profile Picture
    63 on at

    Sorry for the delay Hemanth,

     

    At the moment I have an issue with two variables that are being passed in a Navigate function.

    here is the function:

    Navigate(scrnTS,ScreenTransition.None,{varJobID:varJobID,varJobCardID:varJobCardID,varDate:varDate,varCurrentTracksheetID:lblTracksheetID.Text})

     

    Sources:

    varJobID is passed to this screen from a previous screen (passed in the navigate function). (EG Data: 008805)

    varJobCardID is passed to this screen from a previous screen (passed in the navigate function). (EG Data: JC001)

    varDate is passed to this screen from a previous screen (passed in the navigate function). (EG Data: 28/07/2017 - Formatted as text)

    lblTracksheetID is just a label field with data like "123456".

     

    I changed the names of the variables being passed in case this was causing the issue (as they are the same names as the source variables) but this makes no difference EG:

    Navigate(scrnTS,ScreenTransition.None,{varJobID:varJobID,varJobCardID:varJobCardID,varAnotherDate:varDate,varAnotherCurrentTracksheetID:lblTracksheetID.Text})

     

    These were both working fine yesterday afternoon but when i had came back from lunch my PowerApps application had been updated and this started happening.

     

    Removing those two variables from that function causes it to work ok.

    The other two variables JobID and JobCardID work fine.

     

    Thanks.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard