on 02-22-2016 5:13 AM
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
link text I used the above code in hot-folder-spring.xml
and I placed the images under hybris\data\images
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.