Hi @v-xida-msft
I tried the suggestions you made and you can see subsequent issues I have had.
I was rebuilding my app yesterday and all was fine, until I made a simple change today.
So, I have a button OnSelect action which does this:
Navigate(IssueDetails, ScreenTransition.Fade,
{params:
{ShowValidationOnStart: true,
ShowReview: false,
ShowReturnToList: false,
Issue:
{ARR: 0,
ClosedDate: DateTimeValue("01/01/2019"),
Hotfix: false,
ID: -1,
Requester: varCurrentUserDisplayName,
Title: "",
ScopeId: -1}
}
}
)
In the IssueDetails screen, I have this (amongst others):
UpdateContext({issue: params.Issue});
I then changed the button OnSelect, setting ShowValidationOnStart: false
Revised code is:
Navigate(IssueDetails, ScreenTransition.Fade,
{params:
{ShowValidationOnStart: false,
ShowReview: false,
ShowReturnToList: false,
Issue:
{ARR: 0,
ClosedDate: DateTimeValue("01/01/2019"),
Hotfix: false,
ID: -1,
Requester: varCurrentUserDisplayName,
Title: "",
ScopeId: -1}
}
}
)
When I did that, I get "incompatible type" errors for the Issue record, though I have changed nothing there (nor with the other data types in the params record).
This seems almost arbitrary in its nature. I could load the app again and the problem goes away (but it isn't at the moment). I have tried refreshing with CTRL-F5 etc. No joy.
I am struggling to see what I am doing wrong my end and wonder whether this is wrongly created data type errors and then caching that. I have no idea.
But it is making PowerApps impossible to work with.