Error On Guest Customer Insert

Posted: October 11, 2018 at 5:32 AM Quote #213050
InvalidOperationException: The property 'Id' on entity type 'Customer' has a temporary value while attempting to change the entity's state to 'Unchanged'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.
Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions+<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in ApplicationBuilderExtensions.cs
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


Please Help
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 17, 2018 at 8:12 AM Quote #213295
Any update on this or on same post ?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Up-vote the answer, if it helps you! :)


Thank You
Raju Paladiya
-------------------------------------------------------
Project Leader and senior nopCommerce Developer
nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com
Posted: October 17, 2018 at 11:37 AM Quote #213304
probably you are leaving not nullable item as null or empty
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Dia [email protected]

Please vote for my comment if it is helpful for you.
Posted: October 17, 2018 at 3:30 PM Quote #213313
I’m getting same error during insert Product from plugin.

If I insert new product from admin area, it’s working fine.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Up-vote the answer, if it helps you! :)


Thank You
Raju Paladiya
-------------------------------------------------------
Project Leader and senior nopCommerce Developer
nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com
Posted: October 17, 2018 at 5:55 PM Quote #213316
rajupaladiya wrote:
I’m getting same error during insert Product from plugin.

If I insert new product from admin area, it’s working fine.



I was having the same issue as well, for test fill every item and try like that. I was using kendo autocomplete and when i left that area empty had same error. after filling it no error.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Dia [email protected]

Please vote for my comment if it is helpful for you.
Posted: October 18, 2018 at 9:22 AM Quote #213334
Hi It’s worked.

I prepare again model and pass in service with required values and it’s work.

Thank You
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Up-vote the answer, if it helps you! :)


Thank You
Raju Paladiya
-------------------------------------------------------
Project Leader and senior nopCommerce Developer
nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com
Posted: October 18, 2018 at 9:29 AM Quote #213335
rajupaladiya wrote:
Hi It’s worked.

I prepare again model and pass in service with required values and it’s work.

Thank You


yw. EF Core 2 is kinda interesting :)
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Dia [email protected]

Please vote for my comment if it is helpful for you.
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.