Sage 100 Rebuild Key Files: IM_ItemCustomerHistoryByPeriod Fails the Verification Test
IM_ItemCustomerHistoryByPeriod rebuilds cleanly but always fails the Rebuild Key Files verification read test with Error #11. No confirmed fix is published — here is what is known and how to proceed safely.
Full error text:
IM_ItemCustomerHistoryByPeriod.M4T The read test failed. Error #11: Record not found or Duplicate key on write
You are preparing an older Sage 100 database for migration — in the reported case, Sage 100 4.50 data on its way to Sage 2018. Every file rebuilds and optimizes cleanly except this one Inventory Management history file. It rebuilds without a single error, yet it fails the Rebuild Key Files verification test every time. Run the rebuild with the verification test unchecked and the result reads: all records recovered, keys compared between the old and new file, no discrepancies found. Sage 100 itself generates no errors, and the failure survives data conversion unchanged.
This problem has no confirmed published resolution. Sage Support had no explanation for it in the reported case — one support individual suggested ignoring it — and no forum reply, Knowledgebase article, or consultant write-up we can find documents a fix. This page tells you what is actually known, why the practical risk is lower than the message makes it feel, and the checks to run before you decide how to proceed. Anyone who sells you a certain cure for this exact verification failure is guessing.
What is known
- Error #11, in the message's own words, is "Record not found or Duplicate key on write." That is all the message itself establishes: a record was not found, or a write hit a duplicate key. Broader lists of possible causes sometimes attached to this error number are unconfirmed for this case — treat the message as a symptom, not a diagnosis of this file.
- The rebuild disagrees with the verification test. With verification on, the read test fails with Error #11. With it off, the rebuild reports every record recovered and no key discrepancies between the old and new files. Both results come from the same utility on the same data, which is precisely what makes this case strange — and why it stayed unexplained.
- The file is derived history, not a source of truth. IM_ItemCustomerHistoryByPeriod holds customer item sales history by period. Files of this type are regenerated from Accounts Receivable invoice history — a partner utility (DSD's IMFX) exists specifically to rebuild this file, along with the other sales history files, from AR_InvoiceHistoryHeader and AR_InvoiceHistoryDetail. A defect confined to this file does not put your invoices, orders, or inventory quantities at risk in the way the same message on a transaction file would.
- Life went on in the reported case. The site completed the migration and converted the data from 4.50 to version 6.00 (2018) with the failure in place. Sage 100 produced no operational errors afterward. The verification test still failed on the converted data — proceeding did not fix it, and not proceeding was not shown to be necessary either. That is one site's outcome, reported honestly; it is not a guarantee about yours.
What to check before you proceed
These are diagnostic steps, labelled for what they are — none is a documented fix:
- Back up first, and work in a test company. Rebuild Key Files work is never done on the only copy of live data. Establish whether the failure reproduces identically in the copy.
- Record the baseline. Note the file's record count in Data File Display and Maintenance, and save the exact verification output, before and after a rebuild. If the count and the "all records recovered / no discrepancies" result are stable across rebuilds, you have evidence the rebuild itself is finding nothing to lose.
- Spot-check the history against its source. Pick a sample of items and periods and compare the customer sales history (inquiries/reports fed by this file) against AR Invoice History for the same items and periods. Agreement is the strongest practical evidence that the file's contents are sound despite the test result.
- Weigh which file it is. The same verification failure on a transaction or master file — invoices, orders, item master — would be a stop-and-escalate event. On a derived history file that can be regenerated from invoice history, the risk calculus is genuinely different, and it is reasonable to document the finding and proceed, as the reported site did.
- Escalate with the full picture if you escalate. Give Sage Support the file name, the exact verification output, both version numbers (source and converted), the rebuild-without-verification output, and your history spot-check results — and ask for the case to go past first-line support, which had no answer in the reported case. A Sage partner also has the option of rebuilding the sales history files from AR invoice history with a tool built for that purpose, if the history itself ever does prove wrong.
What doesn't work
- Rebuilding again. The file rebuilds and optimizes without errors every time; the verification test still fails afterward. Repetition changes nothing.
- Converting the data. The failure carried through the 4.50 to 6.00 conversion untouched. A version upgrade is not a remedy for this.
- Deleting, recreating, or hand-editing the file on the strength of the message alone. No source documents any of these as a remedy for this symptom, and the data at stake is your sales history. Do not improvise on a live file because a test result is unexplained.
Affected versions
Reported on Sage 100 4.50 data during pre-migration rebuilds for an upgrade to Sage 2018, and persisting after conversion to version 6.00. It is not confirmed on any other version, and there is no evidence tying it specifically to either the old or the new release — it travelled with the data.
Prevention / best practice
- Run Rebuild Key Files with verification before migration day, in a test copy, with time in the schedule for surprises. A strange result found a week early is an inconvenience; the same result found during the cutover is a crisis.
- Keep the rebuild logs. The pair of outputs — verification failure alongside a clean no-discrepancy rebuild — is the evidence any escalation will ask for.
- Know which of your files are derived. History-by-period files can be regenerated from invoice history; transaction files cannot be regenerated from anything. Triage rebuild problems in that order.
Related help
- Sage 100 System Error Code 193
- Performance Issues After Upgrade from Standard 2018 to Premium 2019
- Inventory Value with Zero Quantity
- Link Maintenance Painfully Slow
- Line Items Disappear Randomly
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.