on 02-07-2017 6:48 PM - last edited on 02-04-2024 3:24 AM by postmig_api_4
Hi everyone
we're facing a strange issue with a DataHub target extension, where a transformationExpression
leads to an (unwanted) quoted string in the generated impex.
targetItem
attribute:
leads to
We tried cross-referencing to standard target attributes but have no clue on why this happens, meaning, how to remove the quotes.
thanks nicola
If I understand correctly, the platform field referenceBOM
is referenced using 3 fields for its uniqueness : code, id, version. Pretty much like a product in a catalogVersion.
When using multiple field for a reference object, all keys must be separated by a :
.
Simply replace ,Default:Staged
by :Default:Staged
in the expression.
As Chris mentioned, the quotes are always automatic when necessary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
StringEscapeUtils.escapeCSV is run on each value as its being written into the value line. Since your value contains a comma, the whole value is being double quoted. To fix this, you would need to override DefaultImpexService.escapeAttrValue() to call a custom escapeCSV method that doesn't double quote your value just because it contains a comma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
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.