AX 2012 to Finance and Operations on a Fixed Deadline: Data Upgrade Failures, EDI and MES That Read ERP Tables
Shrink the data upgrade before the next test, rebuild every direct table integration on supported interfaces, capture what your last X++ readers know, and plan three rehearsal cutovers.
On a fixed AX 2012 deadline, work the three risks in this order. First, shrink the data upgrade before the next test run: archive and clean history with the AX 2012 cleanup routines the business has signed off, compress the largest tables, and time every rehearsal. Second, find every integration that reads or writes AX tables directly, such as EDI translators and MES feeds querying SQL Server, because finance and operations apps in the cloud give no direct access to the production database, and rebuild each on data entities, business events or custom services. Third, capture what your last two X++ readers know now. A 14-month plan then fits three rehearsal cutovers before go-live.
Why does the AX 2012 data upgrade take too long, and how do you shrink it?
The data upgrade processes the whole AX 2012 database, so its run time follows the size of the tables, not the size of the business you still run. Years of closed transactions, log tables, batch history and staging data all go through the upgrade scripts. The fastest gain is to stop carrying data the new system does not need, decided with the business before the next rehearsal rather than on the go-live weekend.
Microsoft's Upgrade analysis report lists cleanup opportunities and SQL Server settings that speed up the upgrade, and Microsoft's guidance is to run cleanup routines only after the business has confirmed the data is no longer required, and to test each one in a test environment first (Microsoft Learn: clean up source data for upgrade). For larger databases, Microsoft also recommends compressing the largest tables, and in self-service environments it recommends keeping the AX 2012 source and the target in the same region and starting replication the weekend before a go-live cutover (Microsoft Learn: data upgrade in self-service environments).
| Action | What it changes | Who signs it off |
|---|---|---|
| Run the Upgrade analysis report | A list of space saving cleanup routines and SQL Server configuration suggestions for this database | The upgrade lead, as input to the plan |
| Clean up log, batch history and staging tables | Removes rows that carry no business meaning from the upgrade run | IT, with a test run first |
| Archive closed transactional history | Keeps old periods readable in an archive instead of upgrading them | Finance and the auditor, in writing |
| Compress the largest tables | Less data to read and move during the upgrade | The database administrator |
| Time every rehearsal by step | Shows where the hours go, so the next fix targets the slowest step | The upgrade lead, reported to the steering group |
Which EDI and MES integrations break because they read or write AX tables directly?
Many AX 2012 estates grew integrations that skip the application and go straight to SQL Server: an EDI translator that writes orders into staging or sales tables, an MES that reads released production orders from a view and writes back output through a stored procedure, reports and spreadsheets on ODBC connections. In finance and operations apps in the cloud the production database is not open to direct connections, so every one of these has to move to a supported interface before go-live.
| AX 2012 pattern | Replacement in finance and operations apps | Notes |
|---|---|---|
| EDI translator inserts orders into AX tables | Data entities through the data management framework, using recurring integrations or the package API for files | The translator keeps the EDI format work; only the AX side of the interface changes |
| EDI outbound reads shipments and invoices from tables | Business events that announce a posted document, plus a data entity read for the details | Removes polling and timing gaps |
| MES reads released production orders from a SQL view | OData on data entities, or business events when an order is released | Agree the payload with the MES vendor early; their change slot is often the long pole |
| MES writes output and consumption back through SQL | A custom service or data entity that posts through the application logic | Posting through the application keeps validation and costing intact |
| Reports and spreadsheets on ODBC | Analytical data exported for reporting rather than read from production | Reporting design is covered on consolidated reporting across Dynamics 365 and your ERP |
| AIF services | Data entities and custom services | AIF does not exist in finance and operations apps |
How do you find every integration that touches the AX database?
Do not rely on the integration list in the original design document. Build the inventory from evidence, then confirm each entry with its owner.
- List every SQL Server login and the applications behind it, and flag any that is not the AOS service account.
- Capture connections to the AX database over a full business cycle, including month-end, to catch jobs that run only occasionally.
- Check linked servers, SQL Server Agent jobs, SSIS packages and ODBC data sources on the servers around AX.
- Read the AIF configuration and the batch jobs that import or export files.
- Interview the owners of EDI, MES, warehouse devices, the bank and reporting, and record who will test each replacement.
How do you capture what the last two X++ readers know before one retires?
Treat their knowledge as a deliverable with a deadline, not a favour. Start with the model store: every customisation by layer and model, and for each one the business process it serves. Then book short recorded walkthroughs, one area at a time, starting with the code that touches production, inventory, EDI and the MES interface. Ask them to make the rebuild, replace or retire call on each customisation first, while they can still explain it; the method for that classification is on our AX to Finance and Operations upgrade page. Pair each of them with the developers who will rebuild the code as X++ extensions, so the knowledge moves into people as well as documents.
What does a 14-month plan with rehearsal cutovers look like?
A planning shape to test against your own database size, integration count and the dates your trading partners and MES vendor can commit to. The rehearsals are what turn a deadline into a date you can defend: each one is timed, reconciled and followed by fixes before the next.
| Months | Work | Exit check |
|---|---|---|
| 1 to 2 | Analysis of code and data, Upgrade analysis report, integration inventory, knowledge capture sessions, cleanup and archiving decisions signed | Scope, keep list and integration list agreed |
| 3 to 5 | Code upgrade and X++ extensions, cleanup routines run, first data upgrade in a development environment | The upgraded database opens and the first timings are known |
| 4 to 8 | EDI and MES interfaces rebuilt on data entities, business events and custom services, tested with partners in a sandbox | Each interface passes end to end with its owner |
| 6 | Rehearsal cutover 1 on a full copy of production | Timed, with every failure logged |
| 7 to 9 | System integration testing, performance fixes on the slowest upgrade steps | Integration test sign-off |
| 9 | Rehearsal cutover 2, timed against the real cutover window | Fits the window; trial balance and stock reconcile |
| 10 to 11 | User acceptance testing, EDI partner testing, MES in parallel | Business sign-off |
| 12 | Rehearsal cutover 3 as a full dress rehearsal with the go-live runbook | No new failures; go or no-go criteria met |
| 13 | Change freeze, training, final archive of AX 2012 history | Readiness review passed |
| 14 | Go-live and hypercare through the first month-end | First close completed on finance and operations apps |
How does Solzet staff an AX 2012 upgrade with a fixed deadline?
Solzet runs the X++ and data work in this plan with its own senior consultants and developers: the code analysis, the rebuild of kept customisations as extensions, the cleanup and timed data upgrade rehearsals, the redesign of EDI and MES interfaces on data entities, business events and custom services, and the reconciliation at each rehearsal. The upgrade itself, by AX version and route, is on AX to Finance and Operations upgrade. Microsoft partners that need X++ hands inside their own programme will find the work packages on X++ capacity for upgrade programmes, and the wider end of life options are on Dynamics on-premises end of life. For companies that want CRM without Microsoft licensing next to the new ERP, we also build custom CRM. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Why does the AX 2012 data upgrade to Finance and Operations take so long?
The upgrade processes the whole AX 2012 database, so years of closed transactions, log tables, batch history and staging data all run through it. Signed-off cleanup, archiving of closed history and compression of the largest tables shorten it, and timing every rehearsal shows which step to fix next.
Can an EDI system keep writing directly to the database after the upgrade?
No. In finance and operations apps in the cloud the production database is not open to direct connections. The EDI translator keeps its format work, and the AX side of the interface moves to data entities, the data management framework and business events.
How should an MES integrate with Finance and Operations instead of reading AX tables?
Read released production orders through OData on data entities or receive business events when orders are released, and post output and consumption back through a custom service or data entity so the application logic validates and costs it.
Which AX 2012 data should we archive before the upgrade?
Data the business confirms it no longer needs in the live system, such as closed periods and log, batch and staging tables. Microsoft advises running cleanup routines only after that confirmation and testing each one in a test environment first. Finance and the auditor should sign off the archive.
How many rehearsal cutovers does an AX 2012 upgrade need?
Enough that the go-live run is boring. In a 14-month plan, three timed rehearsals on full copies of production fit well: one to find failures, one timed against the real window with reconciliation, and a dress rehearsal with the go-live runbook.
What if the only people who understand our AX code are about to leave?
Capture their knowledge first: a model store inventory, recorded walkthroughs of the code that touches production, inventory and integrations, and their rebuild, replace or retire call on each customisation, with the developers who will rebuild it in the room.
Where should you go next?
AX to Finance and Operations upgrade
Routes by AX version, Analyze, Execute and Validate, and the customisation decisions.
X++ capacity for upgrade programmes
Work packages for partners: extensions, service updates, tests and data upgrade scripts.
Finance and Operations implementation
How Solzet implements finance and operations apps end to end.
Azure Integration Services
The integration layer for EDI, MES and other systems around Dynamics 365.
Dynamics on-premises end of life
Stabilise, migrate or rebuild when support has run out.
Custom CRM development
CRM without Microsoft licensing.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.