• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    InventoryError

    Contains possible error codes that can be returned from Inventory functions.

    Properties

    None

    number
    ServerOnly

    The Inventory function completed successfully.

    InternalError

    number
    ServerOnly

    A server error occurred.

    RequestThrottled

    number
    ServerOnly

    Your world is sending requests too frequently. The limit for GetItem is 60 + (active players * 10) requests per minute. The limit for GetItems is 10 + (active players * 5) requests per minute. The limit for CommitTransaction and RollbackTransaction together is 10 + (active players * 2) requests per minute.

    InvalidItemId

    number
    ServerOnly

    The item ID must be 128 characters or less.

    InvalidHolderId

    number
    ServerOnly

    The holder ID must be 128 characters or less.

    CursorInvalidLimit

    number
    ServerOnly

    The limit passed to GetItems must be 100 or less.

    CursorInvalid

    number
    ServerOnly

    The cursor ID passed to GetItems was not valid.

    TransactionError

    number
    ServerOnly

    The InventoryTransaction passed to CommitTransaction contained actions that could not be performed, such as using Take to remove more items than a player owns.

    TooManyActions

    number
    ServerOnly

    The InventoryTransaction passed to CommitTransaction must contain 32 or fewer actions.

    NoActions

    number
    ServerOnly

    The InventoryTransaction passed to CommitTransaction did not contain any actions. You must call at least one of the functions of InventoryTransaction before calling CommitTransaction.

    UnknownError

    number
    ServerOnly

    An unexpected error occurred.

    Timeout

    number
    ServerOnly

    A response from the server was not received within the time limit.

    Updated 5 months ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.