SAP Knowledge Base Article - Public

2980821 - 500 Internal Server Error: "Missing catalogID" or "Missing localeID" in new "catalog-service/v1" Learning OData API - 2H 2020 [LMS]

Symptom

Receiving 500 Internal Server Error: "Missing catalogID" or "Missing localeID" in "catalog-service/v1" Learning OData API (added in 2H 2020 release) when making any of the following calls:

GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed?

GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed/SchedulesFeed

Environment

SAP SuccessFactors Learning

Cause

Both catalogID and localeID are required inputs/parameters in the Catalog Service API

Resolution

Both catalogID and localeID are required inputs/parameters in the Catalog Service API and need to be provided in the search request as per the following examples:

Catalog Full Feed

  • GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed?$filter=criteria/catalogID eq '1' and criteria/localeID eq 'English'

Catalog Delta Feed

  • GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed?$filter=criteria/catalogID eq '1' and criteria/localeID eq 'English' and criteria/fromDate eq '1599160999000'

Show Classes/Scheduled Offerings (Full Feed)

  • GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed(catalogID='1')/SchedulesFeed?$filter=criteria/localeID eq 'English'

Show Classes/Scheduled Offerings (Delta Feed)

  • GET <tenant ID>/learning/odatav4/public/admin/catalog-service/v1/CatalogsFeed(catalogID='1')/SchedulesFeed?$filter=criteria/localeID eq 'English' and criteria/fromDate eq '1599160999000'

This relates to new catalog API in 2H2020: New API: Catalog Info

Keywords

SAP, SuccessFactors, Learning, LMS, Learning OData API, Catalog Search, catalog feed, catalog-service/v1, b2011 release, h2, 2h, 2020,500, error, , KBA , LOD-SF-LMS-ODA , Web Services OData , Problem

Product

SAP SuccessFactors Learning all versions