Loading
ただいま大変多くのお問い合わせをいただいており、ご連絡までにお時間を頂戴しております続きを読む

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

公開日: Jul 2, 2026
説明

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.

解決策

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. 

ナレッジ記事番号

005388355

 
読み込み中
Salesforce Help | Article