| "Agreement type X does not support Y scope" | Scope type is incompatible with the account's agreement type. | Use a compatible scope. EA accounts cannot use Invoice Section scope; MOSP accounts cannot use Department scope. |
| "Dimension Z is not valid for scope" | The requested dimension is not available for the current scope and agreement type combination. | Check dimensions-by-scope.md for valid dimensions. |
| "SubscriptionName filter without SubscriptionId" | EA + Management Group scope: filtering by SubscriptionName without also filtering by SubscriptionId. | Add a SubscriptionId filter alongside the SubscriptionName filter. See guardrails.md. |
| Date range exceeds granularity limit | Daily range > 31 days or Monthly/None range > 12 months. | System auto-truncates from date. To avoid silent truncation, ensure range is within limits. |
| Date range exceeds absolute limit (37 months) | from to to spans more than 37 months. | Reduce the date range to 37 months or less. Split into multiple queries if needed. |
| "Request body is null or invalid" | Missing or malformed JSON in the request body. | Validate JSON syntax. Ensure type, timeframe, and dataset fields are present. |
| Invalid filter structure | and/or has fewer than 2 child expressions, or not has more than 1. | Ensure and/or contain 2+ children. Use not with exactly 1 child. For single conditions, use the filter directly without a logical wrapper. |
| "The query usage is not supported for the scope" | The query type (e.g., AmortizedCost) is not supported at the given scope. | Try a different scope or query type. Not all scopes support all report types. |
BillingSubscriptionNotFound | The subscription ID in the scope URL is invalid or not associated with the billing account. | Verify the subscription ID exists and is active. Check that it belongs to the expected billing account. |