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 Platform Community / Forums / Power Apps / Error to Run OnStart
Power Apps
Answered

Error to Run OnStart

(1) ShareShare
ReportReport
Posted on by 24

Hello Everyone,

 

I am trying to create an and I tried to run this:

OnStart=

 

 

ClearCollect(
 colTabs;
 {
 ID: 1;
 Name: "Historico";
 Logo: Icon.AddLibrary
 };
 {
 ID:2;
 Name: "Agendamento";
 Logo: Icon.Add
 };
 {
 ID: 3;
 Name: "CheckIn";
 Logo: Icon.CheckBadge
 }
);
Set(varTabSelected;1);

 

 

 

If I only try to create the collection, it works fine, If I try the setter, it also goes well, but if I try both, I get an error.

 

Screenshot 2022-03-10 144000.png

 

(BTW, I am from Brazil, the Portuguese version, you use ";" instead of "," .

 

I was wondering if anyone has faced something like this and if it's easy to fix.

 

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi @IceBerg 

     

    Is it not Double ;; to end a statement - I think you need to replace at the end:

    );;

    Set(varTabSelected;1);

  • IceBerg Profile Picture
    24 on at

    );; Set(varTabSelected;1)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard