Genpact Cora Knowledge Center

Support

Exception 'ExEntityDataModelCannotBeAccessed' when calling OData Service

Description

When you call a Cora SeQuence OData Service, the exception ExEntityDataModelCannotBeAccessed displays in Event Viewer and Fiddler. HTTP Error code 500.

Cause

OData Service for the requested data model is disabled. By default, the OData feature is disabled.

Affected Versions

7.7 and later.

Solution

Use the data model wizard to explicitly enable the OData Service endpoint.

  1. From a Form activity, open the data model wizard.
  2. Click Data Model > Advanced Options.
  3. From the OData Services tab, select Enable OData Services for this data model.
  4. Enable OData Service.
  5. Click OK.