Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (*)
When running
![image](https://private-user-images.githubusercontent.com/6369163/283422197-ed5e664e-3177-4b90-a93f-f9db30b7c4fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzcyNzksIm5iZiI6MTczODk3Njk3OSwicGF0aCI6Ii82MzY5MTYzLzI4MzQyMjE5Ny1lZDVlNjY0ZS0zMTc3LTRiOTAtYTkzZi1mOWRiMzBiN2M0ZmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDEwOTM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTQzZTA3MDFiMTJjNDcwYzBjZjg4MjNkMmFhMDQzOGIzYzFkYjcyNmRhNWJkZDE5Y2Q1N2QyOGVjODE2NzJkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Y9jXg0I8QyflXkZeNVMVGHPzgIo13xCLakF5JqYlwBs)
![image](https://private-user-images.githubusercontent.com/6369163/283422291-c84179e1-f0e2-41b7-bc7c-7e8bd8d04a2a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NzcyNzksIm5iZiI6MTczODk3Njk3OSwicGF0aCI6Ii82MzY5MTYzLzI4MzQyMjI5MS1jODQxNzllMS1mMGUyLTQxYjctYmM3Yy03ZThiZDhkMDRhMmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMDEwOTM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzYyNTM3NjliZTI1ZTkxYjg2YTc1YzRkZmYxOTZlYTJiYWU0NTgwN2ZhYWVkNWE2ZTUyNGQ1OGNhYWM5ZjYxZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QdeNLPuSHmfyq0tHTfdxP1j7utVa9SHZys4OR8-HDWw)
bin/magento inventory:reservation:create-compensations
if the sku contains ':' the regex breaks, and then the entities can't be loaded.BEFORE
AFTER FIX
Fixed Issues (if relevant)
Manual testing scenarios (*)
This is difficult as it requires you to have a reservation inconsistency for a product with a sku with a ';' in it. But if this is the case simply run:
php bin/magento inventory:reservation:create-compensations
(with the compensation string)
You will get error like: "Get EntityId on null"
Questions or comments
Contribution checklist (*)