[SOLVED] 412 error save failed

I have an app that previously worked normally. Since the update there are errors in some schemes. I can create a record, but I cannot edit or delete it afterwards.

The logging stops and I don’t see the complete error message.

However, I have no idea what that could be?

Result of the request:

{“message”:“Requested version 1 for object ‘35e8178d-1319-4344-a4f8-940dcfb00fbb’ (type Squidex.Domain.Apps.Entities.Contents.ContentGrain), but found 0.”,“statusCode”:412}

Canceled error message:

{

“logLevel”: “Error”,

“action”: “GrainInvoked”,

“status”: “Failed”,

“grain”: “Squidex.Domain.Apps.Entities.Contents.ContentGrain”,

“grainMethod”: “System.Threading.Tasks.Task\u00601[Squidex.Infrastructure.Orleans.J\u00601[System.Object]] ExecuteAsync(Squidex.Infrastructure.Orleans.J\u00601[Squidex.Infrastructure.Commands.IAggregateCommand])”,

“exception”: {

"type": "Squidex.Infrastructure.DomainObjectVersionException",

"message": "Requested version 1 for object \u002735e8178d-1319-4344-a4f8-940dcfb00fbb\u0027 (type Squidex.Domain.Apps.Entities.Contents.ContentGrain), but found 0.",

"stackTrace": "   at Squidex.Infrastructure.Commands.DomainObjectGrainBase\u00601.InvokeAsync[TCommand](TCommand command, Func\u00602 handler, Mode mode) in D:\\Offline Daten\\Source\\squidex\\backend\\src\\Squidex.Infrastructure\\Commands\\DomainObjectGrainBase.cs:line 162\r\n   at Squidex.Infrastructure.Commands.DomainObjectGrainBase\u00601.ExecuteAsync(J\u00601 command) in D:\\Offline Daten\\Source\\squidex\\backend\\src\\Squidex.Infrastructure\\Commands\\DomainObjectGrainBase.cs:line 218\r\n   at Squidex.Domain.Apps.Entities.Contents.OrleansCodeGenContentGrainMethodInvoker.Invoke(IAddressable grain, InvokeMethodRequest request) in D:\\Offline Daten\\Source\\squidex\\backend\\src\\Squidex.Domain.Apps.Entities\\obj\\Release\\netcoreapp3.0\\Squidex.Domain.Apps.Entities.orleans.g.cs:line 1163\r\n   at Orleans.Runtime.GrainMethodInvoker.Invoke()\r\n   at Squidex.Infrastructure.Orleans.StateFilter.Invoke(IIncomingGrainCallContext context) in D:\\Offline Daten\\Source\\squidex\\backend\\src\\Squidex.Infrastructure\\Orleans\\

I’m submitting a…

  • [X] Bug report

Environment

  • [X] Self hosted with IIS

Version: Last Master

Thanks, I will have a look today.

Thank you very much :slight_smile:

I cannot reproduce it. Can you provide me a backup of your app?

I sent you a private message with the download.

1 Like

I think I have the fix and pushed it, but I am not 100% sure.

works fine again :slight_smile:
Many thanks

1 Like