In this code
Creating a new record in the entity DierEvent Powerapps accepts EhTest in the last line, declared like this
If I put ThisItem.Eenheid directly
PA goes all red curlies on me while above the same value IS accepted in the collection DitDierEvents which is based upon the same table
I am trembling with excitement to get explained how this is logical 🙂
It was a variable type mismatch error. But after closing the session and restarting it, it is gone. This variable, and the field in the entity, and the filed in the collection have never been anything but text.
I often have errors that will not go away until all is closed and opened again, while is the code is correct.
Rerunning on app start will not work.
And the error often does not occur from running the program but just from changing a line after which changing the line back does not correct the errors. So the simple undo button restores yout code to the point without errors but still the errors persist. And the line you change can have nothing to do with the code that goes wrong.
Makes debugging a nightmare because after wondering and searching what is wrong realising this might be the problem you loose another minute restarting the edit session.
Sometimes a lot of error occurs due to caching. It is a good practice to start a fresh session and always have the latest version of browser. If you feel a little inactivity or lag, you need to close the browser and open a fresh session. This solves the issue half of the time.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.