Empty category CSV cells in Magento 2. How do you keep local text and inheritance?

2 min read

A printed grid with one empty cell on a blue work surface

Your category has a local description and the incoming CSV has an empty description cell. Choose skip_empty to keep that text. To compare the other policies, make a copy of one category with default text, local text in the target view, and different text in a second view. Module documentation.

Start with one row in update mode

Use the header entity_id,store_view_code,description and a row such as 81,target,. Substitute your test category ID and store view code. Select only description and keep the existing URL key. Run Dry Run for each policy. All three passed validation in the test. The descriptions and inheritance state stayed as they were.

Compare the saved target and comparison views

For description, Export / Import Categories 1.0.5 passed null to save for both clear_value and use_default. On a local data copy using Magento 2.4.9's EAV update logic, both removed the override in view 7, exposing the default text BASE-TEXT. When the override already held empty text, use_default skipped the save. The table shows a retained empty override as "". EAV update source.

Read after saving on the copy
Target view 7Comparison view 9
LOCAL-TEXT · skip_emptyOTHER-TEXT
BASE-TEXT · clear_valueOTHER-TEXT
BASE-TEXT · use_defaultOTHER-TEXT
"" · use_default with empty textOTHER-TEXT

Check the outcome on a copy of your catalogue

After a test import, reopen the category in both views and compare its description and inheritance state. If you are restoring the default and the field stays empty, inspect the inheritance setting in the category editor before importing a larger file.

When moving CSV files across installations, follow the guide to checking category IDs before import.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)