Try our conversational search powered by Generative AI!

Issue with required fields in cms commerce -> catalog

Vote:
 

Issue with required fields in cms commerce -> catalog

message: "Unable to load /episerver/cms/Stores/contentdata/ status: 500", stack: ".cache["dojo/errors/create"]/

_4e7@http://xxx.xxx.xx/episerver/Shell/7.7.0.0/ClientResources/dojo/dojo.js:15:132034

_4f3@http://xxx.xxx.xx/episerver/Shell/7.7.0.0/ClientResources/dojo/dojo.js:15:132309

", response: Object, status: 500, responseText: "

 

This issue occurs when create new category(cms-commerce-catelog-new-category). Type of category was inherited from NodeContent. This type has 3 fields with attribute [Required]. Code snippet:

[CatalogContentType(GUID = "GUID", MetaClassName = MetaClasses.Category)]

   [AvailableContentTypes(Include = new[] {typeof(CategoryItemContent), typeof(VariationItemContent)})]

   public class CategoryItemContent : NodeContent

   {

[Required]

       [Display(GroupName = "System")]

       public virtual string DisplayNameSV { get; set; }

 

       [Required]

       [Display(GroupName = "System")]

       public virtual string DisplayNameNO { get; set; }

 

       [Required]

       [Display(GroupName = "System")]

       public virtual string DisplayNamePL { get; set; }

   }

 

Version of product:

#114857
Dec 24, 2014 19:11
Vote:
 

Somebody knows this error?

#114858
Dec 24, 2014 19:13
Vote:
 

Withou actual stacktrace, I can't say what is wrong, but instead of defining three properties like that, you can just use the pre-defined DisplayName metafield, which was culture-specific. 

Regards,

.Q

#114859
Dec 25, 2014 1:44
Vote:
 

http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=114474&epslanguage=en
I use required fields, because user can set the "DisplayName" and "Name in Url" before create new category.

Regards,

#115124
Edited, Jan 09, 2015 13:37
Vote:
 

All information from console of firebug:

