Issue
Inventory Organization wiped off from Payables Financial Options, and following error is thrown:
No primary key row found for value in organization_code
Root Cause of the Issue
Security Profile attached to Payables responsibility which is not configured to access a specific Inventory Organization
How to reproduce the issue?
Navigate to Payables Responsibility > Setup > Options > Financial Options
Solution
Solution 1
1. Navigate to System Administrator responsibility > Profile > System
2. Query profile 'HR: Security Profile' with the responsibility giving error
3. Delete the value at Responsibility level
4. Save your changes.
5. Now navigate back to Payables responsibility and the issue will not appear
Solution 2
Reconfigure Security Profile and make sure it has access setup for the inventory organization which has been attached at Payables Financial Options
Environment