Account code is empty or invalid on confirmation of Purchase order how to resolve ?

 

Cause 

Item account determination not define properly

Solution

Define the Item account determination details properly the re enter the lines where the account in is not properly update or set as blank