Symptom
When using patch level 1 for CRM integration (HYBCRMINTEGDH00P_1-70001896.ZIP) and trying to replicate the B2BCustomer you will receive this exception:
[ERROR] [c.h.d.c.i.AbstractCompositionRuleHandler] Error while evaluating reference or transformation getField('CRMXIF_PARTNER_COMPLEX-E101BUS_EI_CENTRAL_DATA-E101BUS_EI_ADDRESS-E101BUS_EI_BUPA_ADDRESS-E101US_EI_BUPA_ADDRESS_DATA-E102BUS_EI_COMMUNICATION-E102BUS_EI_TEL_DATA-E102BUS_EI_BUPA_TELEPHONE-E102S_EI_BUPA_TELEPHONE_CON-TELEPHON')
com.hybris.datahub.service.spel.TransformationExpressionException: Could not transform by expression getField('CRMXIF_PARTNER_COMPLEX-E101BUS_EI_CENTRAL_DATA-E101BUS_EI_ADDRESS-E101BUS_EI_BUPA_ADDRESS-E101US_EI_BUPA_ADDRESS_DATA-E102BUS_EI_COMMUNICATION-E102BUS_EI_TEL_DATA-E102BUS_EI_BUPA_TELEPHONE-E102S_EI_BUPA_TELEPHONE_CON-TELEPHON')
at com.hybris.datahub.service.spel.impl.CompilableSpelExpressionProcessor.transform(CompilableSpelExpressionProcessor.java:94) ~[datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.composition.impl.AbstractCompositionRuleHandler.transformExpression(AbstractCompositionRuleHandler.java:78) ~[datahub-api-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.composition.impl.BasicAttributeCompositionRuleHandler.findMostRecentValue(BasicAttributeCompositionRuleHandler.java:67) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.composition.impl.BasicAttributeCompositionRuleHandler.compose(BasicAttributeCompositionRuleHandler.java:55) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at sun.reflect.GeneratedMethodAccessor347.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.hybris.datahub.aop.CompositionRuleHandlerLogger.aroundComposeAdvice(CompositionRuleHandlerLogger.java:42) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.sun.proxy.$Proxy121.compose(Unknown Source) [na:na]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.lambda$applyCompositionRuleHandlers$130(CompositionChainRunnerStrategy.java:136) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:1.8.0_60]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_60]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_60]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_60]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_60]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:1.8.0_60]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:1.8.0_60]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_60]
at java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:423) ~[na:1.8.0_60]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.applyCompositionRuleHandlers(CompositionChainRunnerStrategy.java:136) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.populateItemAttributes(CompositionChainRunnerStrategy.java:126) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.composition.impl.CompositionChainRunnerStrategy.runChain(CompositionChainRunnerStrategy.java:73) [datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at com.hybris.datahub.grouping.impl.CanonicalItemComposer.compose(CanonicalItemComposer.java:52) ~[datahub-service-akka-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:26) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:21) ~[akka-actor_2.11-2.4.0.jar:na]
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) ~[scala-library-2.11.5.jar:na]
at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:21) ~[akka-actor_2.11-2.4.0.jar:na]
at scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170) ~[scala-library-2.11.5.jar:na]
at akka.actor.Actor$class.aroundReceive(Actor.scala:480) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:47) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:525) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.actor.ActorCell.invoke(ActorCell.scala:494) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.dispatch.Mailbox.run(Mailbox.scala:224) ~[akka-actor_2.11-2.4.0.jar:na]
at akka.dispatch.Mailbox.exec(Mailbox.scala:234) ~[akka-actor_2.11-2.4.0.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) ~[scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) ~[scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) ~[scala-library-2.11.5.jar:na]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) ~[scala-library-2.11.5.jar:na]
Caused by: com.hybris.datahub.model.InvalidAttributeException: Field : CRMXIF_PARTNER_COMPLEX-E101BUS_EI_CENTRAL_DATA-E101BUS_EI_ADDRESS-E101BUS_EI_BUPA_ADDRESS-E101US_EI_BUPA_ADDRESS_DATA-E102BUS_EI_COMMUNICATION-E102BUS_EI_TEL_DATA-E102BUS_EI_BUPA_TELEPHONE-E102S_EI_BUPA_TELEPHONE_CON-TELEPHON is not defined for type : RawCRMContact and cannot be retrieved
at com.hybris.datahub.model.BaseDataItem.getField(BaseDataItem.java:153) ~[datahub-api-6.0.0.1-RC1.jar:6.0.0.1-RC1]
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:112) ~[spring-expression-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:129) ~[spring-expression-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:85) ~[spring-expression-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120) ~[spring-expression-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:242) ~[spring-expression-4.1.5.RELEASE.jar:4.1.5.RELEASE]
at com.hybris.datahub.service.spel.impl.CompilableSpelExpressionProcessor.transform(CompilableSpelExpressionProcessor.java:89) ~[datahub-service-6.0.0.1-RC1.jar:6.0.0.1-RC1]
... 52 common frames omitted
Read more...
Environment
SAP Hybris Commerce 6.0
SAP Hybris Commerce 2.0 integration with SAP CRM with patch level 1
Product
Keywords
KBA , crm , b2bcustomer , CEC-SCC-INT-DHI , Data Hub Integrations , Bug Filed
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.