Limitations
Where OData and Atscript disagree, the limitation is explicit: an operation that cannot be expressed is refused with a clear error before any request, and left out of /meta where /meta can say so. Nothing is emulated in silence. This page lists what is not supported, why, and what to do instead.
Not supported yet
Planned.
- Draft editing. A draft-enabled entity set (
Common.DraftRoot,Common.DraftNode, as RAP and SAP CAP declare them) is read and counted for its active entities: a read whose filter has no condition onIsActiveEntitygetsIsActiveEntity eq true. A read by key reads the key it is given. Every write to such a set is refused before any request,400NOT_SUPPORTEDon both hosts (the engine's refusal,ODataWriteErrorDRAFT_NOT_SUPPORTED, is the error'scause), andcrudlists none.
Also on the list for later, without a date: JSON $batch, OData v2 analytical services, parameterized entity sets, OData deep insert through the server, value lists from OData v2 annotation documents, singletons and media streams.
By design
Writes
- No transactions. Multi-row and nested writes cannot roll back; the rows written before a failure stay.
- Last write wins without the version token, and for every delete. The ETag the host reads right before such a write only satisfies the service's
If-Matchrequirement. See Writes and Concurrency. - No writes by filter, no field operators (
$inc,$mul), no integer versions. - A computed complex value or collection that the type requires has to be sent on create (it is then dropped): only scalars get
@db.default.store. - Immutable and update-only properties carry no annotation, so a form offers them in both modes; a change the service would refuse is dropped without notice. A replace demands non-nullable immutable properties, which are then dropped.
$batch
- Multipart only, on OData v2 and v4: no JSON batch.
- Nothing is atomic beyond an explicit changeset, or an action on several rows grouped
changeSet. The writes of one pass, auto-batched, are each a changeset of their own; so are the rows of an array insert and of an action groupedisolated, the default: a failed row leaves the others applied. See Several rows at once and Several rows. - Dependent requests are never in one batch: a write's pre-read goes out before it, a paging link or a read after a
412after it. - A call aborted after its batch went out stops waiting, but its part still runs.
- The browser's network tab shows
$batchrequests;batch: falsesends a call alone. See Batching.
Reads
- Free-form regular expressions cannot be translated: only
^literal,literal$andliteral. - Case-insensitive matching depends on the service accepting
tolower(thestandarddialect); see Dialects. - Mandatory filters are advisory. Reads are sent without them, and a service that needs one answers
400with its message. Atscript UI has no notion of a mandatory filter yet. - Undeclared properties (open types, dynamic properties) cannot be used.
- Reads through a navigation path (
OrderSet('1')/Items) are not used; a set that is not addressable is reached through$expandfrom its parent.
Relations
- OData v2 has no filter or sort inside an expansion: such a
$withentry is refused, never sent unscoped. - No paging inside
$with, and no version token on related rows. - One service per relation.
- Navigations of types in an OData inheritance hierarchy are relations without foreign keys (
@db.rel.store): they load, but give no foreign-key value help.
Aggregation
- OData v4
$applyonly, on a set that declares it. OData v2 analytical sets (sap:semantics="aggregate") are not aggregated. - No
count/countDistincton an SAP S/4HANA® or SAP Gateway® service; no calendar buckets, expressions,first/last, conditional aggregates, field lists or two-level aggregates on either host. See Aggregation.
Models
- One language for the labels: the one the file was saved in, which the hosts ask for when they read the live
$metadata. Labels in each user's own language are not supported. - Live types have limits: a type used before the connection is the saved one, your own
extendsand property references keep the saved structure, one generated module holds one live version per process, and a RAP service costs one read per value-help document on every connect. See Live Metadata. - The server reads the live
$metadataonce, at start: restart it to pick up a changed service. - One value list per property: the first (unqualified first). Lists in another service, in OData v2 annotation documents outside the
$metadata, and after the first reference of a value-help service, are not bound. See Value Helps. - Not emitted: singletons, media streams,
Edm.Stream, geography and geometry,Edm.Untyped; navigations without exactly one target entity set. Each is listed in the trailer of the.asfile. - Presets only: a service uses the
sapor thestandarddialect as a whole, no single switches.
Hosts
- The browser client needs same-origin access or a proxy. SAP systems rarely allow cross-origin calls.
- The fetch helper authenticates with basic authentication or headers only (no OAuth flow or client certificate; put a token in
--header), and a self-signed certificate needs Node'sNODE_EXTRA_CA_CERTS.
Host differences
The two hosts agree on everything the core decides: requests, refusals, write rules, message mapping. They differ where the host is the reason:
| Topic | Browser client | Server |
|---|---|---|
Reads in /meta | exactly what the set supports (counting, aggregation) | every query control of Moost DB, groupable also where the set cannot aggregate, no flag for a set that cannot count |
/pages without $sort | ordered by the sortable key properties | ordered by the key; refused when the service cannot sort by it |
Partial array operators ($insert, …) | refused; send the whole array | emulated by a read and a write of the whole array, last-write-wins |
| Related entities in an insert | one OData deep insert, through a foreign-key navigation | one write per row and table |
| Error of an array update or replace | names the failed row | names no row |
| Credentials | the browser's session with the service | the server's own, a technical user (see Credentials and Sessions) |
| An entity set gone live | ClientError 404 NOT_FOUND | 404 NOT_FOUND on every endpoint of its OData controller; 500 under Moost DB's own classes |
| Calls made at once | auto-batched: one $batch per pass, service and session | each request's calls go out as it makes them: no auto-batching |
| Filters by a related row | $some / $none on OData v4: any() for a to-many navigation, a navigation path in $filter for a to-one; none on v2 | a table call on OData v4: a to-one navigation's path, in $filter and in aggregate()'s $apply; a to-many navigation refused, 400 REL_FILTER_NOT_SUPPORTED. Over HTTP Moost DB answers $some RELATION_NOT_FILTERABLE unless the relation is @db.rel.filterable |
See it live
Open the network tab on the Overview: the browser app sends one $batch, the page of the Moost server app four REST calls. On Orders, only the Moost app offers all matching rows. Code: src/odata.ts; src/ui/api.ts.
See also
- Errors: what each refusal looks like.
- Type Safety: the mistakes the compiler does not catch.
- Dialects and Vendors.