craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

If source value is null, destination field does not get updated. #1405

Closed CustomCodeIT closed 8 months ago

CustomCodeIT commented 8 months ago

Description

Not sure if I have missed something in the docs or my configuration, but I am importing "source of truth" data and noticed that if a source value is null but the destination has a value, FeedMe will not update the destination value and empty the field.

Conversely, if the source data is not null FeedMe will update the field value as expected.

In my use case, source data is constantly updating and it's very likely that it can swap between null and not null values.

Source Data: JSON Destination: Craft Entries

Unfortunately this means my workaround in the meantime is to delete all the entries (thousands) and import from scratch each time which is a giant pain.

Steps to reproduce

  1. Run FeedMe with a JSON source that contains null values
  2. Manually update those values in your Craft entry
  3. Run FeedMe again and notice it has not been changed back to null/empty

Additional info

CustomCodeIT commented 8 months ago

My bad! Missed the gigantic "Set Empty Values" option 😄