Unable to post a Product receipt from a PO

you need to check Inventory Posting profile. Product Receipt account / product receipt offset account may miss

Inventory and Warehouse Management > Setup > Postings > Postings > Purchase Order Tab…