cancel
Showing results for 
Search instead for 
Did you mean: 

"[ODataMetadata] initial loading of metadata failed" error for Hybrid App

and23_julius
Participant
0 Kudos

Hi Experts,

all of a sudden, my previously working Hybrid app is having "[ODataMetadata] initial loading of metadata failed" error and seems to stop working.

Can anyone advise how I should trace the root cause? What I know as of now is that it seems the request does not even reach the gateway, as my _CREATE method breakpoint is not triggered.

Best Regards

Andre Julius

nabheetscn
Active Contributor
0 Kudos

I hope you are connecting SAP Gateway, can you please check in /IWFND/Traces and /IWFND/Error_log if you find any entries

Nabheet

and23_julius
Participant
0 Kudos

hi nabheet.madan3

Yes, I am using gateway...there's nothing in /IWFND/TRACES and /IWFND/ERROR_LOG... like I said, apparently it suddenly fail to reach gateway. The same app works few day back.

The web application version(desktop) also works fine.

Best Regards

Andre Julius

and23_julius
Participant
0 Kudos

Hi nabheet.madan3

Sorry...just to put things into context:

  • Web App (Desktop): works few days ago, still works now. NO error on initial metadata loading
  • Hybrid App (Online): works few days ago, no longer working now, no trace in gateway, WITH error on initial metadata loading

Best Regards

Andre Julius

Accepted Solutions (1)

Accepted Solutions (1)

former_member276237
Participant
0 Kudos

Hi Andre,

Most of the times that error is harmless. Have you verified that the destination is reachable and metadata is fetchable? (inside the Connectivity section of your app)? This is most likely a connection/configuraiton issue in the backend.

and23_julius
Participant
0 Kudos

Hi fardin.khanjani

For The "READ" part it's working OK(so I assume it is reachable)....the problem only occurs for "WRITE" part where there is no request being sent to the back end at all in the "Network" tab.

in this case, I don't think it's a backend issue right? could it be some kind of Hybrid-Odata v2 Incompatibility issue(This is just a wild guess)? lnoens ...is there any known issue? since the prototype I built based on your blog suddenly stops working.

Could it be because recent SMP is SP16 and I have SP15 installed in my PC?

Best Regards

Andre Julius

and23_julius
Participant
0 Kudos

Hi fardin.khanjani

Thanks for your advice, since you mentioned that the error should be harmless..I tried a few things, then I realize something...my app needs a "Flush" even though it is online. It did not behave like that last time. I'm still checking with Ludo on this matter by leaving a comment in his blog.

Best Regards

Andre Julius

Answers (1)

Answers (1)

LudoNoens
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Andre,

As mentioned on my blog, the offline app always works against the offline on-device store, no matter whether it is operating with or without network connection. You will need to flush and refresh. These actions could be automatically done, if the app detects the transitions in network connectivity.

Hope this clarifies.

Cheers,
Ludo