[Skip to main content](#vessel-content)

#   Can't create Tax Rule - sql error

##

- **[donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")**
- [![donaldmoore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3308-donaldmoore "View donaldmoore's Profile") Topic Author
- [ Offline](/forum/user/3308-donaldmoore)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 10 months ago -  12 years 10 months ago [\#135232](#135232) by [donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")  *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#135232 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")* was created by *[donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.2 Essential
-- Joomla version -- : 3.1.1
-- PHP version -- : 5.3
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : Error_message
1054 Unknown column 'taxation_post_code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej_hikashop_taxation&#96; ( &#96;taxation_id&#96;,&#96;category_namekey&#96;,&#96;tax_namekey&#96;,&#96;taxation_cumulative&#96;,&#96;taxation_post_code&#96;,&#96;zone_namekey&#96;,&#96;taxation_type&#96;,&#96;taxation_published&#96; ) VALUES ( '0','default_tax','Alabama','0','35213','state_Alabama_4261','individual','1' )

Last edit: 12 years 10 months ago by [donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")**
- [![donaldmoore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3308-donaldmoore "View donaldmoore's Profile") Topic Author
- [ Offline](/forum/user/3308-donaldmoore)

Less More

- Posts: 38
- Thank you received: 2
-
-

12 years 10 months ago [\#135235](#135235) by [donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")  Replied by *[donaldmoore](/forum/user/3308-donaldmoore "View donaldmoore's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#135235 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

I went ahead and added the column to the db and that seems to have solved it. Please let me know if this was the correct step. I wasn't certain if postal code was even supposed to be a parameter.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 10 months ago [\#135256](#135256) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#135256 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

Yes, that's the correct solution. The problem appeared because the column wasn't added to the table automatically during a previous update on your website for some reason.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[leoncnas](/forum/user/30331-leoncnas "View leoncnas's Profile")**
- [![leoncnas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30331-leoncnas "View leoncnas's Profile")
- [ Offline](/forum/user/30331-leoncnas)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago [\#138157](#138157) by [leoncnas](/forum/user/30331-leoncnas "View leoncnas's Profile")  Replied by *[leoncnas](/forum/user/30331-leoncnas "View leoncnas's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#138157 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

I can't create tax rules. When I tried, an error message appeared (after the click on the save button):
SQL=INSERT IGNORE INTO &#96;hm0ua_hikashop_taxation&#96; ( &#96;taxation_id&#96;,&#96;category_namekey&#96;,&#96;tax_namekey&#96;,&#96;taxation_cumulative&#96;,&#96;taxation_post_code&#96;,&#96;zone_namekey&#96;,&#96;taxation_type&#96;,&#96;taxation_published&#96; ) VALUES ( '0','default_tax','Europe','0','europe_tax','tax_europe_9728','','1' )

Hikashop version: 2.2.3 essential
Joomla version: 3.2.1

- [ ![h21cbe96.jpg](/forum/attachment/14476) ](/forum/attachment/14476 "h21cbe96.jpg") [ ](/forum/attachment/14476?download=1 "h21cbe96.jpg")
- [ ![hf7189d4.jpg](/forum/attachment/14477) ](/forum/attachment/14477 "hf7189d4.jpg") [ ](/forum/attachment/14477?download=1 "hf7189d4.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#138160](#138160) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#138160 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

It's the same problem. You updated HikaShop and a column in the database could not be added properly. Please follow the documentation here to add it manually and it will work:
[ www.hikashop.com/support/documentation/6...lity-issues.html#SQL](http://www.hikashop.com/support/documentation/61-hikashop-compatibility-issues.html#SQL)

The following user(s) said Thank You: [leoncnas](/forum/user/30331-leoncnas "View leoncnas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[monkey](/forum/user/8130-monkey "View monkey's Profile")**
- [![monkey's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8130-monkey "View monkey's Profile")
- [ Offline](/forum/user/8130-monkey)

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 4 months ago [\#158876](#158876) by [monkey](/forum/user/8130-monkey "View monkey's Profile")  Replied by *[monkey](/forum/user/8130-monkey "View monkey's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#158876 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

I have exactly the same error, using Hikashop Business 2.3.0
I have used Phpmyadmin, and added an extra column to the hikashop_taxation but I dont know what type, collation etc it needs to be.
This seems a serious update bug and I assume everyone has it if they started with an older version?

Please advice precisely what to do, as you link does not mention this case

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 4 months ago [\#158950](#158950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can't create Tax Rule - sql error](/forum/40-taxes/864104-cant-create-tax-rule-sql-error#158950 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 Essential -- Joomla version -- : 3.1.1 -- PHP version -- : 5.3 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : Error&#95;message 1054 Unknown column 'taxation&#95;post&#95;code' in 'field list' SQL=INSERT IGNORE INTO &#96;pp9ej&#95;hikashop&#95;taxation&#96; ( &#96;taxation&#95;id&#96;,&#96;category&#95;namekey&#96;,&#96;tax&#95;namekey&#96;,&#96;taxation&#95;cumulative&#96;,&#96;taxation&#95;post&#95;code&#96;,&#96;zone&#95;namekey&#96;,&#96;taxation&#95;type&#96;,&#96;taxation&#95;published&#96; ) VALUES ( '0','default&#95;tax','Alabama','0','35213','state&#95;Alabama&#95;4261','individual','1' )")*

Hi,

Not everyone has it.

As my link says, you need to get the SQL query from the install.hikashop.php file where you'll get the type, collation etc.
I'm not sure which column is the problem in your case:
For the taxation_post_code column it should be a varchar of 255 characters.
For the taxation_date_start and taxation_date_end columns it should be an int of 10 characters unsigned.
The rest of the options can be left as they are by default.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2NDEwNC1jYW50LWNyZWF0ZS10YXgtcnVsZS1zcWwtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.130 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
