Scenario
One World accounts have the privilege to have multiple locations on different subsidiaries. Hence, the Site Builder/ SuiteCommerce Advanced web stores should be properly set up for the items to render properly.
Here are the settings to check to resolve "Invalid location key x(location internal id) for subsidiary x(subsidiary internal id)".
Solution
1. Subsidiary setup
1. Navigate to Setup > Company > Subsidiaries
2. Edit the record of the referred subsidiary(refer to the internal id from the error)
3. Subsidiary is Inactive = F
5. Click Save
2. Location should be associated to the Subsidiary
1. Navigate to Setup > Company > Locations
2. Edit the record of the referred location(refer to the internal id from the error)
3. Subsidiary field should match the subsidiary referred from the error
3. Location is Inactive = F
4. Make Inventory Available = T
5. Click Save
3. Accounting Preferences should not be associated to specific subsidiary
1. Navigate to Setup > Accounting > Accounting Preferences > Order Management > Default Location for Sales Order field(leave it blank)
2. Click Save
4. Website shopping should not have a Default Shipping Country
1. Navigate to Commerce > Websites > Website List > Edit website > Shopping subtab > Default Shipping Country field (leave it blank)
2. Click Save
5. Associate Item to the subsidiary
1. Navigate to List > Accounting > Items
2. Edit the Item record
3. Under the Classification section, select the referred Subsidiary from the list(subsidiary should match the webstore subsidiary)
4. Click Save
6. Website setting for specific subsidiary
1. Navigate to Commerce > Websites > Website List > Edit website
2. On the Setup subtab, scroll down to the list of Subsidiary
3. On the line record of the referred Subsidiary, set the following fields
Default = T
Online = T
4. Click Save
Disclaimer
Disclaimer: Please be advised that the solution provided is on an "as is" basis without warranty of any kind. We recommend you to be wary of the customizations that you have on your account before applying the said solution as NetSuite shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code. We recommend keeping a backup of your current files as you perform the said changes.