Feeds: Lat/Long Pair Error when Importing

Created on 24 April 2023, over 1 year ago
Updated 25 April 2023, over 1 year ago

Problem/Motivation

When using feeds to import a CSV file with individual Latitude & Longitude columns to a Geofield module lat/long field you get the following error.

Latitude and Longitude should be a pair. Change your file and import again.

However the lat and long do import correctly. Seems odd that you would get an error on this when the feeds mapper does allow for the source to be selected independently. Not sure if this is really a Geofield issue, didn't seem like it so I dropped it here.

Steps to reproduce

- Install Drupal, Feeds and geofield.
- Create a content type with a lat and Long Geofield
- Setup a feed type of CSV and a mapper to the geofield mapping lat and long to different columns in your CSV
- import CSV and you should get an error.

I also have the address and feeds tamper modules installed - Don't have any tampers on the Geofield. Not sure this is relevant.

Proposed resolution

Seems to be importing correctly, might just be an over zealous error message. Would consider investigating removing error message if not needed.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johnpicozzi Providence, RI

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024