An empty source field in Magento 2. When can attribute sync clear the destination?

2 min read

Two product proofs on clipboards, one with an empty description field

A local product description can disappear after a manual copy if the mapping overwrites it with empty text. Start with one direction and one field such as short_description. Record the product and Store View on each side and check whether the source has its own text or uses Use Default Value. Adobe's product scope documentation.

Check which value reaches the target product

A local mapping in Product Attribute Copy 1.1.4 reads the attribute on the loaded source product and assigns that value to the target. For an allowed attribute, the module passes "" or null to save as well. If the loaded source contains text inherited from the default scope, that text is passed. Module documentation.

Compare three cases at the save boundary

In a local test, the source was view 3. The test recorded the values passed to the product repository for target view 7. The table shows what entered the save call. To see the persisted result in Magento, reload the product in the same view.

Test for short_description
Source readValue sent to saveTarget view
"" · Empty string""7
null · No value after loadingnull7
LINEN-DEFAULT · Inherited textLINEN-DEFAULT7

Confirm the behaviour on a test product

Record the existing local text and the target's Use Default Value setting. Keep just the test attribute in Allowed Attributes and turn off gallery and automatic copying for the trial. Run Copy Now on one mapping. Reopen the target product in the same view and compare its field and inheritance setting. Remove the attribute from the allowed list when the local description has its own editorial workflow.

If a local team is taking ownership of the description, see the guide to disconnecting content synchronisation.

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)