Bug #965
closed0%
Description
While adding a recipe for a variant item, the system does not allow saving the recipe for a single variant. Users are required to add recipes for all variants before the recipe can be saved.

Also the overlapping issue is still appearing while adding recipes with multiple variants

Files
Updated by Deeksha Singh 3 days ago
- File clipboard-202606091357-1kpa4.png clipboard-202606091357-1kpa4.png added
- Status changed from Closed to Reopen
Getting this error when trying to add racipes
{
"messages": [],
"source": "Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry",
"exception": "The property 'RecipeItem.Id' has a temporary value while attempting to change the entity's state to 'Deleted'. Either set a permanent value explicitly, or ensure that the database is configured to generate values for this property.\n",
"errorId": "7583c9e9-9a64-4b82-8676-0dbad370904f",
"supportMessage": "Provide the ErrorId 7583c9e9-9a64-4b82-8676-0dbad370904f to the support team for further analysis.",
"statusCode": 500,
"stackTrace": " at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState entityState, Boolean acceptChanges, Boolean modifyProperties, Nullable1 forceStateWhenUnknownKey, Nullable1 fallbackState)\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet1.RemoveRange(IEnumerable1 entities)\n at Billkaro.Infrastructure.Orbit.Menu.RecipeService.UpsertSection(Recipe recipe, IReadOnlyCollection1 draftRevisions, RecipeEditorSectionRequest section, RecipeScopeType scopeType, HashSet1 incomingKeys) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Infrastructure\Orbit\Menu\RecipeService.cs:line 954\n at Billkaro.Infrastructure.Orbit.Menu.RecipeService.SaveRecipeEditorAsync(SaveRecipeEditorRequest request) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Infrastructure\Orbit\Menu\RecipeService.cs:line 313\n at Billkaro.Host.Controllers.Recipe.RecipeController.SaveRecipeEditor(SaveRecipeEditorRequest request) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Host\Controllers\Recipe\RecipeController.cs:line 89\n at lambda_method11050(Closure, Object)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\n at NSwag.AspNetCore.Middlewares.SwaggerUiIndexMiddleware.Invoke(HttpContext context)\n at NSwag.AspNetCore.Middlewares.RedirectToIndexMiddleware.Invoke(HttpContext context)\n at NSwag.AspNetCore.Middlewares.OpenApiDocumentMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Billkaro.Infrastructure.Middleware.SubscriptionAccessMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Infrastructure\Middleware\SubscriptionAccessMiddleware.cs:line 53\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at Billkaro.Infrastructure.Auth.CurrentUserMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Infrastructure\Auth\CurrentUserMiddleware.cs:line 16\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Billkaro.Infrastructure.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in E:\Workplace\Internal\2026\POS\billkaro\API\src\Infrastructure\Middleware\ExceptionMiddleware.cs:line 30"
}

Updated by sumit thakur 1 day ago
- Status changed from Reopen to Ready to QA
- Assignee changed from sumit thakur to Deeksha Singh
Updated by Deeksha Singh about 15 hours ago
- Status changed from Ready to QA to Closed