cancel
Showing results for 
Search instead for 
Did you mean: 

OData call never returns the data

Former Member
0 Kudos

Experts,

Any thoughts on this one would be much appreciated.

  • I have an OData service that works perfectly fine in the source system.  I can test it successfully through the gateway client without issue.
  • I've imported the service into my VERY basic list app in WebIDE.  This is the code with the binding ...



  • All configuration is as another app that works as expected except, of course, for the OData service that is specific to this app.
  • I run the app, it thinks for a few seconds and returns no data.  It's at this point that I figure it's not finding its way through to SAP.
  • However, I can execute the OData service successfully from my HCP app instance with no issues ...



  • I can see logs in my cloud connector showing that the service is being accessed and that the call to my on premise SAP system is working.
  • I set a remote break-point in SAP and when I run the app, it fires the break-point and the method executes successfully with data but no data is returned to the app.



Does anyone know what I should be looking for?

Any help would be much appreciated as this is very frustrating.

Accepted Solutions (1)

Accepted Solutions (1)

aabhas_wilmar
Contributor
0 Kudos

Hi Brad,

What does it say in the console log in Chrome developer tools (or the browser's console)?

-Aabhas

Former Member
0 Kudos

Hmmmmmm, looks as though I have some issue on the way back out of the web server but I can't be sure.  Any ideas?

aabhas_wilmar
Contributor
0 Kudos

I have had issues with the $batch call so I disabled it in the Component.js inside init function using the following statement:

this.getModel().setUseBatch(false);

I am not sure of the URL being called on myintranet.local:8035.. it doesn't look like OData service. What are you fetching from there?

-Aabhas

Former Member
0 Kudos

Bizarre, I needed to inject that line to not use $batch.  I never had to do that on another app and it came up with that error as well, weird ...!

Anyway, that definitely solved the issue, thanks man!

aabhas_wilmar
Contributor
0 Kudos

Glad this resolved the issue, however, I hope some experts to explain why disabling $batch works and not when $batch mode is enabled. It could be to do with the way OData service is modelled in the back-end.

If anyone can explain this, that will be great. Ideally, we should be using $batch to improve network performance.

cheers,

Aabhas

Answers (0)