Quote to Finance and Operations Sales Order: Hardening a Connector Against Non-Standard Dual-Write Mappings

Why lines go missing when customers change the dual-write maps, the five defences a connector needs, and a six-week order of work for a fixed go-live date.

Quote and order lines go missing between Dynamics 365 Sales and Finance and Operations because the connector assumes the standard dual-write table maps, and customers change them: a filter on the line map, an unmapped column, a new mandatory field, a paused map or a product not released to the legal entity. Harden the connector in five moves. Read the customer's active mappings before the first send. Validate every quote and line against them before sending. Retry with idempotency, upserting on your own line key so a retry never doubles a line. Log every line with a correlation identifier. Reconcile line counts on both sides after every conversion. A six-week order of work for a fixed go-live date follows.

Why do quote lines disappear on the way from Dynamics 365 Sales to a Finance and Operations sales order?

Because the connector was built and tested against the standard dual-write maps, and the customer is not running them. Dual-write ships prospect-to-cash table maps that carry sales quotations, sales orders and their lines between Dataverse and Finance and Operations. Implementation partners routinely change them: they add a filter so only some legal entities or line types synchronise, unmap a column they do not use, add a mandatory field in an X++ extension, or pause a map during a data fix and forget to restart it. A connector that writes a quote with ten lines into Dataverse and assumes dual-write will deliver ten lines to Finance and Operations has no way to notice that three of them were filtered out.

The second cause is the connector itself. Many connectors write lines in a batch with continue-on-error switched on, through ExecuteMultiple or a Web API batch with the continue-on-error preference, then read only the overall result. Individual line faults come back in the response and nobody reads them. What dual-write is and how its maps work in general is explained on dual-write vs virtual entities, explained; this page is about how a connector defends itself against maps it does not control.

Which customer changes to the dual-write maps break a quote to order connector most often?

A short list of changes causes most of the trouble. Each one looks harmless to the partner who made it and is invisible to a connector that never reads the maps.

Customer changeWhat the connector seesDefence
Filter added on the quotation line or sales order line mapLines written to Dataverse, fewer lines in Finance and Operations, no errorRead the filter into the mapping profile; validate lines against it; reconcile counts
Column unmapped or mapped to a different fieldValues arrive empty or in the wrong placeCompare field mappings with the columns the connector writes; make the target configurable
New mandatory field added in an X++ extensionLine write fails in Finance and Operations and the error surfaces on the Dataverse sideRead required fields from metadata; supply a configured default or reject before sending
Table map paused or stoppedWrites succeed in Dataverse and nothing reaches Finance and Operations until the map runs againCheck map status before a batch; hold and alert instead of sending
Product not released to the legal entity, or no unit conversionLine rejected in Finance and OperationsValidate product, unit and legal entity before sending
Custom plugin or flow on the quote line or order line tableValues changed or lines blocked after the connector writes themRead back what was stored; include the customer plugins in the rehearsal
Custom choice values on line type or statusValue not recognised by the connector or rejected by the mapRead choice metadata; map values through configuration, never by hard-coded number

How should the connector read the customer's active dual-write mappings before it sends anything?

Treat the mappings as configuration you read, not as an assumption you ship. In the finance and operations app, the Dual-write page (reached from the Data management workspace; navigation varies by version) shows each table map with its status, the field mappings with their direction, and any filter or transform. Read the four maps the connector depends on: quotation headers, quotation lines, sales order headers and sales order lines. Map names and versions differ between environments and releases, so identify them by the tables they connect rather than by a name you expect.

Where the customer will not give your team access to that page, ask their administrator for an export or a screenshot of each map, and read the column metadata yourself: Dataverse table and column definitions through the Web API EntityDefinitions endpoint, and the data entity definitions from the finance and operations OData metadata document. Microsoft also documents adding dual-write maps to a Dataverse solution for application lifecycle management, so the customer's solution export can be another source; check the current Microsoft documentation for how your version stores them.

Store what you read as a mapping profile per customer, with a date, and read it again after every customer release. The pattern is the same one we describe for Field Service vendors on integrations that survive customised environments.

