Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More

TaxEngineAdapter Does Not Support DML or Response Write-Back for Quote and Order Line Items

Publish Date: Jul 2, 2026
Description

When implementing a custom Apex class using the commercetax.TaxEngineAdapter interface to make callouts to a third-party tax engine, DML operations cannot be performed within the adapter transaction context to write response values back to QuoteLineItem or OrderItem records.

The following operations are blocked:

  • DML operations (maxDml=0)
  • Queueable jobs (maxQueueableCalls=0)
  • Future methods (maxFutureCalls=0)

Flexible tax contract mappings that auto-persist response values for Invoice and Credit Memo objects do not function the same way for Quote and Order objects.

Resolution

This is a known limitation in the current Revenue Cloud tax framework.

The TaxEngineAdapter enforces strict transaction limits that prevent any DML or asynchronous operations within the adapter context. Flexible tax contract mappings automatically persist response values for Invoice and Credit Memo objects, but this auto-persist behavior is not available for Quote and Order objects.

  1. Response data returned by the adapter is lost once execution completes with no mechanism to capture it downstream.

  2. No workaround currently exists.

This is logged as a feature request. 

Knowledge Article Number

005388355

 
Loading
Salesforce Help | Article