Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The exception "The 'ZZ' address format can't be deleted." cause a full site configuration sync to fail during step 1 of 4 "Synchronizing configuration".
Comment | File | Size | Author |
---|---|---|---|
#4 | address_syncing.patch | 727 bytes | R.Muilwijk |
Comments
Comment #2
ransomweaver CreditAttribution: ransomweaver commentedI confirm this problem; I see it when I do drush config-import. I have the need to export config and commit to VCS so that collaborators can import it, and if the file address.address_format.ZZ.yml is in the imported config, I get this error:
exception 'Drupal\Core\Entity\EntityStorageException' with message 'The 'ZZ' address format can't be deleted.' in modules/contrib/address/src/AddressFormatStorage.php:19
My solution is to gitignore address.*ZZ.yml in my config directory
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedSo we either need to replace the isUninstalling() check with isSyncing(), or have both. Needs research.
Comment #4
R.Muilwijk CreditAttribution: R.Muilwijk commentedThe attached patch let's me import the config on site-install.
Comment #5
mglamanRan into this, as well. Fixing issue status.
Comment #6
mglamanI believe this happens when you reset the site's UUID, so it will delete the format ZZ since the site's UUID does not match, but a new one will import.
Comment #7
mglamanYep! This does the trick :D
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedImproved the fix and committed.
Comment #11
R.Muilwijk CreditAttribution: R.Muilwijk at Trinoco commented