cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I want to insert a semicolon(;) itself a value for one of the attribute using impex.

Former Member
0 Likes
576

I want to insert a semicolon(;) itself a value for one of the attribute using Impex.

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor
0 Likes

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

Answers (2)

Answers (2)

Former Member
0 Likes

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

andyfletcher
Active Contributor
0 Likes

+1 for awesome example data!

Former Member
0 Likes

Either try to put values in double qutoes (") or you can try html entities for the same.