Try our conversational search powered by Generative AI!

Confusing message in Catalog Feed job if no catalog or configured catalog does not exist

Found in

EPiServer.Commerce 11.2.0

Fixed in

EPiServer.Commerce 11.2.2

(Or a related package)

Created

Aug 31, 2017

Updated

Sep 11, 2017

Area

Core

State

Closed, Fixed and tested


Description

If there is no catalog, or the configured catalog does not exist, a NullReferenceException is thrown. There should be an exception with a more informative message for this scenario.

2017-08-29 14:34:52,242 [85] ERROR EPiServer.DataAbstraction.ScheduledJob: Job EPiServer.Recommendations.Commerce.CatalogFeed.CatalogFeedJob failed for the job 'Export Product Feed' with jobId ='80dece2a-a7ee-4e61-a829-2f276b550406' 
System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.Recommendations.Commerce.CatalogFeed.CatalogFeedJob.SendExportRequest(Uri blobId, Uri siteUrl)
   at EPiServer.Recommendations.Commerce.CatalogFeed.CatalogFeedJob.Execute()
   at EPiServer.Scheduler.Internal.DefaultScheduledJobExecutor.<Execute>d__31.MoveNext()
System.NullReferenceException: Object reference not set to an instance of an object.
   at EPiServer.Recommendations.Commerce.CatalogFeed.CatalogFeedJob.SendExportRequest(Uri blobId, Uri siteUrl)
   at EPiServer.Recommendations.Commerce.CatalogFeed.CatalogFeedJob.Execute()
   at EPiServer.Scheduler.Internal.DefaultScheduledJobExecutor.<Execute>d__31.MoveNext()