on ‎2018 Feb 04 6:05 AM
I want to insert a semicolon(;) itself a value for one of the attribute using Impex.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Wrap your attribute value in quotes
e.g.
INSERT_UPDATE CmsParagraphComponent;uid[unique=true];catalogVersion(catalog(id),version)[unique=true];content[lang=en]
;mycomponent;Default:Staged;"This content has a semicolon ; here's some more ;;;;;"
If you want to have semicolons and quotes in the value then you need to escape the quotes by doubling them up
e.g.
INSERT_UPDATE CmsParagraphComponent;uid[unique=true];catalogVersion(catalog(id),version)[unique=true];content[lang=en]
;mycomponent;Default:Staged;"This content has a semicolon ; and some ""quoted content"""
See points 6 & 7 of CSV Files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your attribute isn't a simple string, but a collection you can redefine your delimiter to be something else than semincolons:
UPDATE Employee; uid[unique=true]; preferences[map-delimiter=|]
;FrankColumbo; drink->whiskey|game->poker|colour->beige
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Either try to put values in double qutoes (") or you can try html entities for the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.