What should be validated before a quote or order line is sent?

Everything that would make Finance and Operations refuse the line or a map filter skip it. The rule is that a document is either sent whole or rejected whole with a reason a salesperson can act on; a partial quote is worse than a rejected one, because nobody knows it is partial.

  • Product: exists in Dataverse, is linked to a released product in the legal entity of the quote, and is not blocked for sales.
  • Unit: the line unit exists for the product and has a conversion in Finance and Operations.
  • Legal entity: the quote's company matches a legal entity the maps synchronise, and the customer account exists in that legal entity.
  • Site and warehouse: supplied where the product storage dimensions require them, from the line or from a configured default.
  • Required columns: every column the metadata marks as required on either side has a value, including the ones added by customer extensions.
  • Choice values: line type, status and any custom choice are valid values in this environment, read from metadata.
  • Map filters: the line passes each filter in the mapping profile, so it will not be skipped silently on the way across.
  • Map status: the quotation line and sales order line maps are running before a batch is sent.

How does the connector retry without duplicating lines?

By writing on its own key, so the same write twice has the same result as once. Add a column for the connector's own identifier to quotes, orders and their lines, define a Dataverse alternate key on it, and write with upsert through the Web API so a retry updates the existing row instead of creating a second one. Retry only the lines that failed, with backoff, and stop after a fixed number of attempts with the line marked as failed in the log.

Two more rules matter. Read the per-request results of every batch, not only the overall status: a batch with continue-on-error returns the faults line by line. And do not retry a line whose failure is a validation error from the other side; a retry cannot fix a missing unit conversion, it only fills the log. The same principle for messages between one CRM and two ERPs is on running Customer Engagement against SAP and Finance and Operations.

What should the connector log for every line?

Enough for a support person to answer "where is line seven" without a developer. Write one log record per line per attempt: the correlation identifier carried from the source system, the quote or order number on both sides, the connector's line key, the payload sent, the response from Dataverse, the state seen in Finance and Operations, the attempt number and the final outcome. Keep it somewhere the customer administrator can read, such as a table in your managed solution, as well as in your own monitoring, because the customer's team is often the first to notice a missing line.

Do not log personal data or prices beyond what support needs, and agree retention with the customer. A failed line should raise one alert with the document number and the reason, not one alert per retry.

How do you reconcile line counts between Dynamics 365 Sales and Finance and Operations?

Compare the documents, not the integration log. After each quote to order conversion, and again on a schedule, count the lines and sum quantities and line amounts for the order in Dataverse and for the matching sales order in Finance and Operations, read through its OData data entities. Any difference raises an exception with the document number, the lines present on one side only, and the most likely cause from the mapping profile, such as a filter or a paused map.

Run the same check daily across all documents created in the period, because some failures, such as a map paused overnight, only show up in aggregate. Keep the reconciliation report as evidence: when a customer asks whether every order arrived, the answer is a report, not an opinion.

What is the week-by-week order of work for a fixed go-live date?

With six weeks to go-live, do the work in this order and do not start the next week's work on a path the previous week has not settled. With less time, keep the order and narrow the scope: validation and reconciliation matter more than an elegant retry.

WeekWorkDone when
1Read the customer's four dual-write maps and both sides' metadata; build the mapping profile; list every difference from the standard mapsThe difference list is agreed with the customer and their partner
2Turn each difference into configuration or a validation rule; add pre-send validation and readable rejection reasonsA quote that would lose a line is rejected before sending, with a reason
3Add the alternate key column, upsert, per-line retry with backoff and per-request result handlingA forced retry produces no duplicate line
4Add the per-line log, alerts and the reconciliation report in both directionsA deliberately filtered line shows up as an exception within one run
5Rehearse on a copy of the customer's environments with their maps, plugins, products and a paused mapEvery scenario in the test list passes, or has a documented workaround
6Go-live readiness: monitoring owner, alert routing, map status check, rollback to manual order entry if neededThe customer signs off the runbook; hypercare starts on go-live day

What are the steps to harden a quote to order connector against custom dual-write maps?

