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 Apps / Differences between PR...
Power Apps
Unanswered

Differences between PROD and DEV environment

(0) ShareShare
ReportReport
Posted on by 38

Hi everyone,

 

I have received the task of updating a Canvas App from one of my former colleagues, but when I copy the new Canvas App from DEV to PROD it does not work.

 

I have narrowed it down to the difference of ThisItem.Contact on DEV and TEST and ThisItem.'Contact (contactid)' on PROD.

 

This works on DEV and TEST:

Select(Parent);
Set(
CustomerSelected,
GUID(ThisItem.Contact)
);
Navigate(Customer_overview);

 

And this works on PROD:

Select(Parent);
Set(
CustomerSelected,
ThisItem.'Contact (contactid)'
);
Navigate(Customer_overview);

 

But using the syntax from PROD on DEV or TEST gives me the following error:


Incompatible type. We can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app.

Ruprect_1-1648639775662.png

 

Hovering on ThisItem, tells me in both DEV and PROD that is of Data type Record:

Ruprect_2-1648639898230.png

But on my DEV and TEST environment 'Contact (contactid)' is not possible as a selection if I start typing ThisItem. and then wait for the Autocomplete helper at the bottom of the function window.

 

This is the Autocomplete from DEV:

Ruprect_3-1648640099110.png

And this is from PROD:

Ruprect_5-1648640207233.png

 

I have used the excellent Power Apps Language Tool: https://github.com/microsoft/PowerApps-Language-Tooling to export Canvas App from both PROD and DEV, and can see that all changes relate to PROD having one syntax and DEV/TEST has another.

 

Is there some setting I can check across environments to check why there is a discrepancy.

 

Regards,

Michael

 

 

Categories:
  • Ruprect Profile Picture
    38 on at

    Additionally when copying from PROD to DEV or TEST I also get the following text:

     

    The schema for your data sources have been updated, which have reset the following variables and collections: 
    [And then a list of variables, which is unfortunately truncated.]
    We recommend you reinitialize your variables and collections by saving and reloading the app.

    Ruprect_1-1648641638557.png

    And then the app has a lot of errors due to ThisItem.'Contact (contactid)' no being available on these environments.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard