In checkout page when we click on place order it will show above error form this solution we can resolve this issue and successfully place order.
- Navigate to Setup > Accounting > Accounting Preferences > Order Management tab

- In the Default Location for Sales Orders field, select the blank option.

- Save