cancel
Showing results for 
Search instead for 
Did you mean: 

Integrity constraint violation on setup:upgrade Magento 2.3.3

Integrity constraint violation on setup:upgrade Magento 2.3.3

After updating to 2.3.3. I get the following error for the Temando_Shipping module. I disabled the module but that gives errors when editing products. When I try to enable and run 'magento setup:upgrade' i again get this error.

3 REPLIES 3

Re: Integrity constraint violation on setup:upgrade Magento 2.3.3

I fixed it through a topic on stackexchange (thx @kolaente).

 

This looks like a bug in temando/module-shipping-m2 which is required by magento/product-community-edition. The data is added in vendor/temando/module-shipping-m2/Setup/UpgradeData.php:73

I first checked if there are any differences between the content in my db and the data the module upgrade step tries to insert:

 

I first checked if there are any differences between the content in my db and the data the module upgrade step tries to insert:

 

select * from temando_product_attribute_mapping;

In my case, the data was identical, so I deleted it with

 

delete from temando_product_attribute_mapping;

and ran bin/magento setup:upgrade again. This time, it worked without issues.

Still, this is more a workaround than a solution. I've sent the author of the package a mail to inform him of the problem.

Re: Integrity constraint violation on setup:upgrade Magento 2.3.3

Hi @adegoede ,

It's not working for me. when I checked my DB there is no table 'temando_product_attribute_mapping' exists and still, I am getting that issue during setup upgrade step. Can you please let me know how can I resolve that issue?

 

Thanks,

Vipul Mishra

Re: Integrity constraint violation on setup:upgrade Magento 2.3.3

resolved my problem, thk u