Whenever you do Receiving inventory transactions, you often get errors if your Inventory/ purchasing/ GL periods are not open.
Here is the navigation where you can setup the periods for your material receipts:
1. Ensure that the GL Period has Status=Open:
Setup > Financial > Accounting > Open and Close periods
-OR-
Setup > Open and Close periods
