cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori UI5 "Failed to invoke: .. Unknown operation:" in OData V4

lgrabow7
Discoverer
0 Kudos
582

hello Community, 

I have the problem with UI5 development that I cannot call our action.

The error appears in the console: "Failed to invoke /PostGoodsMvT(...) - Error: Unknown operation: /PostGoodsMvT(...)"

I have already tested all the different methods from the OData Operations website OData Operations - Documentation - Demo Kit - SAPUI5 SDK (ondemand.com), but I always get the same e...

The metadata was created by the ‘SAP Fiori Application generator’ in Visual Studio Code. I have selected ‘Custom Page’.

Displaying data via CDS-views from the OData V4 service works without problems.

Only the action call does not work. My ABAP colleague set up the OData V4 according to the RAP instructions. I have tested another OData V4 service which works with a different app and I get the same error.

My Code: (For this example, I have kept the parameters static without input.)
Call Action:

lgrabow7_0-1718012549222.png

View:

lgrabow7_1-1718012573934.png

Metadata:

lgrabow7_2-1718012595529.png

Error:

lgrabow7_3-1718012647083.png

lgrabow7_4-1718012667336.png


Best regards,

Lukas

 

 

View Entire Topic
stefan_schreck
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Lukas,

I recommend checking the error response of your http request in the console (developer tools of the browser).
What is the error information that you can see here, in the error trace? 
And is there any further exception that you can read in the console?
Normally this gives a hint 

lgrabow7
Discoverer
0 Kudos

Hi Stefan,

The last screenshot shows the browser console.

lgrabow7_0-1718018963172.png