on 2019 Apr 09 7:04 PM
Hi All,
Could someone help me how to escape characters like comma,semicolon,colon,backslash etc ?
Thanks, G Gopinath.
Request clarification before answering.
You do not need to escape :
or ,
or backslash e.g. the following ImpEx will pass for all the records mentioned below:
$productCatalog=Default
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
INSERT_UPDATE Product;code[unique=true];$catalogVersion
;myCode:myID;
;myCode,myID;
;myCode\myID;
For escaping smicolon( ;
), you need to put it inside double quotes e.g.
$productCatalog=Default
$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
INSERT_UPDATE Product;code[unique=true];$catalogVersion
;"myCode;myID";
In addition to these characters, you can escape '
and "
by doubling them. Please check https://wiki.hybris.com/display/release5/ImpEx+Syntax for more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arvind,
I needed to escape colon when adding a sync job to a UserGroup:
UPDATE UserGroup; UID[unique = true];syncJobs(code)
;backofficeadmingroup;"sync glContentCatalog\:Staged->Online"
The impex interpretor was seeing the code as two values split by colon and it was returning this error message:
,,,,incompatible item reference values [sync glContentCatalog, Staged->Online] ( need 1 values, got 2 ) within de.hybris.platform.impex.jalo.translators.ItemExpressionTranslator@5ac9ea0f, incompatible item reference values [sync glContentCatalog, Staged->Online] ( need 1 values, got 2 ) within de.hybris.platform.impex.jalo.translators.ItemExpressionTranslator@2585bf7;;sync glContentCatalog:Staged->Online
User | Count |
---|---|
2 | |
2 | |
1 | |
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.