November Happy Hour will be moved to Thursday December 5th.

Autosave sometimes does not work and gives different "Could not save property" error popups.

Vote:
 
Sometimes the autosave does not work and gives one of the below errors in a small popups:

"Could not save property. The page may have been changed by another user. Please reload the page"
"Could not save property, Please reload the page"


Reloading, as the error message suggests sometimes works. But, other times it leaves all fields locked for editing, and you need to click on to another page and then back to re-enable editing - and start over.

Has anyone experienced this and eventually have some tips for debugging and solving it?

It's CMS v12.22.1

Thanks in advance and best regards.
#310153
Edited, Oct 06, 2023 8:22
Vote:
 

Anyone has anything to this one?

#311491
Oct 26, 2023 8:58
Manoj Kumawat - Oct 26, 2023 9:46
Did you have any console errors or check in network tab if there is any fail request. This could potentially lead you to the root cause. I had this kind of issue when I had to update an existing property with a different datatype. Somehow property sync was not working. So I had to create another property. Check if you have the same scenario.
Vote:
 

You can probably see more information from log files. Without a full stacktrace it's almost impossible to understand what is wrong 

#311496
Oct 26, 2023 9:55
Vote:
 

I know it's been a few months, but we are also seeing this error. The log files are not showing anything useful. We do see this message in the dev console:

_317 {message: 'Unable to load /EPiServer/cms/Stores/contentdata/159007_467443 status: 409', response: {…}, status: 409, responseText: '[{"severity":3,"errorMessage":"Object reference not set to an instance of an object."}]', xhr: XMLHttpRequest, …}
message
: 
"Unable to load /EPiServer/cms/Stores/contentdata/159007_467443 status: 409"
response
: 
data
: 
"[{\"severity\":3,\"errorMessage\":\"Object reference not set to an instance of an object.\"}]"
getHeader
: 
ƒ _507(_508)
options
: 
TMP {method: 'POST', handleAs: 'text', ioArgs: {…}, headers: {…}, data: '{"id":"159007_467443","properties":{"title":"\\"test\\""},"action":513}'}
status
: 
409
text
: 
"[{\"severity\":3,\"errorMessage\":\"Object reference not set to an instance of an object.\"}]"
url
: 
"/EPiServer/cms/Stores/contentdata/159007_467443"
xhr
: 
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
[[Prototype]]
: 
Object
responseText
: 
"[{\"severity\":3,\"errorMessage\":\"Object reference not set to an instance of an object.\"}]"
status
: 
409
xhr
: 
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
stack
: 
"Error: Unable to load /EPiServer/cms/Stores/contentdata/159007_467443 status: 409\n    at new _317 (https://www.bdc12.local:5002/EPiServer/Shell/12.25.1/ClientResources/dojo/dojo.js:15:78148)\n    at _2f1._4f2 [as handleResponse] (https://www.bdc12.local:5002/EPiServer/Shell/12.25.1/ClientResources/dojo/dojo.js:15:133806)\n    at XMLHttpRequest._4fe (https://www.bdc12.local:5002/EPiServer/Shell/12.25.1/ClientResources/dojo/dojo.js:15:134085)"
[[Prototype]]
: 
Error
#314565
Dec 22, 2023 18:42
Vote:
 

Our customer has encountered this issue as well but we couldn't reproduce it since there's no way to trigger the error. We suggested that the customer has their devtools open during the edit process and send the logs to us if they encounter a problem but the error has not happened since then. They did tell us, however, that the error seems to happen more often when working with blocks in a content area. As of today, we still have an open ticket with the support but we have no error log to send to them.

#315405
Jan 10, 2024 13:41
Vote:
 

I have a similar error after upgrading the package

Payload:

  1. {id: "192078_260375", properties: {readingDuration: "4"}, action: 513}
    1. action: 513
    2. id: "192078_260375"
    3. properties: {readingDuration: "4"}
      1. readingDuration: "4"

Response:
[
    {
        "severity": 3,
        "errorMessage": "Object reference not set to an instance of an object."
    }
]

Log:

2024-07-01 21:09:31.487 +10:00 [ERR] An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Object.GetType()
   at EPiServer.Validation.DataAnnotationsValidator`1.ValidateInstance(Object instance, List`1 validationResult, ValidationContext validationContext)
   at EPiServer.Validation.DataAnnotationsValidator`1.ValidateInstance(Object instance, List`1 validationResult, ValidationContext validationContext)
   at EPiServer.Validation.DataAnnotationsValidator`1.Validate(T instance)
   at EPiServer.Validation.Internal.ContextValidatorWrapper`2.Validate(Object instance)
   at EPiServer.Validation.Internal.ValidationService.ValidateRecursively(Object instance, Object context, HashSet`1 visitedInstances)
   at EPiServer.Validation.Internal.ValidationService.Validate(Object instance)
   at EPiServer.Cms.Shell.UI.Rest.Internal.ContentDataStore.<>c__DisplayClass20_1.<Validate>b__1(IValidationService x)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.ToList()
   at EPiServer.Cms.Shell.UI.Rest.Internal.ContentDataStore.<>c__DisplayClass20_0.<Validate>b__0(IContent content)
   at EPiServer.Cms.Shell.UI.Rest.Internal.RestStatusUtil.ExecuteWithSecurityCheck[T](ContentReference contentLink, IContentLoader contentLoader, AccessLevel accessLevel, Func`2 func)
   at EPiServer.Cms.Shell.UI.Rest.Internal.ContentDataStore.Validate(ContentReference id, ValidationFilering filter)
   at lambda_method624(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Mediachase.Commerce.Anonymous.Internal.AnonymousIdMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Geta.NotFoundHandler.Infrastructure.Initialization.NotFoundHandlerMiddleware.InvokeAsync(HttpContext context, RequestHandler requestHandler)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

#324762
Jul 01, 2024 11:11
* 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.