Loading

Database.*Async() Operations Fail with UnsupportedOperationException on Salesforce Connect: OData 4.01 External Objects

Date de publication: Aug 4, 2026
Description

When using Salesforce Connect: OData 4.01 as an External Data Source, Apex DML operations using Database.*Async() methods (updateAsync, insertAsync, deleteAsync, upsertAsync) will fail with.

Error ID: XXXXX-XXXX (1704338935)

This is commonly seen after migrating from OData 2.0 to OData 4.01, as these methods were supported under the OData 2.0 adapter.

The OData 4.01 adapter requires an active, live connection for the entire duration of a write operation and does not support "disconnected row creation" — the pattern Database.*Async() methods they rely on.

This behavior is Working as Designed (WAD).

Résolution

Resolution: Replace Database.*Async() calls with their synchronous equivalents (Database.*Immediate()), or revert to OData 2.0 if Async() methods are required.

Numéro d’article de la base de connaissances

005390577

 
Chargement
Salesforce Help | Article