So I use context variables on screens that are loaded with data from a sharepoint list, normally when the screen is navigated to.
e.g.
Navigate(MyScreen, Fade, {varMode: "View", varRecord: LookUp(MyList, ID=ThisItem.ID)})
I then update the variable in the OnChange box of whatever control it is that I am using, making sure I use Text or Value to define the type as I have been bitten in the past by Incompatible Type.
e.g.
UpdateContext({varRecord: Patch(varRecord, {Title: Text(Self.Text)})})
I have done this many times and have many apps that use this method at there core.
What I have found, it that in some apps, when I get Incompatible Type Error, there is nothing that I can do to get rid of it. I know that all of the data types are matching and if I use the same code and data in another app it works as intended. However if I copy controls over, or save it at something else or create a new copy based on an export/import it seems to follow.
Can someone point me at what to read to get a better understanding of why this happens? Its just happened to me again as I am nearing the end of the App and now I have to redo whole chunks of it using code I have used hundreds of times before with no issues.
Frustrated from the NHS