OBLYTECH Logo
OBLYTECH Logo

Data Load Batch Log Review After Each Import

Before any imported batch is reported as complete, review its success and error logs against the source file. Count the rows in the file, confirm that the success and error counts add up to that total, and read each error entry to decide whether it needs a correction and reload. Record the result against the load.

Why the log review belongs in the import routine

A load often looks finished once the process reports that it ended. That signal confirms the process ran, and nothing more. It does not show that each row in the source file reached the target object, or that the rows that did arrive carry the values the file intended. A short review after each batch closes that gap before the data reaches reports and the decisions people make from them.

Timing matters. When someone later finds a short report, tracing the cause means reconstructing which file, which run and which field mapping were used. A review on the day of the load keeps that trail short while the files are still at hand.

Sales teams that depend on imported opportunities often run a pipeline hygiene check before they trust the numbers. The batch log review does similar work one step earlier, at the point where the question is whether the rows arrived at all.

Gather the files and counts before you open the logs

Collect these four items first, so a second person can repeat the review and reach the same answer:

  • The source file exactly as it was submitted, with its file name and preparation date.
  • The success log for the batch.
  • The error log for the batch, including any rejected rows the tool wrote out separately.
  • The target object name and the version of the field mapping the load used.

Count the data rows in the source file, not the lines. A header row and blank lines at the end of a file change the total, so a raw line count will not match the rows the tool processed. Write the data row count at the top of your review notes, because each later comparison depends on it.

Match the success and error counts back to the source file

The rows in the success log plus the rows in the error log should equal the source row count. If they do not, some rows were neither accepted nor rejected in the logs, and the load should stay open until the gap is explained.

  1. Count the data rows in the success log, excluding the header.
  2. Count the data rows in the error log, excluding the header.
  3. Add the two totals and compare the sum with the source row count.
  4. If the sum is short, list the source identifiers and mark any that appear in neither log.
  5. If the sum is over, look for duplicate identifiers in the source, since a duplicated key can produce two success entries for one input row.

Suppose the source file has 1,000 data rows, the success log has 980 entries and the error log has 17. The sum is 997, so three rows are unaccounted for, and the load stays open until those three identifiers are found.

A matching total is necessary but not sufficient, because two errors can offset a duplicate. Spot-check a sample of successful rows against the target object. Pick rows from the start, middle and end of the file, since places where batches were split or resumed are where problems tend to collect.

Work through the error entries by cause

The error log is the part of the review that needs judgment. Group the entries by error message first. The grouping shows whether one problem repeats across many rows or several separate problems are present, and each group usually needs a different fix.

Validation failures

These are rows the target rejected because a value broke a rule on the object, such as a required field left blank or a value outside an allowed list. Correct the value in the source file, then reload the affected rows. Reloading the full file would duplicate the rows that already succeeded.

If the same validation error appears on rows whose values have not changed, check whether a validation rule on the object changed before editing the data. The admin release notes review is a reasonable place to look for that context. Editing good values to satisfy a changed rule creates a second problem later.

Lookup and parent record failures

These happen when a row points to a parent record that does not exist in the target, usually because the parent loads in a later batch or is identified by a different key. Load the parent first, or correct the identifier in the file, and then retry the affected rows.

Format and type failures

Dates in an unexpected order, amounts with currency symbols and text in numeric fields all produce this kind of error. If one pattern explains the first several failing values in a group, fix the pattern across the file rather than editing rows one at a time.

Rows the tool could not parse

Some rows fail before the tool reads any field, often because of an unescaped quotation mark, a stray delimiter or a line break inside a text field. Open the source in a plain text editor to see the raw row. Spreadsheet software can rewrap the content and hide the problem.

Decide what happens to each error group

Not all errors need a reload. Sort each group into one of three decisions:

  • Correct the source and reload the affected rows.
  • Leave the rows out because the target already holds the record and the error is a duplicate.
  • Exclude the rows on a business decision, which needs a named owner because excluding a row changes what reports show.

Keep each reload small. A reload limited to corrected rows leaves the first run’s successes intact and makes the second review easier to check. Record the identifiers of reloaded rows so the next review can tell them apart from first-time loads.

Common mismatches and what usually causes them

The same few patterns explain many gaps between a source file and the target. Check these first when the counts do not reconcile.

  • Duplicate identifiers in the source. The same key appears twice, and the tool accepts one row and rejects the other. Confirm which version is current before removing either.
  • Blank rows at the end of the file. Some tools count these as rows, which inflates the source total. Trim them and recount.
  • Partial reruns. A load was restarted from the beginning after part of it had already succeeded. Check for duplicates before treating the success count as final.

Record the outcome before reporting the load as complete

A load is complete when the counts reconcile, each error group has a recorded decision, and a sample of loaded rows has been checked in the target. A note that says the load succeeded, without numbers, cannot be checked later, and it is the note that gets read when a report looks wrong.

The load record should contain the source file name, received date and source row count, the success count, error count and reconciled total, each error group with its decision, and the sample of target records checked along with the person who checked them. For help planning this work, see Salesforce implementation.

Tell downstream users when a batch changes their numbers

A reconciled load can still change figures other people already use. Before reporting the batch as complete, list the reports and views that draw on the target object and note whether the batch adds, changes or removes records they depend on.

Leaders who rely on a pipeline forecast review built on imported records should hear about a reconciled batch before the next review meets. Support leads are in a similar position. If the batch adds cases, a missing batch appears as lower counts in a case aging report, and the team lead needs to know which dates the gap covers.

Questions about reviewing batch logs after an import

Should the review finish before anyone uses the imported data?

Yes. Hold the batch out of shared reporting until the counts reconcile. If someone has already used the data, record the batch identifier and the date the figures were shared, so the correction can be explained to the people who used them.

Who should sign off on the reconciliation?

The person who ran the load prepares the counts and error decisions. A second person checks the sample of target records and confirms the reconciled total. Where excluded rows affect a report, the owner of that data approves the exclusion before the batch is closed.

What if the error log is empty but the counts still disagree?

Treat the load as incomplete. An empty error log with a short total usually means some rows were skipped before validation, and the tool may write those to a separate output. Find the source identifiers that appear in neither log and explain them before closing the batch.

Does the same review apply to updates to existing records?

The counting steps apply without change. Add one check for updates, because a success entry shows that the update ran but not that the stored value matches the file. Compare the changed fields in a sample of target records with the source values.