:GetInventory() missing a handful of items

I’m trying to use GetInventory to get all items from my inventory, however it misses some items


image
As you can see, it seems to stop at Man Face and not get the other faces

And it does print all items


but searching shows stuff missing

Theres nothing in the loop to break/return

local Inventory = AvatarEditorService:GetInventory(AllEnums)

while not Inventory.IsFinished do
    local CurrentPage = Inventory:GetCurrentPage()
    print(CurrentPage, itemInfo.AssetId, itemInfo.Name)

    if Inventory.IsFinished then
        break
    end

    local NextPage = pcall(function()
        Inventory:AdvanceToNextPageAsync()
    end)

    if not NextPage then
        break
    end

    task.wait()
end
1 Like

Maybe try returning the next page in your NextPage pcall function.
It is probably not providing any output to the pcall wrap, and not populating NextPage.

This will cause an immediate break.