Summary: Host-fed orders can process on the wrong profile when a profile-switch rule keyed on UDF fields does not match the values the host sends, or when the target profile is missing a carrier service. Check the UDF values against what the host sends, and confirm the service is turned on for the target profile.
Problem
Orders that come from a host integration (for example, scale-fed orders) processed on the wrong profile. Some carrier services then failed on the profile they switched to. In a related case, orders showed under the wrong profile on the Orders screen (for example, everything under the default Imported Orders profile) before they shipped.
Cause
Two things cause this. The profile-switch rule's UDF criteria must match the values the host sends in the order exactly, or a mismatch sends the order to the wrong profile. And the target profile must have every carrier service the orders use turned on, or a service fails after the switch. If a Shipstore update rolls back a fix to the switch, the wrong-profile behavior can come back until the fix is reapplied. Separately, when the profile is tied to one UDF (for example a warehouse-number field) and the incoming value does not match a mapped profile, the order falls back to the default profile, so it shows under the wrong profile on the Orders screen.
Fix
- Capture the host order for one mis-routed shipment and read the UDF values it sends (for example udf2 and udf5).
- Compare those values to your profile-switch rule criteria, and set the criteria to match the exact incoming values.
- Confirm the target profile has every carrier service the orders use turned on.
- Reprocess a test order for each carrier and confirm the correct profile and service.
To set the profile when the order first loads (so the Orders screen shows the right profile), add an Order rule on the Before Order Saves event that sets the profile from a UDF that carries the profile name (for example udf9). If the switch works on its own but breaks again after an update, email support@shipstore.com so the fix can be reapplied.
What you should see
A test order for each carrier lands on the right profile and returns a label, and new orders show under the correct profile on the Orders screen.
Related articles
- Run a profile-switch rule alongside another After Shipment Loads rule
- Business rules disappeared after an update: what to do