web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

On Start Error

(0) ShareShare
ReportReport
Posted on by 230

Hi All - 

 

I have recently started to get an error when my app loads (See screenshot attached). I have tried to trouble shoot but I am unsure of how to proceed. When I run the On Start command in edit mode the data properly loads into the collection without any issue. Only when I launch the app in Play mode do I receive the issue. Below is my On Start procedure. Thoughts? Screen Shot 2019-12-13 at 11.57.32 PM.png

 

Concurrent(
ClearCollect(
AllRAWDATA,
'[dbo].[Slow_Moving_Raw_Data]'
),
ClearCollect(
ColPlanReview,
'[dbo].[Slow_Moving_Raw_Data]'
),
Set(
varUser,
User().FullName
),
Set(
varUserEmail,
User().Email
),
Set(
varToday,
Text(
Today(),
DateTimeFormat.ShortDate,
"en-US"
)
),
Set(
varManagerName,
Office365Users.Manager(Text(Office365Users.MyProfile().Id)).DisplayName
),
Set(
varPeriod,
Text(
Today(),
"[$-en-US]mmmm - yy"
)
),
Set(
varAdmin,
Value(1)
)
)

Screen Shot 2019-12-13 at 11.57.32 PM.png
Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @tlevine 

    There's an issue at the 427th character in your code.  What happens if you remove this code block?  Does this issue go away?  If yes, then its the problematic code.

    Set(
    varPeriod,
    Text(
    Today(),
    "[$-en-US]mmmm - yy"
    )
    ),

     

    Also, you will want to change this code at the end of your block

    Value(1)

     

    Into this instead.

    1

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • tlevine Profile Picture
    230 on at

    Hi - thank you or the reply. I did remove the code but the issue still persists. Any other ideas I could try?

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @tlevine 

    The next step is ensure this advanced setting is turned off.  In previous forum posts it fixed the issue.

     

    pic1.PNG

     

    I am going to repost a formatted version of your code here to enhance readability for myself.  After doing some testing there appears to be nothing wrong with the SET variables.  The CLEARCOLLECT statements look fine so I'm wondering if toggling that advanced setting will fix the isuse.

    Concurrent(
     ClearCollect(
     AllRAWDATA,
     '[dbo].[Slow_Moving_Raw_Data]'
     ),
     ClearCollect(
     ColPlanReview,
     '[dbo].[Slow_Moving_Raw_Data]'
     ),
     Set(
     varUser,
     User().FullName
     ),
     Set(
     varUserEmail,
     User().Email
     ),
     Set(
     varToday,
     Text(Today(),DateTimeFormat.ShortDate,"en-US")
     ),
     Set(
     varManagerName,
     Office365Users.Manager(Text(Office365Users.MyProfile().Id)).DisplayName
     ),
     Set(
     varPeriod,
     Text(Today(),"[$-en-US]mmmm - yy")
     ),
     Set(
     varAdmin,
     1
     )
    )

     

    Let me know how it goes.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • tlevine Profile Picture
    230 on at

    That worked for me! What exactly does that setting do?

  • mdevaney Profile Picture
    29,991 Moderator on at

    @tlevine 

    Judging strictly from reading old forum posts the purpose of this setting is simply to break people's apps LOL. (That's a joke).

     

    I haven't got a hot clue what it does 😿 Perhaps @v-xida-msft can let us know the next time he is online.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard