Fiori Elements: "Unsupported OData Version 4.01"
Fiori Elements: "Unsupported OData Version 4.01"

Fiori Elements: "Unsupported OData Version 4.01"

Published at January 30, 2024by Sören Schlegel

The following texts were partially or completely generated with the help of generative AI models.

When working with RAP and Fiori Elements, things are usually straightforward - but it can happen that the app stops working for no apparent reason and Fiori Elements displays an error message "Unsupported OData Version 4.01":

OData error message in the browser

Why - and where does this come from? How can I switch from regular OData 4.0 to OData 4.01? Short answer: This cannot be controlled (directly) by the developer. This switch can happen when you use features or data elements that are not supported by OData 4.0, which triggers a version change by the system. On the other hand, OData 4.01 is not supported by Fiori Elements.

In this case, the error was caused by using a field of type Decfloat:

cast( '47.11' as abap.decfloat16 ) as value,

We simply switched to the old-fashioned data type Decimal:

cast( '47.11' as abap.dec( 4, 2 ) ) as value,

And now everything works perfectly again 😉 .

Have fun!

Sören Schlegel

More articles

New!
New!