I simply cannot get feeds to import to phone field from a CSV file. UI Mapper is 100% easy and I have no doubt that the header is being read but the phone numbers are not being brought in at all, but all the other fields are. I cant say for definate but I presume this is a Phone field problem, but might be feeds. I dont have the knowledge to differentiate.

I have attached Mapper image and here is snippet of CSV:

Title,Body,Company Website,zap,Purchasing Status,Node UUID,Company Website,Lat Long,Street,Author
Timbercon,Manufacturers and distributors of doors etc. ,,031-705-5861,Prospect,c84688ce-144d-47f0-ad72-d2434f0323b1,,-29.80686630.879118,1 Kinsman Rd,Tyron
Rebcon,Architectural metalworkers.,,031-705-5851,Prospect,7a2eb64b-c281-4c1d-b69d-af131184fa8b,,-29.80652430.878935,6 Kinsman Rd,Tyron
GREEN ENGINEERING,DESIGN AND MANUFACTURING ENGINEERING,,031-461-1419,Prospect,8de14453-bfc8-4cb1-b12f-9b0cb96c6f07,,-29.94053030.978016,99 Brooklyn Rd,Goodman
Gralio Precast Pty Ltd,construction,,031-500-6211,Prospect,40e2342b-e40f-4c16-9573-d743353708b2,,-29.72213230.989688,2 Premier Pl,Goodman

I didnt want to create this as a bug until I got some advise?

CommentFileSizeAuthor
#1 fix_phone_import_with_feeds.patch616 byteslazzyvn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lazzyvn’s picture

I got same error
i found in code

  foreach ($value as $v) {
    if (empty($v[0])) {

so stranger $v is string why it check $v[0]
here is my patch it works find after remove [0]