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 " Expected ObjNu...
Power Apps
Unanswered

Error " Expected ObjNull value " on Tablist in a Component

(0) ShareShare
ReportReport
Posted on by 36

I am attempting to build a Header component with a Tablist on it and i created 3 custom properties:

 

TablistItems: an input data table provide the name of the screens; 

DefaultSelectedItems: an input data record provides the default selected screen; 

OnSelect: event to control the clicking; 

 

App.OnStart : define a table as the screens list for the current APP:

Set (gblPageList, ["S1", "S2", "S3" ]);

save the app and restart to make sure the variable declared. 

 

I d like to use this variable for tablistItems, and the 1st record of it on DefaultSelectedItems -- which worked when i use the tablist outside of a component. ( one screen only but several containers visible or not according to the selected item in a tablist, it worked with a bad performance)  -- but failed on both:

MiaSunny_1-1718636517206.png

 

both of the custom properties show the same error: 

MiaSunny_0-1718635887432.png

MiaSunny_2-1718636735695.png

I tried another way on building the header component by adding buttons for page navigation but the count of the buttons could be different among APPs, i am wondering if tablist could help with the dynamic page switching function. 

Categories:
I have the same question (0)
  • rzuber Profile Picture
    552 Moderator on at

    @MiaSunny Can you post screenshots of the definitions of the two properties in question?

  • MiaSunny Profile Picture
    36 on at

    Sure, thank you for looking into this, here are they: 

    MiaSunny_2-1718638993311.png

     

    MiaSunny_1-1718638964427.png

    And the varTablist as below: 

    MiaSunny_3-1718639163465.png

    Should the "Access app scope" turned on or off? i tried both bud didn't help with my issue so just keep the default off.  

  • rzuber Profile Picture
    552 Moderator on at

    I think you need to enable Access app scope.

     

    You might need to delete and recreate the properties after that, as well.. but I think the app needs access to the app's scope to be able to see the variable you set in OnStart.

     

    [edit] on second thought.. The component shouldn't need access to the app scope since you are passing the variable via the input property.

     

    Try deleting the properties and re-adding them?

  • MiaSunny Profile Picture
    36 on at

    I add 2 new custom properties without deleting the existing 2: 

    MiaSunny_3-1718643667017.png

    But the old 2 properties disappeared on Screen mode: (could see them from the left property list)

    MiaSunny_5-1718643906193.png

     

    The default value are based on the samples on Component editing: 

    MiaSunny_1-1718643639216.png

    MiaSunny_0-1718643615628.png

    and it expects the sample data on Screen mode: 

    MiaSunny_4-1718643880256.png

    I am wondering if i should provide samples in both properties -- I removed them last time so it expects nulls? 

    or what should be put here?

     

    Thank you! 

     

  • rzuber Profile Picture
    552 Moderator on at

    You should set them both to the structure you expect. That also sets the default value when you add it to your app.

     

    I am not sure why you are getting the objNull error.. I'm hoping an expert will take a peek in here and enlighten us.😁

  • MiaSunny Profile Picture
    36 on at

    @BCBuizer I believe this expert knows it well and wish we could get some help: 

    MiaSunny_0-1718649828914.png

    I tried all the other settings except the "Items" for the component --since i have a variable varTableList feeding the data not hard coded-- and get an error on the last step: 

    MiaSunny_1-1718649929621.png

    MiaSunny_2-1718650015444.png

    Thank you for reading this and hope we could figure out soon! 

     

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @MiaSunny ,

     

    As you suggested, try replacing the sample with the actual data. If that doesn't help, please share the formula you are using for the HeaderTL.TLonselect property.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard