4

I'm upgrading my Magento 2.3.2 to Magento 2.3.5 and I'm receiving this following error during upgrade:

Module ‘Magento_Wishlist’: Unable to apply data patch 
Magento\Wishlist\Setup\Patch\Data\CleanUpData for module Magento_Wishlist. Original exception 
message: Unable to unserialize value. Error: Syntax error

how could I solve it?

4 Answers 4

3

Probably happening because you have bundle products in your store.

Merchants who encounter this error after installing Magento 2.3.5 should upgrade to Magento 2.3.5-p1.

Merchants who encounter this error after installing Magento 2.3.4-p1 should upgrade to Magento 2.3.4-p2.

Reference: Wishlist error during upgrade to Magento versions 2.3.4-p1 or 2.3.5.

4
3

Getting below error at the time of bin/magento setup:upgrade

Module ‘Magento_Wishlist’: Unable to apply data patch Magento\Wishlist\Setup\Patch\Data\CleanUpData for module Magento_Wishlist. Original exception message: Unable to unserialize value. Error: Syntax error

Solution:

The simplest – delete OR move the

CleanUpData.php

file from the vendor folder

/vendor/magento/module-wishlist/Setup/Patch/Data/CleanUpData.php

1
0

Unable to apply data patch Sample\Module\Setup\Patch\Data\AddCustomDataPatch for module Sample_Module. Original exception message: Entity exist with same values.

this is an issue may also occur when you are trying to insert the data and that field is unique in DB, duplication is not allowing so it throw this error

delete that specific row from table.

delete from my_custom_table where value="unique_value";

-1

Run these commands from the root directory of your store.

composer require magento/product-community-edition 2.3.5-p1 --no-update

composer update

php bin/magento setup:upgrade

php bin/magento cache:clean

php bin/magento setup:static-content:deploy -f

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.