Hi,
Can you share your sales line, on-hand inventory and location directives setup's screenshots?
Allocation failed means there is a problem in location directive setups.
Is the whole quantity of salesline available in a single location?
If not, have you ticked "Allow split" checkbox in location directive line? (Middle one)