Hidden Roblox items break page loading functionality for specific categories

Reproduction Steps
Sort by Catalog - Roblox
(Creator: Roblox, Heads > Hair, Unavailable Item: Show, Sort: Recently Updated)

Expected Behavior
The pages should load as normal skipping all the hidden items that have been uploaded

Actual Behavior
Due to there being a bunch of hidden hair items uploaded recently by Roblox, it attempts to load those said items but can’t because they’re hidden and don’t show up on the catalog.
(Code by @ItsMuneeeb)

local CSP = CatalogSearchParams.new()
CSP.CreatorName = 'Roblox'
CSP.IncludeOffSale = true
CSP.SortType = Enum.CatalogSortType.RecentlyCreated
CSP.AssetTypes = {Enum.AvatarAssetType.HairAccessory}
CSP.Limit = 30


local Pages = game:GetService('AvatarEditorService'):SearchCatalog(CSP)

for i = 1,30 do
    print('Page ' .. i .. ' has ' .. #Pages:GetCurrentPage() .. ' items.')
    print('More pages available?', not Pages.IsFinished)
    Pages:AdvanceToNextPageAsync()
end
Page 1 has 5 items.
  More pages available? true
  Page 2 has 0 items.
  More pages available? true
  Page 3 has 0 items.
  More pages available? true
  Page 4 has 0 items.
  More pages available? true
  Page 5 has 0 items.
  More pages available? true
  Page 6 has 0 items.
  More pages available? true
  Page 7 has 0 items.
  More pages available? true
  Page 8 has 0 items.
  More pages available? true
  Page 9 has 0 items.
  More pages available? true
  Page 10 has 0 items.
  More pages available? true
  Page 11 has 0 items.
  More pages available? true
  Page 12 has 0 items.
  More pages available? true
  Page 13 has 0 items.
  More pages available? true
  Page 14 has 0 items.
  More pages available? true
  Page 15 has 0 items.
  More pages available? true
  Page 16 has 0 items.
  More pages available? true
  Page 17 has 0 items.
  More pages available? true
  Page 18 has 0 items.
  More pages available? true
  Page 19 has 0 items.
  More pages available? true
  Page 20 has 0 items.
  More pages available? true
  Page 21 has 16 items.
  More pages available? true
  Page 22 has 27 items.
  More pages available? true
  Page 23 has 25 items.
  More pages available? true
  Page 24 has 27 items.
  More pages available? true
  Page 25 has 30 items.
  More pages available? true
  Page 26 has 20 items.
  More pages available? true
  Page 27 has 26 items.
  More pages available? true
  Page 28 has 27 items.
  More pages available? true
  Page 29 has 30 items.
  More pages available? true

It returns a bunch of dead pages as the hidden items can’t be displayed.
(Using rblx .trade as an example, they keep track of hidden items and can prove that its said hidden items causing this)



After said items is when the pages stop loading which lines up with the hidden items roblox has uploaded.
Solution to this is to not count hidden items when loading pages as if there’s not enough items before said hidden items in order to scroll properly it will load completely empty unless you zoom in enough.

Issue Area: Roblox Application and Website (roblox.com) / Other
Issue Type: Other
Impact: High
Frequency: Constantly
Date First Experienced: A few months ago I don’t remember the exact date
Date Last Experienced: Current Date

3 Likes

Hi Alp, by hidden items do you mean offsale items? It seems that you are explicitly asking for Offsale items to be returned in this line here:

CSP.IncludeOffSale = true

Also, what does #Pages:GetCurrentPage() actually do? Does it return the count of the items in the current page or does it return the number of available (not offsale) items in the current page? Can you point me to the documentation in creator docs if it is a game-engine api?

Please be patient while we figure out what exactly is wrong here.

Thank you for your time.

1 Like

Hi Alp, we have identified the root cause and fixed the issue, please confirm if you can still reproduce the bug on your side, otherwise we can close out this issue? Once again, we thank you for your patience and taking the trouble to report this issue to us.

1 Like

Seems like its fixed for the hair category but it still occurs in other categories for example

replacing the line
CSP.AssetTypes = {Enum.AvatarAssetType.HairAccessory}

with

CSP.BundleTypes = {Enum.BundleType.BodyParts}

I would like to say that this isn’t something that happens to just specific categories, it has the potential to happen to every single sort if you meet the criteria for it. Basically whenever Roblox uploads a bunch of hidden items for a category then uploads a few non-hidden items, it fills the page with said hidden items. But because they’re meant to not show up, they show up as blanks which creates page loading issues.

Hi Alp, sorry for the inconvenience. We have fixed the issue in our systems that is causing this problem for you. You may still get back slightly less than the items you requested for but you should not be getting empty pages. Pls go ahead and verify this problem is fixed on your end and let us know if there are other issues.

1 Like

I do notice some pages that are slightly less than normal but I don’t see any empty pages, I think it’s fixed.