Skip to Content

OData is not defined in the SAP Portal

Hi everyone,

we developed a customer portal with SAP Fiori. The problem occurred during the users logout. If the user is within a fiori application context, the logout works properly. However, is the user within the portal context (web-content), the logout freezes and a semi transparent logout screen during its loading state is visible.

In the browser developer console, the following error is reciprocated:

Container-dbg.js:808 Uncaught ReferenceError: OData is not defined at k.y [as _suppressOData] (Container-dbg.js:808) at B (Container-dbg.js:1025) at k.logout (Container-dbg.js:1050) at Object.onClose (MeArea-dbg.controller.js:135) at f.G (MessageBox.js?eval:6) at f.a.fireEvent (EventProvider-dbg.js:228) at f.a.fireEvent (Element-dbg.js:431) at f.fireAfterClose (ManagedObjectMetadata-dbg.js:568) at f.h._handleClosed (Dialog.js?eval:6) at constructor.a.fireEvent (EventProvider-dbg.js:228)

At the first glance, I think the solution could be to insert "Odata" within the portal context. Unfortunately, I have no idea how this could be happen. I appreciate any help, thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.