Automatic Location Assignment Rules

Automatic location assignment rules determine the way in which the engine assigns locations to lines in a sales order. You create rules in a configuration. You must create at least one rule. Rules are exclusive to the configuration in which they are created. The rules in a configuration can be used as both ordinary rules and backorder rules. See Backorder Rules for more information.

There are two aspects about rules that affect how NetSuite assigns locations automatically: the sequence of the rules and the attributes of the rules.

If a configuration has multiple rules, they are evaluated from top to bottom in the specified order in the sequence (called the evaluation order). If all the lines in a sales order have a location after a particular rule has been evaluated, all subsequent rules in the sequence are skipped. You can specify the evaluation order of rules when editing the configuration – see Automatic Location Assignment Configurations. The evaluation order you choose will depend on the characteristics of your business, such as inventory levels at locations, how you want to optimize fulfillment, your choice of shipping carriers, and the criteria of the rules themselves.

A rule can be more restrictive or less restrictive depending on the criteria you specify in the rule. Typically, the more criteria you specify, the more restrictive the rule. Add a more restrictive rule before a less restrictive rule in the evaluation order when you have particular fulfillment requirements for items, for example, when you want to ship heavy items from specially equipped warehouses. Conversely, by adding a less restrictive rule before a more restrictive rule, it is likely that a higher percentage of sales order lines are assigned a fulfillment location before all the rules are evaluated.

The attributes of a rule determine the criteria by which locations are assigned. As the automatic location assignment engine checks each attribute, the list of possible fulfillment locations is narrowed down until the ideal fulfillment location is selected.

You can define rules according to the following criteria:

To create a rule:

  1. Go to Setup > Order Management > Configurations and click Edit next to the configuration in which you want to create a rule.

  2. Select the Rules subtab.

  3. Click the New Rule button.

    To edit a rule, click the rule name and then click the Open button Open button next to it.

  4. Enter a name to identify the rule.

  5. Under Line Items, choose how the rule applies to line items: all line items or line items that match criteria in a saved search – see Limiting Rules to Specific Line Items.

  6. Under Locations, choose how to narrow down locations in the rule: by location type, by a pre-defined set of locations, or by distance from the shipping address – see Specifying Location Criteria in a Rule.

  7. Under Strategies, choose fulfillment strategies for the rule – see Choosing a Fulfillment Strategy for more information.

    • To use as few locations as possible in the sales order, check the Minimize Fulfillment Locations box.

    • Select an optimal fulfillment strategy: closest location, highest ranked location, or fulfillment workload distribution.

  8. Click Save.

After you set up rules, make sure the automatic location assignment process is running. See Running Automation.

To edit a rule, open the configuration in which the rule is defined, select the Rules tab, and then open the rule from the list of rules displayed. To remove a rule from a configuration, click the Remove button Remove button on the rule line in the configuration.

How Locations Are Assigned with Rules

Here is an overview of the steps performed by the automatic location assignment engine when evaluating rules in a configuration:

  1. Selects only the locations that can ship to the region in which the shipping address is located.

    If there are multiple shipping addresses in a sales order, the engine evaluates the automatic location assignment rules for each shipping address separately. To use multiple shipping addresses, the Multiple Shipping Routes feature must be enabled – see Multiple Shipping Routes.

  2. Selects only the locations that have inventory.

  3. Selects all locations that match the specified location types. For example, if you have both store and warehouse locations and the location type in the rule is ‘warehouse’, the engine will only consider locations whose type is ‘warehouse’.

  4. Selects locations that are within the specified radius around the shipping address. To select locations by radius, the shipping address must have a postal code, and the location must have either a postal code or latitude and longitude coordinates.

  5. Selects locations based on the minimize fulfillment locations strategy.

  6. Selects locations based on the optimal fulfillment location strategy . If the optimal fulfillment location is set to Closest Location, the shipping address must have a postal code, and the location must have either a postal code or latitude and longitude coordinates.

  7. If there are still lines in the sales order that have an empty location, the engine goes to the next rule in the configuration and selects locations according to the rule attributes.

  8. If all rules have been evaluated and there are backorder rules, the engine evaluates the backorder rules in sequence from top to bottom.

If all rules have been evaluated and there are still lines in the sales order with an empty location, you need to assign locations manually or backorder items.

Reasons Why Locations Might Not Be Assigned Automatically

Sometimes, a location that you expected to be assigned is not in fact assigned to a sales order line. There are a number of reasons why this might happen. Here are some of the most common things you can check to determine why a location was or was not assigned:

Related Topics

Backorder Rules
Choosing a Fulfillment Strategy
Backorder Rules
Automatic Location Assignment Configurations
Limiting Rules to Specific Line Items
Specifying Location Criteria in a Rule
Choosing a Fulfillment Strategy
Running Automation
Multiple Shipping Routes
Configuring Items for Automatic Location Assignment
Configuration Examples

General Notices