Announcements
I was working on this Power App to create a sketchbook and gallery based on this youtube video https://www.youtube.com/watch?v=vTYpcCQorRY. I am following it step by step. The Set(n,0) was working yesterday without errors but today it says it is incorrect. Then the bgcolor isn't working but it worked for her. I don't understand what the error is. Maybe it is a bug? does anyone know what's going on. I am following every step to the letter yet it is failing me but works for her.
Hello @TheFlowState ,
Try to find the another Set(n) for this variable, probally in another screen / control, you are trying to put an different type of data inside this variable, for example: if you start the variable as a whole number, and try to put a string or date in other instance, you face this issue that you show here.
-------------------------------------------------------------------
If my reply helped you, please give a 👍If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it.
What is the error message that you are getting when you hover over the code in the editor? What error is showing in the App checker?
You have your code in the StartScreen property. Did you mean to put it in the OnStart property?
I'm not a coder. I didn't understand what you said. I'm following exactly what she is doing and it was working just fine yesterday.
This is the n value
You need to move this entire code to OnStart property like @JasonWS saids.
Just to know "StartScreen" it is the name of the screen that you wanted to start your application,
and "OnStart" it's an event that happens every time your application started.
Thanks for the help.
You should also check that running OnStart is enabled in the settings. It is enabled by default anymore. If not enabled the code won't run when you start the app.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 221 Super User 2026 Season 2
WarrenBelz 188 Most Valuable Professional
Mohsin Ali 120