Magento 2.1.9 CE
PHP 7.0.22-0ubuntu0.17.04.1
MySQL 5.7.19-0ubuntu0.17.04.1
Upgrade Magento 2.1.9 to 2.2 CE with composer
composer require magento/product-community-edition 2.2 --no-update
composer update
php -f bin/magento setup:upgrade
Magento 2.2 updated
php -f bin/magento setup:upgrade returns:
...
Module 'Magento_Swatches':
Module 'Magento_SwatchesLayeredNavigation':
Module 'Magento_Tax':
Upgrading data.. postcode is a required field.
@friimaind, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
I am having the same issue. I am also trying to upgrade from 2.1.9 to 2.2.0. I run into a "postcode is a required field." error and the setup:upgrade dies. If I find anything out I will be sure to update it here.
Same issue. @magento-engcom-team, create a tax rule without postcode first, then setup:upgrade.. seems obvious.
Test properly before saying "Can not reproduce"!
Same issue here. To fix this check the table tax_calculation_rate. When the field tax_postcode is empty enter a *
Then the upgrade will work.
Thanks @JoostWan , according to my database this query fixed the issue:
UPDATE tax_calculation_rate SET tax_postcode = '*' WHERE tax_postcode IS NULL
Same Problem here, JoostWan's and friimaind's tipps fixed it.
@magento-engcom-team
I can reproduce the issue and it is only when you have existing rules with tax_postcode NULL. Maybe I will provide a fix for this issue.
@friimaind I supplied a pull request for this issue.
I'm working on it #SQUASHTOBERFEST
@friimaind, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
@magento-engcom-team did you try steps from https://github.com/magento/magento2/pull/11735? So basically you need to set null
manually to mentioned field in database to recreate circumstances of bug report.
@lewisvoncken I don't see this issue was ever eligible for #SQUASHTOBERFEST
Reproduced
@TomashKhamlai I also could reproduce and I have provided a fix in pull request #11735
Internal ticket to track issue progress: MAGETWO-82595
The issue has been fixed and delivered to 2.2-develop branch. Will be available in 2.2.2 release
@friimaind, thank you for your report.
The issue is already fixed in 2.2.2
Most helpful comment
Same issue here. To fix this check the table tax_calculation_rate. When the field tax_postcode is empty enter a *
Then the upgrade will work.