Read, compare, validate, make writes idempotent, log, reconcile and rehearse. The first two steps are per customer; the rest are built once into the connector and configured per customer.

  • Read the active mappings: Read the customer's dual-write table maps for quotation headers and lines and sales order headers and lines: status, field mappings, direction, filters and transforms, and the column metadata on both sides. Store the result as a mapping profile for that customer.
  • Compare the profile with what the connector needs: List every column the connector writes or reads, and mark each one as mapped as expected, mapped differently, filtered, unmapped or newly required. Every difference becomes a configuration value or a validation rule.
  • Validate before sending: Before a quote or order leaves the connector, check product, unit, legal entity, site and warehouse, required columns and choice values against the mapping profile, and reject the document with a readable reason rather than sending part of it.
  • Make every write idempotent: Give each quote, order and line the connector's own identifier in an alternate key column, write by upsert on that key, and retry only failed lines, so a retry updates instead of duplicating.
  • Log every line: Record each line with a correlation identifier, the payload sent, the response from each side and the final state, in a log the customer administrator can read as well as your support team.
  • Reconcile both sides: After every quote to order conversion, count lines and sum quantities and amounts in Dynamics 365 Sales and in Finance and Operations, and raise an exception for any document where the two do not match.
  • Rehearse on a copy of the customer environment: Run the full quote to order path on a copy of the customer's environments with their real maps, plugins and products, including a paused map and a rejected line, before go-live.

What does Solzet deliver for quote to order connectors on dual-write?

Solzet works on both sides of this boundary: Dataverse and Dynamics 365 Sales on one side, Finance and Operations and its X++ extensions on the other. For a connector vendor or a customer, we read the dual-write maps and metadata in the customer's environments, write the mapping profile and difference list, and build the hardening into the connector or around it: pre-send validation, alternate keys and upsert, per-line logging inside a managed solution, the reconciliation report and the go-live rehearsal. Where the right fix is on the Finance and Operations side, such as a default for a mandatory field added by an extension, we make it there. Our own senior consultants and developers do the work. The integration service is CRM and ERP integration, and the ERP side is Dynamics 365 Finance and Operations.

For the CRM side, buyers who would rather not carry Microsoft licensing can choose a custom CRM that integrates with Finance and Operations through its APIs. 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 are quote lines missing in Finance and Operations when dual-write shows no error?

Usually because a filter on the quotation line or sales order line map excludes them, or the map was paused when they were written. A filtered row is not an error, so nothing is reported. Read the customer's active maps, validate lines against the filters before sending, and reconcile line counts on both sides.

Can a connector rely on the standard dual-write table maps?

No. Customers and their partners change the maps: filters, unmapped columns, new mandatory fields and paused maps are common. A connector should read the active maps and metadata in each customer's environment and treat every difference as configuration or a validation rule.

How do you stop retries from creating duplicate order lines in Dataverse?

Give each line the connector's own identifier in a column with a Dataverse alternate key, write by upsert on that key through the Web API, and retry only the lines that failed. A repeated write then updates the existing line instead of creating another.

What happens to dual-write changes while a table map is paused?

Microsoft documents that changes made while a map is paused are queued and applied when it runs again; check the current documentation for your version. For a connector, a paused map means writes succeed in Dataverse and nothing reaches Finance and Operations yet, so check map status before sending a batch.

What should be checked before sending a quote line to Finance and Operations?

That the product is released to the legal entity, the unit has a conversion, site and warehouse are supplied where required, every required column has a value, choice values are valid, the line passes the map filters, and the line maps are running.

How long does it take to harden a quote to order connector before go-live?

A workable order of work fits six weeks: read the maps, add validation, add idempotent retry, add logging and reconciliation, rehearse on a copy of the customer environment, then go-live readiness. With less time, keep the order and narrow the scope.

Does Solzet work on both the Dataverse and the Finance and Operations side?

Yes. Solzet works on Dataverse and Dynamics 365 Sales and on Finance and Operations with X++, so the mapping analysis, the connector hardening and any fix on the ERP side are done by one team.

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.