cancel
Showing results for 
Search instead for 
Did you mean: 

Load Media using CSV (hot folder implementation)

former_member664713
Active Participant
0 Kudos

I used

former_member674342
Active Participant
0 Kudos

Hello ,

Could you be more specific, what do you need / what's not working / what do you expect from us?

Best Regards,

Accepted Solutions (1)

Accepted Solutions (1)

former_member674342
Active Participant
0 Kudos

Hello ,

I looked into your code and noticed, that you missed the transform csv to impex file - bean. It should look (for example) like:

 <bean id="batchMediaConverterMapping"      class="de.hybris.platform.acceleratorservices.dataimport.batch.converter.mapping.impl.DefaultConverterMapping" 
       p:mapping="mediaConv" 
       p:converter-ref="batchMediaConverter"/>

So, the .csv file should be named "mediaConv-001.csv".

The other thing is the folder, where to hold the images, it should be in: .../hybris/data/acceleratorservices/import/master//images

Try it, and i hope it will help you. When you have any other questions, please ask me.

Best Regards,

former_member664713
Active Participant
0 Kudos

Hi

I added transform for that and placed the image under the directory. I am getting the exception. The attachment contains the exception trace.link text

former_member674342
Active Participant
0 Kudos

Hello ,

have you added the bean above? And then run ant clean all.

It works fine by me with your code. Please add this bean and "ant clean all" the platform, then try it again.

Best Regards,

former_member674342
Active Participant
0 Kudos

Hello again,

I know it might sound crazy, but check please your bean batchMediaConverter. As I can see, your impEx looks like:

 INSERT_UPDATE
 Media;mediaFormat(qualifier);code[unique=true];mime[default='image/jpeg'];$catalogVersion;folder(qualifier)[default=images];realfilename;

Please try to do one line from this two lines. I mean, remove the "Enter", just like:

 INSERT_UPDATE Media;mediaFormat(qualifier);code[unique=true];mime[default='image/jpeg'];$catalogVersion;folder(qualifier)[default=images];realfilename;

I believe, this could help.

Best Regards, Sebastian

Answers (1)

Answers (1)

former_member664713
Active Participant
0 Kudos

link text I used the above code in hot-folder-spring.xml

and I placed the images under hybris\data\images