Sage 100: Visual Integrator Import Creates a New Sales Order for Every Line
Your Sage 100 Visual Integrator import splits every line onto its own sales order. The ChangeTo record is gone — here is how Next actually decides to start a new order.
You rebuilt a website-order import in Sage 100 2019 that worked for years in MAS 90 4.3. The CSV has one row per item, with the same customer repeated on every row. In MAS 90, the job watched the customer column with a ChangeTo record and started a new sales order only when the customer changed. In Sage 100 there is no ChangeTo record — and the import now creates a brand-new sales order number for every single row, each carrying the same customer number, with only the first order holding the bill-to and ship-to details.
Nothing is broken. Visual Integrator's rule for starting a new order changed shape, and once you know the rule, the fix is mechanical.
The fix
- Open the job in Visual Integrator > Main > Import Job Maintenance and, on the Data tab, set the Operation for SalesOrderNo to Next.
- Now audit every Header field whose Operation is Replace. This is the whole secret, straight from Sage KB 223924250030839: when a field uses Next, Visual Integrator tracks each header field set to Replace, and assigns the next number whenever any one of those header values changes in the source file. You do not get to choose which fields trigger a new order — they all do.
- Make every Replace header value identical on every row that belongs to the same order. Any difference — a different comment, a different ship-to field, anything — silently starts a new order.
- Remove the Order Date mapping. If the mapped date carries a time component, rows created seconds apart count as "changed" and split the order. Leave it unmapped and the order date defaults to the current date.
-
Check the quiet offenders. In the reported case, the Comment column (column 44 of the spreadsheet) sat on the header: if its text differed between rows of one order, it split the order. Either make it consistent across the order's rows or stop mapping it as a header Replace field. The same applies to any header field derived per-row; where a header value is not 100% consistent across an order's rows, derive it from a Temp field (see step 6) instead of mapping the raw column.
One honesty note on steps 4 and 5: in the documented case the poster tried exactly these two changes — removing the Order Date mapping and making the Comment column consistent — and reported that the splitting continued at that point. They are required hygiene under the header-Replace rule, not a stand-alone cure. The cure is completing the step 3 audit: finding every Replace header field whose value varies inside one order, and handling each one the way step 6 describes.
-
If no source column cleanly marks "new order starts here," add a Temp field as the controlled break key: Operation = Replace, Col/Pos = the source column whose change should start a new order (in the website file, the customer/order identifier in column 1), and Assign Temp On = Header Record. Sage's KB prescribes this same Temp-field remedy when a job has no Replace header fields at all — in that situation every line is treated as a new entry, because Next has nothing to trigger on. For header fields that are not 100% consistent across an order's rows, the documented discussion's expert route is the mirror image of the same idea: add Temp fields with Assign Temp On = Key Assigns Only, list each Temp field before the field that uses it (column order matters), and calculate the inconsistent header fields from those Temp fields so the value the job sees is identical for every row of the order.
- Sort the source file so all rows of one order are consecutive. Next logic is sequential; if two orders interleave, they will split.
- Test in a test company with a real run. Do not rely on the job's Test mode alone to prove Next behaviour.
Causes / why this happens
- The MAS 90 ChangeTo design no longer exists. In current Visual Integrator, header-break control is not a record type you configure — it is a side effect of the Replace operations on your header fields. A job rebuilt "the same way as MAS 90" therefore behaves completely differently.
- Inconsistent header data across an order's rows. The import is doing exactly what the rule says: any header change means a new order. Multi-row website exports are especially prone to this, because per-row fields (timestamps, comments, line-level notes mapped to the header) differ in ways that are invisible when you eyeball the file.
- Only the first row looks right because header data (bill-to, ship-to) is written when the order is created; the accidental extra orders created by later rows start life without that context, which is why they look empty next to the first.
Per-context variants
Legacy modules: the rule above is for Business Framework modules such as Sales Order. For legacy-module imports, Sage's KB requires separate header and detail lines in the source file, "Header Information Included in Detail Line" deselected on the Configuration tab, and both Header and Detail records defined on the Records tab; Next is then assigned to each header record.
Batch numbers: Next is reserved for numbers like order and invoice numbers. It cannot produce the next batch number — for that, set the batch field's operation to Assign and leave the default value blank.
What doesn't work
- Adding Conditions to the SalesOrderNo field. Tried in the reported case; conditions on the number field do not change the header-change rule that triggers Next.
- Removing the Order Date mapping and making the Comment column consistent, on their own. Also tried in the reported case; the poster reported the same splitting afterwards. Both checks belong in the audit, but neither replaces it — any other varying Replace header field will keep splitting the order.
- Hunting for the ChangeTo record. It is not hidden in another tab — the mechanism was replaced by header-Replace tracking. Rebuild the job around that rule instead.
- Assuming only the customer field matters. Customer number staying the same does not hold an order together if any other Replace header field changes. The trigger is any header field, not the one you care about.
Affected versions
Documented on Sage 100 2019, for a job migrated from MAS 90 4.3. The Next/Replace rule is Sage KB-documented behaviour for Visual Integrator in current Sage 100 generally, not a 2019 defect.
Prevention / best practice
- When migrating a MAS 90 VI job, list every header field and its operation before the first run, and check the source file for per-row differences in those exact columns.
- Keep a small test file — one order, three rows, deliberately identical header values — and prove the grouping in a test company before importing live orders.
- Put the break column first in your thinking: design the export so one column (customer or web order number) is the order key, keep it in a fixed column, and sort by it.
Related help
- Visual Integrator — Sales Order Import
- VI Import into AP Manual Check Entry — Suppress Nonexistent Invoices
- Run a Visual Integrator Job in a Cycle
- Include a Carriage Return in a Visual Integrator Job
- VI AR Cash Receipt Import Sample
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.