Hello,
You can check inventory-setup-posting-posting and there the purchase tab.
In the purchase tab you will find a section that allows you identifying the ledger accounts that are used for purchase expenditure postings.
Click on the respective radio button and check whether an account has been setup there for your item/procurement category/item group...
Best regards,
Ludwig