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.
When I add an address to a node manually it is all fine. But if I import an address using feeds and its field mapping feature eg Postcode > Address: Postcode. The node is correct (I am using OpenLayers Locator feature) - it shows the address (and pin on map) but when I go to edit the address field is blank. I have checked the db and both manual and feed addresses are in the correct table. Any idea where I should look to sort this please?
Comments
Comment #1
impara CreditAttribution: impara commentedA fast solution is not to allow your field name to run inside _field_filter_items function in mappers/field.inc
example:
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedIf you are using the Address Field module, the country field is required. So I think the solution would be to also map to the country field.
Comment #3
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedAnd if the country is not in your source you can use the Feeds Tamper plugin "Set default value" to set the country to a fixed value. For the source you could choose "Blank source" or, when using the CSV parser, a dummy source title that does not appear in the CSV file.