What Does Data Discrepancy Mean? Definition and Examples
In this article
- Typical Causes of Data Discrepancy
- How to Detect Data Discrepancy
- Common Tools for Reconciling Data
- Step‑by‑Step Process to Resolve a Data Discrepancy
- Preventing Future Data Discrepancies
- Impact of Data Discrepancy on Decision Making
- Worked Example: Reconciling Monthly Sales Figures
- When to Escalate a Data Discrepancy
Data discrepancy is a mismatch between two or more data sets that should be identical or consistent. It occurs when recorded values differ beyond an acceptable tolerance, such as a 0.1% variance in financial totals. Real‑world usage: a retailer discovers a sales‑report discrepancy when the point‑of‑sale total shows $12,345.67 but the accounting ledger records $12,340.00, indicating a $5.67 gap that must be investigated.
Typical Causes of Data Discrepancy
Human entry error is the most frequent cause; a misplaced decimal point can change $1,200 into $12,00, creating a 99.9% error instantly. System integration problems generate mismatches when field mappings differ, for example, one system stores dates as MM/DD/YYYY while another expects DD/MM/YYYY, leading to swapped day and month values. Data decay, where outdated records remain unchanged while related tables are updated, creates stale‑vs‑current conflicts, often seen in inventory counts after a stock‑take.
To decide whether a mismatch is significant, compare the absolute difference to a predefined tolerance. If the difference exceeds 0.5% of the larger value, flag it for review; otherwise, treat it as noise. For financial data, many organizations set a tolerance of $0.01 for currency fields because rounding errors larger than a cent affect audit trails.
How to Detect Data Discrepancy
Start with a reconciliation query that joins the two sources on a common key and calculates the difference. Example SQL snippet:SELECT a.id, a.amount AS source_a, b.amount AS source_b, a.amount - b.amount AS diff FROM source_a a JOIN source_b b ON a.id = b.id WHERE ABS(a.amount - b.amount) > 0.01;
Run the query on a test copy of the database first to avoid performance impact on production. Schedule the query to run nightly at 02:00 AM when system load is low, storing results in a discrepancy log table. Review the log daily; any row with a non‑zero diff triggers a ticket in the issue‑tracking system.
Use built‑in data‑quality tools that provide row‑level comparison reports. Many platforms let you set a rule such as "flag when column A ≠ column B by more than 0.1%" and automatically generate alerts via email or webhook.
Common Tools for Reconciling Data
| Tool | Method | Typical Use Case | Processing Time |
|---|---|---|---|
| SQL scripts | Manual query execution | Ad‑hoc audits, small tables (< 1 M rows) | Seconds to minutes |
| ETL reconciliation module | Automated batch comparison | Large warehouses (10 M+ rows) | 5–15 minutes per run |
| Data‑quality platform | Rule‑based monitoring with dashboards | Continuous monitoring across multiple sources | Real‑time to near‑real‑time |
Choose the tool based on data volume and required latency. For under 1 million rows, a well‑indexed SQL script runs faster than provisioning an ETL job. For multi‑source environments with daily loads, an ETL module reduces manual effort and ensures consistent timing.
Step‑by‑Step Process to Resolve a Data Discrepancy
- Identify the affected key(s) from the discrepancy log.
- Retrieve the original source records for each system using the key.
- Compare field‑by‑field values to pinpoint the exact column(s) that differ.
- Check audit trails or change logs to see when each value was last modified.
- Determine the authoritative source: follow the data‑ownership hierarchy (e.g., master data system > transactional system > reporting view).
- Correct the erroneous value in the non‑authoritative system, using a scripted update that records the change timestamp.
- Re‑run the reconciliation query to confirm the diff is now zero.
- Document the root cause and add a preventive rule to the data‑quality platform.
When the authoritative source cannot be determined, escalate to a data‑governance board within 24 hours; they will decide which version to keep based on business impact. Always back up both tables before applying corrective scripts, storing the backup for at least 30 days in case rollback is required.
Preventing Future Data Discrepancies
Implement validation rules at the point of entry: require numeric fields to match a regex pattern like ^\d{1,9}(\.\d{2})?$ to enforce two decimal places for currency. Enforce referential integrity with foreign‑key constraints so that orphaned rows cannot be created, eliminating a common source of mismatch.
Schedule regular data‑quality scans every 12 hours, setting the tolerance threshold to the same level used in detection (e.g., 0.01 for monetary columns). Automate remediation where possible; for instance, if a date format mismatch is found, a transformation script can rewrite all dates to ISO 8601 (YYYY‑MM‑DD) before the next load.
Maintain a data‑dictionary that records the exact data type, length, and format for each column across systems. When a new system is added, cross‑reference its schema against the dictionary to catch mismatches early, reducing the chance of downstream discrepancies.
Impact of Data Discrepancy on Decision Making
Even a small $0.05 variance in a high‑volume retail environment can distort profit margin calculations by up to 0.02% when annual sales exceed $250 million, potentially leading to incorrect pricing strategies. In supply‑chain forecasting, a 1% inventory count error may cause a stock‑out rate increase of 3% over a quarter, as safety stock calculations rely on accurate on‑hand numbers.
To quantify risk, calculate the discrepancy‑induced error rate: (total absolute discrepancy ÷ total value of data set) × 100. If the result exceeds the organization’s risk tolerance—often set at 0.1% for financial reporting—trigger a mandatory review by senior analysts.
Decision‑support dashboards should display a discrepancy health indicator, such as a green/yellow/red traffic‑light based on the latest reconciliation run. This visual cue helps executives quickly assess data reliability before approving critical actions.
Worked Example: Reconciling Monthly Sales Figures
Company X records sales in two systems: the e‑commerce platform (System A) and the ERP (System B). At month‑end, the reconciliation query returns three rows with differences:
ID System_A System_B Diff 101 1,200.00 1,199.95 0.05 215 3,450.00 3,440.00 10.00 389 0.00 5.00 -5.00
Step 1: Verify IDs exist in both systems; all three do. Step 2: Examine audit logs. ID 101 shows a manual discount entry entered in System A at 23:58 UTC, but the discount was not replicated to System B due to a failed API call. The $0.05 difference is within the $0.01 tolerance, so it can be ignored or rounded.
Step 3: ID 215 has a $10 variance, exceeding the $0.01 tolerance. The ERP shows a tax rate of 7% applied, while the e‑commerce platform applied 6.5% due to a recent rate change not yet propagated. Update System A’s tax configuration, then re‑process the order to align totals.
Step 4: ID 389 shows a $5 amount only in System B, indicating a return that was never posted to System A. Create a return transaction in System A with the same amount, then re‑run the reconciliation. After corrections, the query returns zero rows, confirming alignment.
This example illustrates how a systematic approach—identifying, investigating, correcting, and verifying—eliminates discrepancies and restores confidence in the data used for monthly financial close.
When to Escalate a Data Discrepancy
If a discrepancy persists after three correction attempts, or if the absolute difference exceeds 5% of the total data set, involve the data‑governance committee within 48 hours. High‑impact areas such as regulatory reporting, tax filings, or patient‑record systems require immediate escalation to avoid compliance penalties.
Document the escalation path: first‑level analyst → data‑owner → compliance officer → senior management. Each step must include a timestamp, description of actions taken, and the remaining discrepancy amount.