Does the Candidate Really Know X++ and Dual-Write? Interview Questions with Model Answers
Start with the question most candidates fail, what happens when a dual-write sync fails and how you recover, then test extensions, data entities and initial sync, each with what a good answer contains.
Ask first what happens when a dual-write sync fails and how you recover, because most candidates cannot answer it. The model answer: live sync is synchronous, so a write that fails on the other side fails the save where the user made it. Errors show in each table map's activity log and error tabs. Alert settings can pause a map, which queues changes until you resume it and it catches up; records that still fail wait under Catch-up errors to be fixed and retried. Initial sync errors are fixed and rerun, or both sides are loaded separately and initial sync skipped. Then ask about extensions, data entities and initial sync. Solzet supplies X++ developers who work with dual-write.
Which dual-write question do most X++ candidates fail?
"A salesperson saves a new account in Dynamics 365 Sales and gets an error. Another time the finance team says customers created this morning are missing in Sales. Walk me through what happened and how you get both systems back in step." Most candidates can explain what dual-write is. Far fewer can say what it does when something goes wrong, and that is the part a live system needs every week. What dual-write is, and when virtual entities or replication fit better, is covered in dual-write explained; this page tests the person.
A good answer separates three situations, because each fails and recovers differently. The detail below follows Microsoft Learn's pages on error management and alert notifications, enabling table maps and troubleshooting live synchronization at the time of writing; check those pages for current behaviour.
| Situation | A good answer contains | A warning sign |
|---|---|---|
| Live sync fails on one record | Microsoft describes the data flow as synchronous, so the write to the other side is part of the save: when it fails, the user sees an error and the change is not committed. Typical causes are missing reference data on the other side, such as a customer group or currency, missing privileges for the dual-write users or the mapped team, or a filter that does not evaluate as expected. | "Dual-write retries it later on its own" or "the record will be there tomorrow". |
| A map is paused, by an admin or by an alert | While paused, new changes are queued, not lost. Resuming moves the map through Resuming, where queued changes are played back in catch-up mode. Records that fail on catch-up, for example on a business validation in the destination app, stay in the queue under the Catch-up errors tab, where they are fixed and retried with Retry selected or Retry All. Microsoft notes that errored records are held for a limited time, one day at the time of writing, before they are purged. | Does not know a map can be paused, or would stop and restart it, which ends live sync instead of queuing it. |
| Initial sync fails | The Initial sync details tab lists the errors and their direction. Fix the data and use Re-run execution, or Rerun execution without errors to move on with new data only, or load each side separately and choose Skip initial sync. | Would rerun the whole initial sync repeatedly without fixing the data. |
What does a complete recovery answer sound like, step by step?
The strongest candidates answer as if they own the integration on a Monday morning: contain, find, fix, replay, reconcile, prevent. They also name who in the business is told, because a record that did not sync is an order that did not reach the warehouse or a credit limit sales cannot see.
- Contain: pause the affected table map and its related maps if the other app is unavailable or errors are piling up, so changes queue instead of failing on every save. Alert settings can do this automatically when an error threshold is reached, and the maps must be restarted for new alert settings to apply.
- Find: open the table map, read its activity log and download the logs; for errors that arrive without detail, set IsDebugMode on DualWriteProjectConfigurationEntity and read the DualWriteErrorLog table in the finance and operations app.
- Fix the cause, not the record: reference data that exists on one side only, the Dual-Write Runtime User role or team roles missing in Dataverse, a configuration key disabled for a field on the entity, a map filter that compares null with an empty string, or custom code that writes in a way dual-write cannot see.
- Replay: resume the map and watch it move from Resuming to Running, then work through the Catch-up errors tab and retry what is now fixable, before the queue purges errored records.
- Reconcile: compare record counts and key values on both sides for the affected tables and period, and correct the remainder deliberately, because some records may have been edited by hand in the meantime.
- Prevent: an alert to a named owner, a daily look at the error tabs, and a test of the failure path in a sandbox before the next release, not only the happy path.
How do you test a candidate on X++ extensions: Chain of Command, event handlers and no overlayering?
The scenario: "Finance wants a check when a customer's credit limit is raised above a threshold, and sales wants a default delivery mode on every new sales order from Sales. How would you build it?" A developer who has worked in current Finance and Operations will build both as extensions, because Microsoft's application models cannot be overlayered in the cloud. The answer should also show that they know where their code sits relative to dual-write, because a sales order created in Dataverse arrives in finance and operations through the same entity and table logic as one created by a user.
| Topic | A good answer contains | A warning sign |
|---|---|---|
| Chain of Command | A final extension class with the ExtensionOf attribute on the class, table or form, wrapping the method and always calling next, with logic placed before or after the call as the requirement needs. | Forgets next, or describes changing the standard method itself. |
| Event handlers | Pre and post event handlers or data events such as validated write or inserting on the table, delegates where Microsoft provides them, and why a data event fires for every write path. | Puts the check on the form only, so imports and dual-write writes bypass it. |
| Overlayering | Explains that Microsoft models are sealed, that extensions survive service updates, and how hookable, wrappable and replaceable attributes limit what can be extended. | Talks about overlayering as an option for "quick" changes. |
| Writes that dual-write cannot see | Knows that doInsert, doUpdate, set-based recordset operations and records marked skipBusinessEvents(true) do not trigger dual-write, and keeps custom writes in one transaction scope. | Uses doInsert or update_recordset for speed on a synchronized table without saying what that does to the other side. |
| Logic on synchronized writes | Checks whether the extension should run when the change came from Dataverse, and avoids logic that writes back to a mapped field and bounces the record. | Assumes every change on the table was made by a person in the finance and operations client. |
How do you test a candidate on data entities?
The scenario: "We have a custom table for customer certifications. Expose it to Dataverse through dual-write and to a nightly import through the data management framework." Dual-write maps data entities, not tables, so this question shows whether the candidate can design an entity that serves both. Microsoft states that an alternate key must be defined in Dataverse and that the entity key in the finance and operations app must match it, for example CustomerAccount mapped to accountnumber in the Customers V3 map.
- Good: a data entity with a natural key that both systems understand, never RecId, and the matching alternate key on the Dataverse table, agreed before any data is loaded.
- Good: the entity is public with a public collection name for OData, has a staging table for the data management framework, and keeps one entity for both uses where the fields and rules are the same.
- Good: knows that changes are tracked per data source through business events, that changes to an unmapped field do not trigger a sync, and that a table reached only indirectly may need getEntityDataSourceToFieldMapping so its changes are sent.
- Good: avoids virtual fields with heavy postLoad logic on an entity used for initial sync, because Microsoft notes that a slow export can time out, and indexes the export query.
- Good: knows that every configuration key behind the entity fields must be enabled, or live sync for that map fails.
- Warning: builds the entity, maps it and only then asks which system owns which field.
How do you test a candidate on initial sync?
The scenario: "We are adding Dynamics 365 Sales to a Finance and Operations system that has run for years, and Sales already holds the accounts from an older CRM. How do you bring the two customer masters together?" This is where projects lose weeks, so the answer should start with the data, not with the Run button. The constraints below are from Microsoft Learn's considerations for initial synchronization at the time of writing; check the page for current figures.
| Topic | A good answer contains |
|---|---|
| Matching before loading | Deduplicate both sides, agree the key, and match records that exist in both systems before the first run, so the same customer does not arrive twice. |
| Master for initial sync | Used only to resolve conflicts when the same key holds competing values on both sides; it does not set the direction data moves in. Dataverse is the default. |
| Volume limits | A limit of 500,000 rows per run, applied per legal entity, and a 24-hour limit on runs from Dataverse to finance and operations; above those, migrate each side separately and use Skip initial sync. |
| Single-threaded tables | Tables such as Customers V3 and Vendors V2 import single-threaded, so Microsoft advises against running initial sync from Dataverse to finance and operations above 70,000 rows for them. |
| Order and dependencies | Enable related table maps, such as customer groups and currencies, in dependency order, and do not activate maps while a data migration is still loading, because migration slows down sharply. |
| Errors | Only the top five errors are visible in the initial sync error log, and a single failed row cannot be resynced on its own, so clean data beforehand matters more than retries. |
Which follow-up questions show a candidate has run dual-write in production?
Short questions with short model answers. Each one comes from something that happens on live projects, which is why candidates who have only read about dual-write rarely know them.
- Which security roles do dual-write users need in Dataverse? The Dual-Write Runtime User role for users who create rows, the Dual-Write App User role for reading company and currency tables, and the system administrator role for the dual-write application users and the default owning team, per Microsoft's prerequisites.
- What do you check after a database copy or a sandbox refresh? Which environments are linked, and the dual-write runtime configuration records, because Microsoft blocks a configuration copied from another system until they are cleared and the environments are relinked.
- Two records created in one transaction reference each other and the sync fails. Why? They are sent as a batch, so the entities need a relationship that tells dual-write they belong to the same transaction.
- How do legal entities relate to Dataverse? Through the company concept that dual-write adds to Dataverse, aligned with business units and owning teams, decided before the first map runs.
- When would you not use dual-write for a table? When the CRM side only reads the data, when volumes are high, or when it moves on a schedule; then virtual entities or a batch integration fit better, as set out in dual-write explained.
How should you run the interview and score the answers?
Use one scenario per area, from your own project if you can, and change one constraint after each answer: the other app is down, the volume doubles, the record came from Dataverse rather than a user. Score each area as knows, learning or missing, with notes, so two interviewers compare candidates on the same terms. Then ask for a walkthrough of an extension or an entity the candidate built, on screen, in a sandbox. How to interview the named people a supplier proposes, rather than its pre-sales team, and how to keep the evidence per person, is covered in verifying senior Dynamics 365 consultants.
| Area | Knows | Missing |
|---|---|---|
| Sync failure and recovery | Separates live sync, paused maps and initial sync, and names the logs, tabs and retries for each | Thinks failed records retry by themselves |
| Extensions | Chain of Command with next, data events, no overlayering, and writes dual-write can see | Would change standard code or bypass events for speed |
| Data entities | Natural keys matched to Dataverse alternate keys, tracked data sources, export performance | Maps first, decides ownership and keys later |
| Initial sync | Matching first, limits by volume and table, skip initial sync when loading separately | Presses Run and fixes errors as they come |
What does Solzet do when you need X++ developers who work with dual-write?
Solzet supplies X++ developers and Finance and Operations consultants who build extensions, data entities and integrations and run dual-write with Customer Engagement, working directly for organisations or white-label inside a Microsoft partner's delivery. You interview the named people against the questions on this page before they start. For implementation scope, see Dynamics 365 Finance and Operations; for capacity under your brand, white-label Dynamics 365 subcontracting; for a managed services bid, a remote X++ bench; and for an upgrade programme, X++ capacity for upgrades. The same team designs the Customer Engagement side, and where a client would rather not carry Microsoft licensing for the CRM, a custom CRM can integrate with Finance and Operations through its data entities. 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?
What happens when a dual-write sync fails?
In live sync the write to the other app is part of the save, so the user sees an error and the change is not committed. If a table map is paused, changes queue and are played back in catch-up mode when it resumes; records that still fail wait under Catch-up errors to be fixed and retried. Initial sync errors are listed on the Initial sync details tab and fixed before a rerun.
Where do you find dual-write errors?
In the table map: its activity log, with downloadable logs, the Initial sync details tab and the Catch-up errors tab. For errors without detail, set IsDebugMode on DualWriteProjectConfigurationEntity and read the DualWriteErrorLog table in the finance and operations app. Check the current Microsoft Learn pages for the exact screens.
What does pausing a dual-write table map do?
It stops writes to the other app and queues new changes instead of losing them. When the map is resumed it goes through Resuming, plays the queued changes back in catch-up mode and returns to Running. Alert settings can pause a map automatically when an error threshold is reached.
Which X++ extension questions should you ask a Finance and Operations developer?
Ask them to build a validation and a default as extensions: Chain of Command with next, data events on the table, no overlayering, and which write methods, such as doInsert or set-based operations, do not trigger dual-write. Then ask how their logic behaves when the change came from Dataverse.
What should a candidate know about data entities for dual-write?
That dual-write maps data entities, that the entity key must match an alternate key in Dataverse, that changes are tracked per data source through business events, that unmapped fields do not trigger a sync, and that slow exports with heavy virtual fields can make initial sync time out.
When should you skip dual-write initial sync?
When the volume is above what initial sync handles in one run, or a single-threaded table such as Customers V3 is large, Microsoft advises migrating data into each app separately and then enabling the map with Skip initial sync. Also skip it when neither side has data yet.
Does Solzet supply X++ developers who work with dual-write?
Yes. Solzet supplies X++ developers and Finance and Operations consultants who build extensions, data entities and integrations and run dual-write with Customer Engagement, directly or white-label for Microsoft partners. You interview the named people before they start.
Where should you go next?
Dual-write explained
Dual-write vs virtual entities vs replication, and the design pitfalls.
Dynamics 365 Finance and Operations
Implementation, X++ extensions, integrations, data migration and support.
White-label Dynamics 365 subcontracting
AL and X++ developers and consultants working under your brand.
Remote X++ bench for managed services
Which roles stay onshore and which a remote X++ team can take.
X++ capacity for upgrade programmes
Overlayering to extensions, service update conflicts and regression tests.
Verify senior Dynamics 365 consultants
Interview the named people and keep the evidence per person.
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.