Customer Stories


How ZLM Modernized Legacy Reporting with AI-powered Reverse Engineering


Xebia helped ZLM, a Dutch insurance company, migrate a complex legacy Oracle and Qlik environment to Microsoft Fabric, using AI and MCP tools to reverse engineer critical reports, with limited source control and documentation.

‌

At a Glance

Challenge


ZLM needed to migrate critical reports from an on-premises Oracle Data Warehouse and Qlik environment to Microsoft Fabric and Power BI under a tight six-months deadline, with 20-year-old stored procedures with limited source control and minimal code base.

Solution


Xebia ran a one-month proof of concept using AI tools with Model Context Protocol (MCP) to reverse engineer legacy data lineage, and dbt to capture transformations in a standard language, proving the migration was feasible.

Results


The proof of concept was delivered in one month and presented to the client. It has become the base of the migration work, which started in October with a new team of engineers.

The Client


ZLM is a Dutch insurance company with a long history and a complex, on-premises IT landscape. Headquartered in Goes, the company operates mainly for residents and businesses in Zeeland and Noord-Brabant. Unlike other companies in the sector, ZLM operates without a profit motive. Instead, its core focus is customer satisfaction and keeping the premiums low.


The Challenge: Replacing a Complex Legacy Reporting Landscape Under Regulatory Pressure

As part of a digitalization project, the company was looking to move from on-premises to a cloud solution, choosing Microsoft Fabric as a data platform. Their existing environment consisted of an Oracle Data Warehouse with Qlik as the BI tool. The core insurance system was also being replaced by a new system called Axon, adding further pressure to migrate reports that were critical for the company.

These were the main challenges in the project:

  • Tight deadline: everything needed to be migrated by 30 June 2027, driven by the replacement of the core insurance system with Axon.
  • Critical reports at stake: the company identified more than 100 reports as very important for the organization's operational side, with critical information flows with the Dutch National Bank.
  • Limited source control, documentation or code base: all the SQL statements were written directly in the database as stored procedures or table definitions, with comments sometimes dating back several decades with little documentation available.
  • Legacy system: old and difficult to use, time-consuming to understand for the data team behind it.
  • Complex, intertwined logic: the stored procedures and table definitions were heavily intertwined, making it extremely hard to trace data lineage, by far the biggest challenge in the project.
  • Data Sources: the previous connection to data sources was simply using the data warehouse connection or directly using Qlik.


The Solution: AI-powered Reverse Engineering Proof of Concept

With a deadline quickly coming up and little information available, Xebia decided to use AI to reverse engineer the flows of these reports, first dumping and mapping out all the tables and the data the company was using. Xebia quickly came up with a proof of concept for the company to prove that the migration could be done in a short time.

The demo was developed in a controlled environment, to determine whether AI could be used to fully reverse engineer ZLM's outputs in Qlik, through the source tables, columns and everything in between in Oracle, and make those flows visible. The proof of concept was carried out by one single person from Xebia and completed in one month. 

The technical approach was built around Model Context Protocol (MCP) tools and dbt:

  • MCP tools: MCP is a protocol that exposes APIs specifically for language models. For Oracle, open-source Oracle MCP tools were used to expose APIs — such as reading tables, updating tables, and updating rows — to Claude, a large language model. Claude could then decide which tools to call to accomplish tasks like mapping out data lineage, step by step, and check completeness.
  • Reverse engineering: rather than trying to understand the source code, which was too complicated and intertwined, the team started from the end result and worked backwards on how to achieve the same result in the new tool. This approach helped get around the problem of the obscurity of the system, mapping out the entire system from its end result and recreating it from scratch.
  • AI training: the AI used in this project was trained on both Qlik and Oracle, merging the two it was able to get the entire lineage and syntax of the system, easily scanning through thousand of lines without the need for further code documentation.
  • dbt for lineage: once the lineage was mapped out in memory, dbt was used to write it all down in a standard language. Table definitions and transformations from one table to another were all captured by using dbt, providing a standard, documented lineage.
  • Lift and shift: dbt's adapters made it easy to do lift and shift, with Oracle as the source and Microsoft Fabric as the target, using Marymo to recreate the same dashboards the company was using. The same approach could be used with other databases through adapters like DuckDB.
  • BI tool demonstration: to prove the migration would work end-to-end, Claude was shown a table supporting a Qlik graph and asked to generate the SQL statement to reproduce the exact same result. Claude generated the statement, which was verified in the database. A local dashboard was then built to verify that the new one would produce the exact same data, based on the same data lineage and tables.

Once approved by the company, the proof-of-concept became the base of the migration work. The demo showed that through AI engineering, Xebia could quickly and securely manage to get ahold of all the necessary information to reconstruct the process that would lead to the creation of the reports that ZLM needed to migrate. 

By fully analyzing the environment, Xebia also found several issues with data modeling which led to flaws in the results, along with the reasons behind certain performance issues. The demo not only showed the migration was possible, but several things that the company could improve in their system.

From the start of October, the migration started with a new team with the core logic established by Xebia in the original demo.


The Result: a Proven Path to Modernization

In just one month, Xebia delivered a proof of concept that demonstrated the migration was feasible and would be safe proof, something the client was not sure would be possible. The benefits were significant:

  • AI with control: MCP provided the control needed to use AI tools safely and effectively on legacy data.
  • No need to learn Oracle: the team did not need to become Oracle experts. Through MCP, the data became understandable, they only needed to know what the logic achieved, not the source language itself.
  • Visible data lineage: the proof of concept made ZLM's flows visible for the first time, parsing scripts into a lineage tree.
  • A replicable approach: the approach is highly replicable for other companies with the same type of setup: SQL-based, undocumented, legacy environments.
  • Environmental insights: the proof of concept also revealed issues with the existing environment, including data modeling flaws and results, giving the client a clearer view of what needed to change.

Thanks to the help of Xebia we went from thinking we couldn’t build our obligated reports on a new reporting environment with new backend system within a year to realizing that it is possible. We see the possibility to reach a new data and reporting environment based on a new backend system with consistent, well performing, provisioning of the current obligated reports.

Wouter de Smit

Program Manager at ZLM


Looking Ahead: Reverse Engineering for Future Innovations

ZLM went from an old on-premises reporting environment, to having a proven, AI-powered path to migrate over a hundred critical reports to Microsoft Fabric and Power BI. The company now has a solid migration approach that supports regulatory compliance, business agility, and trusted data governance. 

The ZLM proof of concept exemplifies Xebia's approach to digital transformation: partnership-driven, business-focused, and technically excellent. By using AI tools with MCP and dbt to reverse engineer a complex legacy environment, and proving it could be done in a very short amount of time, Xebia helped ZLM turn a daunting, high-pressure migration into a clear, achievable path forward, along with improving their environment.

This same approach can be replicated in similar companies with appropriately complex data warehouses. Even in the most daunting situations, Xebia can help you deliver the outcome you are looking for. ZLM’s AI-powered reverse engineering proof of concept is a powerful example of how the right partnership and the right technology can turn legacy complexity into modern opportunity.

Facing a similar legacy migration? Explore our data platform modernization services or talk to our experts.

Contact

Let’s discuss how we can support your journey.

‌
‌
‌
‌
‌
‌
‌
‌
‌