Numeric value out of range: 1690 BIGINT UNSIGNED

Description

Recently when making some cleanup on a Magento based store that was having over 550K products and we encountered a mySQL error in the Magento administration pages when trying to mass delete products.  It also prevented any further products from being deleted.

The solution isn't too far...

Error message

SQLSTATE[22003]: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in ‘(`YOURDB`.`q`.`items_count` – 1)’

Resolving the error

  1. Log into phpMyAdmin (or yyour prefered DBA tool)
  2. Do a backup (always do a backup first)
  3. Select the Magento database for your store
  4. Select the sales_flat_quote table
  5. Select the structure tab
  6. Select ‘change‘ on the ‘items_count‘ row
  7. Go to the drop-down list on the column named ‘Attributes‘ and change the value to the top option in the list, which is blank (no value), as opposed to the default selection ‘UNSIGNED‘ .
  8. Click save, and you're finished. You should now be able to delete your products without the error

Feel free to contact us if help is needed.
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Magento Best Practices

Magento can be very tricky.  And sometimes, it is getting quite confusing on how to properly...

How to add and edit email templates in Magento

To edit and add templates used for transactional email messages, log in to the admin panel of...

How to add and edit CMS static blocks in Magento

To add and edit static blocks, log in to the admin panel of your store and go to CMS...

How to add and edit attributes in Magento

Each product that you add and edit has a set of attributes that you can configure such as name,...

How to add and edit polls in Magento

Adding and editing polls in Magento is easy. You can do that from the admin panel. Go to...