Sage 100 Visual Integrator Sales Order Import Takes Some Orders and Rejects the Rest
A Sage 100 Visual Integrator sales order import that takes some orders and rejects identical ones has three usual causes — a combined division/customer number, items missing from inventory, and order numbers already written by an earlier run. Here is the fix for each.
You run one Visual Integrator import containing several sales orders. Some import cleanly and others error out, even though the orders look identical — in the reported case they were the same order split by store, differing only in comment and sales order number. Reloading the exact same CSV makes it worse in a confusing way: a different set of orders imports, and lines that succeeded the first time now fail. Single orders through the same job work fine, and letting Sage assign the next order number works fine — the failures start when the job uses Replace to take the sales order number from the source file.
This is not random behaviour. In the documented case there were three separate causes stacked on top of each other, and the import only ran clean once all three were fixed.
The fix
- Split the division out of the customer number. If your source file carries the customer as one combined value (division + customer number, e.g. a "10" prefix), the import will misread it. Visual Integrator is not data entry: the AR division is specified in its own field, and the CustomerNo field must contain only the customer number. Map the division to its own column/field, and if you cannot change the source file, use a substring operation on the customer field to strip the division characters off inside the job.
- Set up every item in Inventory Management before you import. Any line whose item code does not exist in inventory fails validation. Check the job log, list every item the import references, and confirm each one exists as an item — not just the items on the orders that failed today, because the next file will exercise the rest.
- Never re-run a partially successful import with the same sales order numbers. This is the cause that makes the symptom look random. The first run wrote the successful orders to file, so those sales order numbers now exist. The second run correctly rejects them as duplicates — including orders you watched it accept an hour ago. Before re-running, identify which orders the earlier runs actually created, remove them from the re-run file (or delete/void the created orders if they should not exist), and give the remaining orders fresh, unused sales order numbers.
When the reporting site corrected all three — division separated from the customer number, all items set up in inventory, and no reused order numbers — the import ran completely and the problem was closed.
Options and approaches
Replace versus Next for the sales order number
Replace is the right operation when the source system owns the order numbers and you need Sage to carry the same numbers — that was the requirement in this case. Next is simpler and avoids the duplicate-number trap entirely, because Sage assigns fresh numbers itself; use it whenever nothing downstream depends on the source system's numbering. What you cannot do is mix the two approaches across re-runs of the same file and expect consistent results.
Fixing the file versus fixing the job
If the source file comes from another system on a schedule, fix the job, not each file: a substring on the customer field and a separate division mapping survive every future export. If the file is a one-off, cleaning the file itself is faster. Either way, the inventory setup and the no-reused-numbers rule are not optional.
What doesn't work
- Fixing only the customer number. In the documented case, removing the division prefix and re-running produced exactly the same errors — the missing inventory items and the already-written order numbers were still in play. A partial fix looks like no fix.
- Re-running the same CSV to "try again." Every run writes more order numbers to file and changes which records fail next time. It actively makes diagnosis harder.
- Assuming identical orders must behave identically. The orders differed in the one field that mattered — the sales order number — because earlier runs had already consumed some of those numbers.
Affected versions
The thread does not name a version (it is a MAS 90/200-era Visual Integrator job), and none of the three causes is a version defect — they are source-file and job-design issues that apply to Visual Integrator sales order imports generally.
Prevention / best practice
- Run a new or changed VI job in a test company first, and read the job log after every run — the log names the failing records; guessing from the import count wastes runs.
- Treat a partial import as a state change, not a free retry: record which orders were created before you touch the file again.
- Validate the source file against Sage before the job runs: division and customer number as separate values, every item code on file, every order number unused.
- Keep the job's field mapping documented. This job was inherited from a reseller build, and the behaviour difference between Next and Replace cost the site days because nobody had the design notes.
Related help
- Visual Integrator Import Issue
- VI Import into AP Manual Check Entry: Suppress Nonexistent Invoices
- Importing a Sales Order with an Existing Pre-Auth
- Run a Visual Integrator Job in a Cycle
- Include a Carriage Return in a Visual Integrator Job
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.