You have no items in your shopping cart.

Monday, December 9, 2024 10:03:41 AM

Category Entity Key ID Not Work

Posted: 2 years ago

#11629 Quote

deaqlees@gmail.com

Posted: 2 years ago

#11629 Quote
- Error Row 1. Cannot insert the value NULL into column 'Id', table 'nopthree.dbo.Category'; column does not allow nulls. INSERT fails. The statement has been terminated.

Thinking that the plugin sends the id for the category, I set it to prevent the category id from giving automatic values in the database, I don't think there is a problem in my xml table and plugin settings. I think that the plugin does not directly print the id drawn from the xml to the database.
Can you help with this issue, I'm opening this topic because I don't have a chance to edit the plugin.

<ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Category>
<Id>1</Id>
<Name>Grup</Name>
<Parent i:nil="true"/>
</Category>
<Category>
<Id>11</Id>
<Name>Marka</Name>
<Parent>1</Parent>
</Category>
<Category>
<Id>111</Id>
<Name>Model</Name>
<Parent>11</Parent>
</Category>
<Category>
<Id>1111</Id>
<Name>Pozisyon</Name>
<Parent>111</Parent>
</Category>
<Mapping>
<Category>1111</Category>
<Sku>123123</Sku>
</Mapping>
</ArrayOfCategory>

Entity;  Category
Entity Key (Product Key);    ID




Posted: 2 years ago

#11630 Quote

Support

Posted: 2 years ago

#11630 Quote
Check the list of mapping fields.
Did you create the field for a Key?

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved