Azure Service Bus
Created: Friday, August 30, 2024
Pricing tier: Premium
Zone Redundancy: Enabled
The topic has been working for multiple months at this point and today (13 May 2025, around 11:30 CEST) suddenly the client trying to connect to the topic started getting timeouts. We could not see any problems from the Service Bus or Topic pages in Azure Portal. To investigate further, we tried to make some changes to the topic, like adding a filter to the topic subscription. This caused the error:
Error: 400 Values are not in range of 0 - Int32.MaxValue, extentId: -1, offset: -1. TrackingId:df0082d5-922b-4940-b198-2e852e0965d5_G14, SystemTracker:sb-xxxx-:Topic:xxxx-schedule, Timestamp:2025-05-13T12:44:34
We could not find a solution for that, so we had to remove the topic. When we tried deleting the topic we got:
Deleting Service Bus topic xxxx Failed deleting Service Bus topic xxxx with error code: MessagingGatewayBadRequest and with message: SubCode=40000. Values are not in range of 0 - Int32.MaxValue, extentId: -1, offset: -1. TrackingId:bb782d15-5eb4-46a0-adca-dee34bb89d63_G2, SystemTracker:xxxx:Topic:xxxx, Timestamp:2025-05-13T13:24:21.
We had to create a new topic with the new name (with the new subscriptions and SAS Policies) and keep the old one since it was not possible to remove it.
What are these 400 and 40000 errors and what could cause them?