ETL/ELT Data Pipelines and Data Contracts from ERP to Trustworthy BI
In this article
- Why reports straight from the ERP are often not enough
- ETL and ELT: what is the difference
- Three layers of data that help
- How to take data from the ERP
- Full load versus incremental load
- Data contracts: an agreement between data owners and users
- Data quality testing
- Handling schema changes
- Monitoring and handling failures
- Security and privacy
- Cost and choice of tools
- When you do not need to build your own pipeline
- Links to dashboards and AI
- Common mistakes
- A step-by-step plan
Every business leader has lived this moment: two reports show different sales figures, and the meeting is spent debating which one is right. The cause is rarely a miscalculation. Usually, data from the ERP reaches the dashboard through a chain of undocumented steps: manual exports, spreadsheet formulas, or a script one person wrote that nobody dares touch. A data pipeline replaces that fragile chain with a flow that is defined, monitored, and trustworthy. This article explains the concepts of ETL and ELT, incremental loading, data contracts, quality testing, and when you should not build it all yourself.

Why reports straight from the ERP are often not enough
Many businesses start with the ERP's built-in reports, and that is reasonable. But a few limits eventually make themselves felt.
- Load on the operational system: large reports run at peak hours can slow day-to-day transactions.
- Scattered data: sales in the ERP, ads on another platform, tickets in the support system, and targets in a spreadsheet. Business questions often need all of them combined.
- Operational data structures are not designed for analysis. Tables that are efficient for recording transactions are often hard to summarize across time and dimensions.
- History changes: when master data is updated, old reports may change without anyone noticing.
- Non-uniform definitions: everyone calculates margin, active customers, or revenue differently.
A data pipeline moves data to a place designed for analysis, with consistent definitions. The concept of data warehouses and BI is covered in data warehouses and business intelligence for mid-sized businesses. This article focuses on the path the data takes.
ETL and ELT: what is the difference
Both terms describe an order of three steps: taking data from the source, transforming it, and loading it into the destination.
ETL
Extract, Transform, Load. Data is taken from the source, transformed in an intermediate stage, and the cleaned result is loaded into the destination. This approach is common in older systems and suits cases where the destination has limited capacity or where data must be cleaned or masked before storage.
ELT
Extract, Load, Transform. Raw data is loaded first into the warehouse, then transformed inside the warehouse itself. This approach is popular because cloud storage and compute are relatively flexible, raw data remains available for reanalysis, and transformations can be written as queries that are easy to review and test.
For mid-sized businesses, ELT is often more practical: you copy raw data from the ERP on a schedule, then build clean table layers on top. But do not assume either is always right. When data is very sensitive, for example containing personal data that must not be stored raw in the analytics warehouse, transformation before loading is still needed.
Three layers of data that help
A layered structure makes the pipeline easier to understand and fix.
- Raw layer: an as-is copy from the source, unchanged. Useful as evidence and as material for rebuilding.
- Clean or standardized layer: data types harmonized, duplicates handled, codes mapped to meaningful names, and invalid values flagged.
- Business layer: tables that answer business questions, such as sales per customer per month, receivables aging, or stock turnover, with agreed metric definitions.
Dashboards and reports read only the business layer. That way, changes at the source or fixes to definitions need to be made in only one place.
How to take data from the ERP
There are several ways to extract data, each with its own strengths and risks.
- Periodic export from the interface: easiest, but manual, easy to forget, and hard to audit.
- ERP API: structured and often permitted by the vendor, but rate-limited and may not cover all data. API design principles are covered in [business API design: versioning, documentation, and rate limits](/blog/desain-api-bisnis-versioning-dokumentasi-dan-batas-laju).
- Read access to a replica database: fast and complete, but needs care not to burden the production system. Use a read replica or off-peak schedules, and a read-only account.
- Change data capture (CDC): captures row changes from the database log. Efficient for large volumes, but more complex.
- Webhooks and events: suitable when some data must be near real time. See [webhooks and real-time integration](/blog/webhook-dan-integrasi-real-time-untuk-bisnis) and [event-driven architecture](/blog/arsitektur-event-driven-dan-antrean-pesan-untuk-aplikasi-bisnis).
Check the ERP vendor's license and terms before accessing the database directly. Some vendors restrict or forbid it, and version updates can change table structures.
Full load versus incremental load
How you load data affects speed, cost, and reliability.
- Full load: the whole table is copied again each time. Simple and easy to understand, suitable for small tables such as customer or item lists.
- Incremental load: only data that is new or changed since the last load is taken. Important for large tables such as transactions.
Incremental loading demands attention to several things.
- Change marker: a reliable modified-date column or sequence number. If the source does not record changes, updates will be missed.
- Deleted data: rows deleted at the source do not appear as changes. Use soft-delete flags or compare periodically.
- Late-arriving data: transactions can be corrected or entered afterward. Reload a window of the last several days rather than only since the last point.
- Idempotency: running the same load twice must not produce duplicates. Use unique keys and upsert operations.
An idempotent pipeline makes recovery easy: if a load fails midway, simply run it again.
Data contracts: an agreement between data owners and users
A data contract is a written agreement about the data a system shares: its structure, meaning, quality, and who is responsible. The concept arose from a classic problem. The ERP team renames a column or changes a unit, and the dashboard depending on that column breaks with nobody told.
A practical data contract contains the following.
- Schema: column names, data types, and which may be empty.
- Business meaning: the definition of each column, including units and currency. For example, whether the sales amount already includes tax and discounts.
- Keys and relationships: the columns that serve as unique identifiers and their relationships with other tables.
- Quality expectations: completeness, reasonable value ranges, and uniqueness.
- Freshness: how often data is updated and the acceptable delay.
- Owner and contact: who to contact when there is a problem or a planned change.
- Change rules: breaking changes must be announced beforehand with a transition period.
You do not need special tooling to start. A clear document in a shared repository, plus automated tests that check the schema, already delivers great benefit. The principle is similar to API versioning: incompatible changes must be managed, not made silently.
Data quality testing
A running pipeline does not necessarily produce correct data. Add tests at key points.
- Schema tests: expected columns exist with the right types.
- Completeness: required columns are not empty, and row counts do not drop drastically compared with the day before.
- Uniqueness: primary keys are not duplicated.
- Referential integrity: every transaction refers to an existing customer or item.
- Ranges and business rules: prices are not negative, dates are not implausibly far in the future, and line totals equal document totals.
- Reconciliation: monthly sales totals in the business layer match totals in the financial statements or general ledger, with differences that can be explained.
Reconciliation with accounting is the most valuable test because it ties analytical numbers to an audited source. Recurring differences often signal a definition or master data problem, not a technical error. Broader topics are covered in data quality and data governance for mid-sized businesses and ERP master data.
Handling schema changes
Changes in the ERP are a certainty, not a possibility. Prepare ways to handle them.
- Automatic detection: schema tests that fail when a column disappears or changes type, so the problem shows up before the dashboard breaks.
- Compatible changes, such as an added column, must not break the pipeline. Design reads of columns explicitly rather than selecting all columns blindly.
- Breaking changes, such as a different name or unit, need an announcement and a transition period, with old and new versions running in parallel for a while.
- Record the history of transformation changes in version control, so every change of definition can be traced and reverted.
Monitoring and handling failures
Pipelines will fail: the network drops, the source is unavailable, or data does not match expectations. What matters is knowing before users do.
- Clear schedules and dependencies: business tables are built only after clean tables finish.
- Alerts to the right person when a load fails or a quality test does not pass, with a message explaining what went wrong.
- Freshness markers on dashboards: show when data was last updated, so users do not make decisions from stale data.
- Automatic retries for transient failures, and a safe stop for data failures so bad data does not spread into reports.
- Run records: how many rows were taken, how long it took, and the test results.
General monitoring principles, including logs and alerts, are covered in observability, logs, and error handling for business applications.
Security and privacy
Pipelines move sensitive data, so they need clear controls.
- Least privilege: the pipeline account has read access only to the tables it needs.
- Store credentials in a secrets manager, not inside scripts.
- Mask or remove personal data not needed for analysis, such as ID numbers or full addresses.
- Restrict access to the raw layer, since this is where sensitive data is most complete.
- Apply a retention policy: data no longer needed should be deleted according to the rules. See [personal data protection for websites and applications](/blog/pelindungan-data-pribadi-untuk-website-dan-aplikasi).
- Make sure the storage location meets the rules that apply to your business.
Cost and choice of tools
Pipeline costs come from compute, storage, tools, and above all the time of the people who maintain it.
- Load incrementally and avoid copying large, rarely changing tables every day.
- Choose a frequency to match the need. A daily report does not need minute-by-minute updates.
- Delete temporary tables and raw data past their retention.
- Monitor query and storage costs regularly. Broader discussion is in [controlling cloud costs for businesses](/blog/mengendalikan-biaya-cloud-untuk-bisnis).
For tools, there are three common groups: managed connectors that copy data from popular applications, open-source frameworks you run yourself, and self-written scripts. Managed connectors reduce work but add subscription cost and dependence. Self-written scripts are cheap at first but expensive to maintain if their author leaves. Choose based on your team's skills and who will maintain it, not on a tool's popularity.
When you do not need to build your own pipeline
A pipeline is a means, not a goal. You may not need one yet if:
- The main business questions can be answered quickly and correctly by the ERP's built-in reports.
- Data volume is small and there is only one source.
- Nobody will maintain it.
- Metric definitions have not been agreed, so a pipeline would only automate the argument.
In these cases, start by agreeing on definitions, tidying master data, and automating routine reports, as discussed in automating routine reports. Build a pipeline when the need genuinely arises: data from many sources, slow reports, or a need for historical analysis.
Links to dashboards and AI
A tidy pipeline is the foundation for dashboards you can trust, as in business dashboards for daily decisions, and for analytics or AI projects. Many AI projects fail not because of the model but because the data is not ready, as discussed in enterprise data readiness before starting an AI project. If you plan a modular ERP architecture, consider the data path from the start, as in composable ERP.
Common mistakes
- Building a pipeline before metric definitions are agreed.
- Reading directly from the production database at peak hours.
- Not handling deleted and late-arriving data in incremental loads.
- Copying raw data with no clean and business layers, so dashboards depend directly on the source structure.
- Having no reconciliation test against accounting.
- Not showing the last-updated time on dashboards.
- Storing credentials inside scripts.
- Leaving maintenance to one person with no documentation.
A step-by-step plan
- Weeks 1 to 2: write down the priority business questions, the main metric definitions, and the data sources needed.
- Weeks 3 to 4: choose one source and one domain, such as sales, then build the raw and clean layers with incremental loading.
- Month 2: build the business layer, write a simple data contract, and add quality tests and reconciliation to accounting.
- Month 3: add monitoring, alerts, and freshness markers, then connect the dashboard.
- Afterward: add other domains one at a time, and review cost and access regularly.
With this staged approach you get numbers that can be traced, not just a dashboard that looks good.
Do dashboard figures often differ from the ERP?
AG·SORA helps design data pipelines, metric definitions, and dashboards connected to your ERP with clear testing and monitoring. Tell us about your data sources and business questions and we will review them together.
Free consultationRecommended for you
Reading related to this topic
Data Warehouse and Business Intelligence for Mid Sized Businesses: One Source of Truth for Decisions
Understanding data warehouses and BI for nontechnical readers: why operational system reports fall short, signs you need one, starting from business questions, figure definitions, data quality, technical options, dashboards that get used, and data culture.
Business Dashboards: From Piles of Reports to Faster Daily Decisions
Monthly reports reach the owner's desk after the events have passed. How to choose metrics, bring data sources together, and design a dashboard that actually gets opened every morning.
Customer Data Platform (CDP): Unifying Customer Data for Mid-Sized Businesses
A CDP guide for mid-sized businesses: differences from CRM and data warehouse, identity resolution, segmentation, channel activation, consent and personal data protection, approach options, and a roadmap.
Free checklist: choosing a software house
24 points to evaluate a vendor before you sign. Can be saved as a PDF.
Ready to build a system that grows with your business?
Discuss your needs with the AG·SORA team, no cost, no commitment.