on 10-27-2014 9:43 AM
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,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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("Initiate publication for pool: " + (String)((Map.Entry)poolEntry).getValue() + " -> to target systems HybrisCoreB2BCustomer");
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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}
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.