cancel
Showing results for 
Search instead for 
Did you mean: 

B2B Customer Address and B2B Customer is not creating while replicating from ERP to Hybris system

Former Member
0 Kudos

Hello,

We created a customer for DEBI group(B2B) with basic information, partner function mapping and contact person information in ERP system. Then, we replicated the customer in Hybris system.

Now, Hybris system is created only B2B Unit for the customer and didn't created Address information(Partner Functions), B2B Customer(Contact person).

So, please help me for the above issue.

Thanks in Advance,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ravi, could you fix this issue?

I have same issue and it is because we do not send date of birth for contact person, so when Hybris tries to import the impex file it throws an exception:

"cannot parse date 'null000000' with specified pattern 'yyyyMMddHHmmss' due to Unparseable date: ""null000000""".

I tried to override the HybrisCoreB2BCustomer but it is not possible and also create another target systems but as Mikhail said, it is hardcoded and will always use HybrisCoreB2BCustomer.

former_member224482
Active Contributor
0 Kudos

Which release version are you using ?

Also, please create your own post. You are not answering the 9 months old question.

Former Member
0 Kudos

Hi all

This error caused by hardcoded value in hybris datahub software. If you locate datahub-webapp\WEB-INF\lib\sapcustomer.d decompile \com\hybris\datahub\sapcustomer\event*B2bUnitSubmitFinishedEventHandler.class* you will see an awful style of programming:

public void trigger() { Map<Long, String> poolIdsToBePublishedLocal = new HashMap(); synchronized (this) { poolIdsToBePublishedLocal.putAll(this.poolIdsToBePublished); this.poolIdsToBePublished.clear(); } for (Object poolEntry : poolIdsToBePublishedLocal.entrySet()) { String[] targetSystems = {"HybrisCoreB2BCustomer" };
    logger.info(&quot;Initiate publication for pool: &quot; + (String)((Map.Entry)poolEntry).getValue() + &quot; -&gt; to target systems HybrisCoreB2BCustomer&quot;);
    
 
    InitiatePublicationEvent publishEvent = new InitiatePublicationEvent(((Long)((Map.Entry)poolEntry).getKey()).longValue(), Arrays.asList(targetSystems));
    
    this.eventPublicationService.publishEvent(publishEvent);
  }
  synchronized (this)
  {
    if (this.poolIdsToBePublished.isEmpty()) {
      this.callbackTriggerTimer.unregisterEventCallback(this);
    }
  }

}

Target system name HybrisCoreB2BCustomer is HARDCODED in the java class and no configuration will help.

Now I searching the way either to cope with this target system name or create manually HybrisCoreB2BCustomer target system.

Former Member
0 Kudos

Hi ,

Did you resolve this issue?I am facing same error.... Could you please help me?

Thanks, Anbu

former_member224482
Active Contributor
0 Kudos

Upgrade to hybris version 5.6.0.0 or above. The cascaded publication of HybrisCore to HybrisCoreB2BCustomer has been removed.

Former Member
0 Kudos

Hi Ravi, is your problem solved? I am facing the same issue, below is the error that I get, any pointer would be highly appreciated, thanks

INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Trigger Thread starts notifying callbacks INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Call trigger for 1 callbacks INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Call trigger for callback: com.hybris.datahub.sapcustomer.event.B2bUnitSubmitFinishedEventHandler@11fbcb3d INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [INFO] [com.hybris.datahub.sapcustomer.event.B2bUnitSubmitFinishedEventHandler] Initiate publication for pool: SAPCUSTOMER_INBOUND_POOL -> to target systems HybrisCoreB2BCustomer INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Callback unregistered for trigger callback: com.hybris.datahub.sapcustomer.event.B2bUnitSubmitFinishedEventHandler@11fbcb3d INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Current callbacks: [] INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Disable trigger callback: com.hybris.datahub.sapcustomer.event.B2bUnitSubmitFinishedEventHandler@11fbcb3d INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Disable Trigger Thread INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.sapcoreconfiguration.callback.impl.CallbackTriggerTimerImpl] Trigger Thread disabled and finished INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [DEBUG] [com.hybris.datahub.service.impl.DefaultEventPublicationService] Publishing data hub event : InitiatePublicationEvent{targetSystemNames=[HybrisCoreB2BCustomer]} INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | [ERROR] [com.hybris.datahub.service.ExceptionHandlingAsyncTaskExecutor] Error during asynchronous event handling. INFO | jvm 1 | main | 2014/11/21 15:24:09.412 | com.hybris.commons.conversion.ConversionException: TargetSystem for name HybrisCoreB2BCustomer has not been specified for target system publication TargetSystemPublicationData{publicationId=null, startTime=null, endTime=null, status='null', targetSystemName='HybrisCoreB2BCustomer', errorList=null, canonicalItemPublicationStatusList=null, actionId=2}

Former Member
0 Kudos

This looks like an error I got a while back, did you use the correct value for the security key of your DataHub?

Former Member
0 Kudos

Hi Maxim,

There is an encryption key provided in the trail...Is that not sufficient to persist any kind of data...I am actually trying to persist orders...

Is there a specific place or table where we can find the list of target names?Or is it the *datahub-extension.xml..

Pls let me know