Questions tagged [data-patch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Missing required argument $restrictedValues while running customer patch in magento 2.4.5

I upgraded the magento version from magento 2.3.6-p1 to magento 2.4.5-p1. I got the issue while running the patch in Magento 2.4.5-p1 Missing required argument $restrictedValues of Xyz\Customer\Setup\...
Jaisa's user avatar
  • 2,556
0 votes
1 answer
676 views

Adding a product select attribute with a source in Magento 2.4

I've created a module to add a product attribute with a select input using a source for the options. I've used a data patch to add the attribute. I can see the patch in the patch_list table but it's ...
user3417608's user avatar
0 votes
1 answer
77 views

getting "URL key for specified store already exists." error when trying to apply data patch to update a cms page

I am trying to update a cms page through a data patch but, the patch is not applying. I get this error below Unable to apply data patch Vendor\Module\Setup\Patch\Data\CreateRegistryPage for module ...
LosMos's user avatar
  • 41
0 votes
1 answer
117 views

How to edit copyright text using data patch in Magento 2

In admin, copyright text can be edited like this: https://www.mageplaza.com/kb/how-update-copyright-notice-magento-2.html But how to edit copyright via data patch?
Narek Malkhasyan's user avatar
0 votes
3 answers
345 views

Magento 2.4 get template file in data patch

I'm trying to insert a template file as the content for the block I'm adding programmatically, but I'm not sure how this can be done. I've added the template file in view/frontend/templates/template-...
Frank Groot's user avatar
0 votes
3 answers
2k views

Magento 2.4 Unable to apply data patch: Area code is not set

While executing below data patch with setup:upgrade the following error appears in the console. Unable to apply data patch Vendor\Module\Setup\Patch\Data\ModuleName for module Vendor_Module. Original ...
Frank Groot's user avatar
0 votes
2 answers
1k views

When Magento upgrade 2.2.1 to 2.4.3 - Unable to apply data patch: module Magento_Tax

How to fix the below Error when magento upgrade 2.2.1 to 2.4.3. When I have run setup upgrade command then showing error. Unable to apply data patch Magento\Tax\Setup\Patch\Data\UpdateTaxRegionId for ...
Bhavesh Godhani's user avatar