cancel
Showing results for 
Search instead for 
Did you mean: 

Groups issue in datahub for customer

Former Member
0 Kudos

Hi All,

We are triggering iDoc from SAP to datahub but due to balckslash in groups, it's not importing like: column 8: cannot resolve value '0100000055\,b2bsuperusergroup\,b2bcustomergroup' we are using version 5.6.0.8 version of hybris and datahub.

Anyone have any idea please let me know.

Regards Vivek

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos

This is a known regression issue introduced in a Data Hub patch.

Previously the comma were not escaped which allowed extensions to provide a single string.

 <attribute>
  <name>groups</name>
  <localizable>false</localizable>
  <collection>true</collection>
  <transformationExpression>contactPersonFunction=='02'?{(customerId+',b2badmingroup,b2bcustomergroup')}:(
  contactPersonFunction=='01'?{(customerId+',b2badmingroup')}:(
  contactPersonFunction=='11'?{(customerId+',b2bcustomergroup')}:{customerId}))
  </transformationExpression>
  <exportCode>groups(uid)</exportCode>
 </attribute>

As you can see, the SpEL provide a single collection of a single String containing comma characters.

In the latest version, this has been fixed as follow :

 <attribute>
  <name>groups</name>
  <localizable>false</localizable>
  <collection>true</collection>
  <transformationExpression>contactPersonFunction=='02'?{customerId, 'b2badmingroup', 'b2bcustomergroup'}:(
  contactPersonFunction=='01'?{customerId, 'b2badmingroup'}:(
  contactPersonFunction=='11'?{customerId, 'b2bcustomergroup'}:{customerId}))</transformationExpression>
  <exportCode>groups(uid)</exportCode>
 </attribute>

As you can see, it is now a collection of many String.

Former Member
0 Kudos

Thanks Robin :)

Answers (0)