Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Update XSOData Modification Exit Error

$
0
0

I'm getting the error  "500 Dispatching Error" when I try to  use XSOData Modification Exit.

 

I only have this problem with update operation (PUT). POST operations work without any problem after i do the validation in "testCreate()" function ( see below) and I have the following files:

 

test.xsodata

service namespace "project.test_services" {

"project.data.test_models::model1.A" as "Atest"

     create using "project.test_services:testCreate.xsjslib::testCreate"

     update using "project.test_services:testCreate.xsjslib::testUpdate";

}

 

 

testCreate.xsjslib

function testCreate(param) {..}

 

testUpdate(param){ }  // even if it is an empty function i still get the dispatching error

 

My table has only one column called test and it has string content.

 

Here is how i do POST and PUT requests with a REST client extension in Chrome :

 

POST (works without any problem, for example with the following post request i have a new row with 'aaa' value in the table):

   url : https://myserver/project/test_services/test.xsodata/Atest

   Payload: { "test" : "aaa" }         

 

PUT (returns 500 dispatching error and for some reason I'm logged out from WebIde after this request) :

  url: https://myserver/project/test_services/test.xsodata/Atest('aaa')

  Payload: { "test": "bbb"}

 

 

What can cause this error and what should be done to solve this problem?

 

Thanks.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>