Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

CSV Importer Problems (Double Entries)


Go to End


1298 Views

Avatar
cSGermany

Community Member, 37 Posts

23 September 2013 at 10:48pm

Edited: 23/09/2013 10:49pm

Hi guys,

I need to import several Products at once. One Product got one ShortNumber, one Name(ArtName) and several colors.
I wrote an importer for this and it works partly.

My problem ist that the importer creates 2 entries for each line. One correct entry with ShortNumber and ArtName and one empty entry. I think the Problem is my second realation callback (Article.ArtName) if I remove this form my Bulkloader everything works fine. But than the Names are missing.

Here is the CSV Bulkloader -> http://www.sspaste.com/paste/show/5240191eb7609
My Articles Object -> http://www.sspaste.com/paste/show/52401ab5c9772
My ColorObject -> http://www.sspaste.com/paste/show/52401ad1a22e7
My ModelAdmin for Import -> http://www.sspaste.com/paste/show/52401ae80069e

Do someone know a solution?

Thx in advance
cSGermany