Object { message: "Unable to load /episerver/cms/Stores/contentdata/ status: 500", stack: ".cache["dojo/errors/create"]/</</_30e@http://xxx.xxx.xxx/episerver/Shell/7.7.0.0/ClientResources/dojo/dojo.js:15:77051

_4e7@http://xxx.xxx.xxx/episerver/Shell/7.7.0.0/ClientResources/dojo/dojo.js:15:132034

_4f3@http://xxx.xxx.xxx/episerver/Shell/7.7.0.0/ClientResources/dojo/dojo.js:15:132309

", response: Object, status: 500, responseText: "

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://ogp.me/ns/fb#">

 

<head>

 

   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

 

   <meta charset="utf-8" /><script type="text/javascript">window.NREUM||(NREUM={});NREUM.info = {"beacon":"beacon-4.newrelic.com","errorBeacon":"bam.nr-data.net","licenseKey":"6730f0dd10","applicationID":"4504195","transactionName":"Z1cHYkACCx...=","queueTime":0,"applicationTime":1044,"ttGuid":"E40CE7B3B4CC3C42","agent":"js-agent.newrelic.com/nr-476.min.js"}</script><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o?o:e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({QJf3ax:[function(t,e){function n(t){fu"[…], xhr: XMLHttpRequest }

 

.cache["dojo/_base/xhr"]/</_48f() dojo.js:15

.cache["dojo/_base/xhr"]/</dojo._ioSetArgs/<() dojo.js:15

_2c4() dojo.js:15

_2c2() dojo.js:15

.cache["dojo/_base/Deferred"]/</dojo.Deferred/this.errback() dojo.js:15

_2c4() dojo.js:15

_2c2() dojo.js:15

.cache["dojo/_base/Deferred"]/</dojo.Deferred/this.errback() dojo.js:15

.cache["dojo/_base/xhr"]/</dojo.xhr/<() dojo.js:15

.cache["dojo/Deferred"]/</_2e9() dojo.js:15

.cache["dojo/Deferred"]/</_2e3() dojo.js:15

.cache["dojo/Deferred"]/</_2e8/this.reject() dojo.js:15

.cache["dojo/Deferred"]/</_2ef() dojo.js:15

.cache["dojo/Deferred"]/</_2e9() dojo.js:15

.cache["dojo/Deferred"]/</_2e3() dojo.js:15

.cache["dojo/Deferred"]/</_2e8/this.reject() dojo.js:15

.cache["dojo/Deferred"]/</_2ef() dojo.js:15

.cache["dojo/Deferred"]/</_2e9() dojo.js:15

.cache["dojo/Deferred"]/</_2e3() dojo.js:15

.cache["dojo/Deferred"]/</_2e8/this.reject() dojo.js:15

.cache["dojo/Deferred"]/</_2ef() dojo.js:15

.cache["dojo/Deferred"]/</_2e9() dojo.js:15

.cache["dojo/Deferred"]/</_2e3() dojo.js:15

.cache["dojo/Deferred"]/</_2e8/this.reject() dojo.js:15

.cache["dojo/Deferred"]/</_2ef() dojo.js:15

.cache["dojo/Deferred"]/</_2e9() dojo.js:15

.cache["dojo/Deferred"]/</_2e3() dojo.js:15

.cache["dojo/Deferred"]/</_2e8/this.reject() dojo.js:15

_4e7() dojo.js:15

_4f3()

Regards,

#115127
Edited, Jan 09, 2015 13:56
Vote:
 

I tried your code with our latest version (8.7, which should be released soon), and it works fine. I suspect it also works well on 7.7.

Did you change this 

[CatalogContentType(GUID = "GUID", MetaClassName = MetaClasses.Category)]

 to actual GUID instead of "GUID"?

You can also see what was input to log file and post it here.

Regards.

/Q

#115150
Jan 12, 2015 4:10
Vote:
 

There is actual GUID.

Error in log:

2015-01-12 08:37:08,474 [10] ERROR EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET
System.Web.HttpException (0x80004005): Request timed out.

This error reproduces only on the test maschine.(not reproduce on the local maschine)

Regards.

#115161
Edited, Jan 12, 2015 10:26
Vote:
 

Info Log:

2015-01-12 12:21:49,705 [13] INFO EPiServer.Shell.Search.SearchProvidersManager: Listing search providers within search area: Commerce
2015-01-12 12:21:49,721 [13] INFO EPiServer.Shell.Search.SearchProvidersManager: Loading search settings
2015-01-12 12:21:49,783 [17] INFO EPiServer.Shell.Search.SearchProvidersManager: Listing search providers within search area: CMS/files
2015-01-12 12:21:49,783 [17] INFO EPiServer.Shell.Search.SearchProvidersManager: Loading search settings
2015-01-12 12:21:58,330 [4] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 11:26:56 (cc183d36-71a7-4159-a107-50116c40a941)
2015-01-12 12:22:58,331 [4] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 11:26:56 (cc183d36-71a7-4159-a107-50116c40a941)
2015-01-12 12:23:58,332 [4] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 11:26:56 (cc183d36-71a7-4159-a107-50116c40a941)
2015-01-12 12:24:58,333 [4] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 11:26:56 (cc183d36-71a7-4159-a107-50116c40a941)
2015-01-12 12:25:54,131 [36] ERROR EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET
System.Web.HttpException (0x80004005): Request timed out.
2015-01-12 12:25:54,162 [36] INFO EPiServer.Web.Routing.Segments.NodeSegment: Due to strict language routing routing, content with id '1' on language 'en' have urlsegment '' was not returned since there is no fallback rule from 'sv' to 'en'
2015-01-12 12:25:58,334 [4] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 11:26:56 (cc183d36-71a7-4159-a107-50116c40a941)

Regards.

#115171
Edited, Jan 12, 2015 13:15
Vote:
 

INFO from ALL log:

...

2015-01-12 14:08:56,363 [16] DEBUG EPiServer.Commerce.Catalog.Provider.Persistence.NodeContentCommitter: Calling 'CommitAssets' with parameter values: Castle.Proxies.CategoryItemContentProxy, Mediachase.Commerce.Catalog.Dto.CatalogNodeDto

2015-01-12 14:08:56,660 [30] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 13:16:56 (cc183d36-71a7-4159-a107-50116c40a941)

2015-01-12 14:09:44,254 [17] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/5/ROOT, Type: Hello, Sent: 01/12/2015 13:09:42

2015-01-12 14:09:44,254 [13] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/2/ROOT, Type: Awesome, Sent: 01/12/2015 13:09:44

2015-01-12 14:09:44,254 [13] DEBUG EPiServer.Events.Remote.EventReplicationWCFProviders: Event successfully raised with event replicator

2015-01-12 14:09:44,254 [25] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/6/ROOT, Type: Awesome, Sent: 01/12/2015 13:09:44

2015-01-12 14:09:56,661 [30] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 13:16:56 (cc183d36-71a7-4159-a107-50116c40a941)

2015-01-12 14:10:32,630 [25] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/6/ROOT, Type: WhatsUp, Sent: 01/12/2015 13:10:32

2015-01-12 14:10:32,661 [23] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/2/ROOT, Type: Awesome, Sent: 01/12/2015 13:10:32

2015-01-12 14:10:32,677 [23] DEBUG EPiServer.Events.Remote.EventReplicationWCFProviders: Event successfully raised with event replicator

2015-01-12 14:10:32,739 [39] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/5/ROOT, Type: Awesome, Sent: 01/12/2015 13:10:32

2015-01-12 14:10:48,036 [34] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/2/ROOT, Type: WhatsUp, Sent: 01/12/2015 13:10:48

2015-01-12 14:10:48,036 [34] DEBUG EPiServer.Events.Remote.EventReplicationWCFProviders: Event successfully raised with event replicator

2015-01-12 14:10:48,036 [17] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/6/ROOT, Type: Awesome, Sent: 01/12/2015 13:10:48

2015-01-12 14:10:48,052 [25] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:51da5053-6af8-4a10-9bd4-8417e48f38bd param:ServerName: XXXWEBTEST, ApplicationName: /LM/W3SVC/5/ROOT, Type: Awesome, Sent: 01/12/2015 13:10:48

2015-01-12 14:10:56,661 [30] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 13:16:56 (cc183d36-71a7-4159-a107-50116c40a941)

2015-01-12 14:11:53,787 [19] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:ec08ca8d-b142-4144-8602-78d41cca737c param:EPiServer Common-_-setting-_-periodical__task__EventCounterAggregation__last__run

2015-01-12 14:11:53,787 [35] DEBUG EPiServer.Events.Remote.EventReplicationWCFProviders: Event successfully raised with event replicator

2015-01-12 14:11:53,803 [19] DEBUG EPiServer.Events.Clients.Event: Method called with eventId:1b5bf515-7b5e-457d-a8cd-ec499728fedc param:EPiServer.Common.PeriodicalTask+PeriodicalTaskEventData

2015-01-12 14:11:53,819 [34] DEBUG EPiServer.Events.Remote.EventReplicationWCFProviders: Event successfully raised with event replicator

2015-01-12 14:11:56,662 [30] INFO EPiServer.Scheduler.SchedulerService: No new scheduled jobs, currently waiting for 01/12/2015 13:16:56 (cc183d36-71a7-4159-a107-50116c40a941)

2015-01-12 14:12:00,975 [16] ERROR EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET

System.Web.HttpException (0x80004005): Request timed out.

...

Regards.

#115248
Jan 12, 2015 14:52
Vote:
 

Perhaps, the issue is reproduced because we implemented custom change queue setup. After create category, method "NotifyChanges" is invoked. Maybe this error? How resolve this problem?

Regards.

#115307
Jan 13, 2015 15:34
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.