"Item Ledger Entry Entry No. '0' does not exist

When I post Purchase Invoice by get function Get receipts line , It shows error “Item Ledger Entry Entry No. ‘0’ does not exist” and I can’t post it Would you have any idea ?

Did someone modified the “quantity receipt (base)” field with external code without really posting a receipt?

Check the apply to entry no on the purchase invoice…and the corresponding item legder entry