I finally got an import for a CCK content type to work with no errors. However, when I check the actual content, all the Titles are there, but 3 of my fields are missing data - they are just blank. I have 6 fields in my CCK type, 5 are text and one is date. The date works fine, but and 2 of the text fields. But the other 3 text fields are blank.
I also tested a user import and that worked OK. Nothing missing there.
Is it something in my data or CCK definition?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | incrept-1.zip | 547 bytes | jcl324 |
| #8 | FireIncidents.zip | 1.33 KB | jcl324 |
| #3 | node_import-node_incrept-1_02-24-09.txt | 32.43 KB | jcl324 |
| #2 | node_import-node_incrept-1.txt | 33.2 KB | jcl324 |
Comments
Comment #1
Robrecht Jacques commentedCould you attach the "Node import debug report" from the task? It will tell me how the text fields are configured.
Go to admin/content/node_import and then view the task. In the yellow box there is a link to a textfile with debugging information.
Thanks.
BTW: strange that the date CCK field does not give problems as this has not been implemented yet...
Comment #2
jcl324Thanks RJ for being so quick to respond. Attached is the report you have requested.
Comment #3
jcl324RJ, I'm getting the same results, even with the latest Dev version of 2/23.
Comment #4
jcl324Comment #5
Robrecht Jacques commentedWhich ones of the text fields gives an error? Or rather, is not imported?
I see you have:
They all seem to be configured the same (except for the max_length mostly), so I'm not sure what is going on.
Comment #6
jcl324The 3 fields that end up empty are: Time, Street#, and Street Name. The others, Idno, date, and situation have their data correctly. Again, I get no errors, everything seems to work, I just end up with nodes with missing data.
Comment #7
Robrecht Jacques commentedCould you also maybe attach the CSV file (sites/default/files/imports/incrept-1.csv) ?
Or at least 5 rows or so (that exhibit the buggy behaviour)?
Comment #8
jcl324Sure, here it is. Just 10 rows. I've also included the CCK definition.
Comment #9
Robrecht Jacques commentedI've created your CCK type and tried to import it with the latest -dev (2/23). I have no errors but also no data missing. Eg:
This means there is probably some other module interfering that I have not enabled or not configured the same.
Looking through the list you have enabled these might provide a problem.
Also, have you configured panels to do something with the 'node/%/edit' page?
I could install all modules myself and try to find out which one is giving a problem, but I probably will have to know how you configured all of them as well. Could you try to debug this problem a bit further by disabling the modules above one by one? If you find a module that gives trouble then I could dig into this a bit further.
And just to make sure there is nothing else that interferes, could you do a clean install of Drupal 6 + CCK + Text + CCK Copy + Date + Node import? Then do what I just did: create the content type with Content copy and import the sample data. Report if this already gives an error (or rather, data not showing up) even without all of the other modules you have enabled. This would mean there is something else wrong (and not another module interfering)...
Thanks.
Comment #10
jcl324OK, here's what I've found so far. I did a complete new Drupal install with 6.10 and just date, cck, adv help, and node_import. First thing I noticed was on the mapping page of node_import, my CCK date filed is not listed! I think this has been true from the start. On the preview page, I will see the Date field, but it will have some false date (not the system date or the data in the CSV file). And the data that's missing after import are all the fields after the date field.
So I deleted the date field in the CCK, and then everything worked fine. So I tried adding back the date filed back in, and the same missing data as before. Obviously there is something wrong with my date module or API? So what version of that module are you using? The 6.x-2.0.rc6 from 12/08? SHould I use the dev version?
Also, I tried the new rc4 first but then went to your dev version. I'm assuming right now that they are the same?
Comment #11
Robrecht Jacques commentedInteresting feedback.
I'm using Date 6.x-2.0-rc6, so same as you.
Yes -rc4 and -dev are currently the same (well, I just committed something).
To be honest, I had some support file for CCK Date in my -dev branch which I was working on, but was not finished yet. Now that I rename that file (so it doesn't load), I indeed have also missing data (not in preview) without errors... So now I know where to look.
I'll investigate this further, but in the meantime, you could place the date.inc from CVS in sites/all/modules/node_import/supported/date/date.inc (creating a new directory). I don't think it is finished yet, but at least it will help your import.
Thanks for the debugging help! I'll leave this open because I'd like to see why this behaviour is happening (it may fix a bug in node_import or date somewhere).
Comment #12
jcl324So far so good! Adding that file in now allows me to map the CCK field to the CSV data. The only thing now that I don't understand - but can find out I'm sure - is that my import date data is just a date with no time, so I have to change the custom data format to just "m/d/Y" otherwise I get errors and nothing will import.
I did notice on the RC4 page, nothing is mentioned about dates, other than the requirement for the Date API. What is the future of dates for Node_Import?
p.s. Are you coming to DrupalCon DC next week?
Comment #13
Robrecht Jacques commentedYes, you only store the date in the datetime field so you would need to set it to m/d/Y to import properly. I need to streamline date.inc a bit so it provides a more sane default (eg using the way you want them to display or whether the field includes time or not). That's why I didn't release it yet and it is not in -rc4 yet. But it will be in -rc5.
I'm not going to DrupalCon.
Comment #14
Anonymous (not verified) commentedfwiw I had similar/same problem (CCK date field not listed with content types on p. 4), drupal 6.9, date 6.x-2.0, node import 6.x-1.0-rc4. date.inc seems to fix for me as well, though I just need date at the moment not time.
Thanks for this.
Comment #15
Robrecht Jacques commentedNot all options of Date CCK fields are supported yet. See http://drupal.org/node/374346. I think this issue is related to the unfinished date support so I'm setting it as duplicate.