I have an app where my users recently started encountering errors with variables not properly displaying in labels. I was unable to replicate the error in the editor, but found that it was present when I loaded the published app in any web browser or when embedded in Teams. In order to get a better look at what was happening, I did a monitored session, but found that the code to set the variable OnSelect was indeed firing off as seen below:
{
"time": 1598383643072,
"category": "UserAction",
"name": "Select",
"logLevel": 2,
"data": {
"context": {
"entityName": "ListBox2",
"propertyName": "OnSelect",
"diagnosticContext": {
"formula": "Set(SelectedRequest, ListBox2.Selected.Request);"
}
}
},
"correlationId": "de57c7dc-7f27-4ba8-97f6-cb41e148077b28",
"controlName": "ListBox2",
"propertyName": "OnSelect",
"formulaData": {
"script": "Set(SelectedRequest, ListBox2.Selected.Request);"
}
}
The variable SelectedRequest, however, remains blank. I inspected the field where the variable should have shown up and found this error in my browser's console:
Because a cookie's SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which will prevent the cookie from being sent in a cross-site request in a future version of the browser. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.
Resolve this issue by updating the attributes of the cookie:
- Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.
- Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent in cross-site requests
- AFFECTED RESOURCES
6 cookies
2 requests
| ping?UA=0&cid=8d738ca7-c741-8d14-dad7-61296999d13e…dUeVWuWXWxrpRnhSxyBh8FTkWBo.&app=&_=1598383432790 |
| ping?UA=0&cid=8d738ca7-c741-8d14-dad7-61296999d13e…dUeVWuWXWxrpRnhSxyBh8FTkWBo.&app=&_=1598383432791 |
- Learn more: SameSite cookies explained
I tried to find answers as to how I could resolve this, as I believe it is what is preventing the live app from behaving as it does in the editor. However, I cannot find any documentation this error relating to PowerApps. Has anyone else run into a similar issue?