Originally Magento CE 2.2.6
I have upgraded from Magento CE 2.2.6 to Magento CE 2.2.9
Procedure to reproduce this error
- Buy Simple Product that is tied to Configurable Products.
- Select the respective order from the order list.
- Click the Invoice button in the upper right corner of the order page.
- Create a shipping invoice at the same time on the invoices page.
- An invoice is created.
- Shipping invoice is created.
- Order Status is updated to "Complete"
- The invoice was not created.
- A shipping invoice was not created.
- The invoice page displays the error message "We cannot create an empty shipment.".
Results of the investigation
- Purchasing a Simple Product tied to a Configurable Product causes problems.
- If you purchase a Simple Product that is not tied to a Configurable Product, the process will succeed.
- This error does not depend on the payment method