[Failed order] subscription has a discount applied and the desired quantity is not within minimum and maximum allowed quantity
Original Publishing Date:
2023-08-22
Symptoms
Upgrade Licenses Change Order failed with the following error:
The order provisioning failed.
The last error is "Task "Delivering event 'Resource limits changed' for APS application inhouse-products(
https://inhouse-products:8081/rest)"
(id = 321815) is failed with error: "'500 Internal Server Error' received from 'POST
https://inhouse-products:8081/rest/tenant/04f806b8-8349-4502-abd4-da0ed7240524/onLimitChange':
Operation 'LIMIT_CHANGE' failed. Fulfillment Request 'PR-XXXX-XXXX-XXXX-XXX'. Reason: An error has occurred when changing base plan licenses: This subscription has a discount applied and the desired quantity is not within minimum and maximum allowed quantity..
Cause
The issue can be happened if additional licenses are purchased but promo limit has been exceeded.
In that case Change order has been blocked by Microsoft according to Microsoft implemented promotions: https://docs.microsoft.com/en-us/partner-center/new-commerce-promotions
Resolution
1. Check the PR status on the Connect side:

2. Please cancel current Change order if the same error appears on connect.
3. The only solution here is to buy a new subscription rather than upsizing the current one.