点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
大家好,
对于开发,我使用的是datahub.autoInitMode = create-drop,它工作得很好。 但是对于生产系统,我正在尝试设置datahub.autoInitMode = create或datahub.autoInitMode = ignore,并且在OOTB扩展中出现错误。
步骤:-在local.properties中设置datahub.autoInitMode = create并建立datahub并重新启动datahub
他们有什么错吗?
加载saperpproduct-raw时出错 2018-06-05 09:53:24,170 [DEBUG] [chdeliCanonicalModelLoader]加载规范属性Attribute {name ='creationSystem',model = null,Transformations = Transformations {transformation = [Transformation {rawSource ='RawMATMAS',expression ='Expression {value ='EDI_DC40-SNDPRN',spel ='false'},Override ='false,Disabled ='false}]}} 2018-06- 05 09:53:24,171 [DEBUG] [chdeliCanonicalModelLoader]创建属性transformationCanonicalTransformationData {rawItemType ='RawMATMAS',expression ='EDI_DC40-SNDPRN',override ='false',disabled ='false',spel ='false'} 2018 -06-05 09:53:24,176 [DEBUG] [chdeliCanonicalModelLoader] ValidationException {failures = [ValidationFailure {EXISTING_ITEM,rawAttribute:"规范属性转换已存在:CanonicalProduct,creationSystem,RawMATMAS"}]} 2018-06-05 09: 53:24,176 [DEBUG] [chdeliCanonicalModelLoader]加载规范属性Attribute {name ='productID',model = null,tran sformations = Transformations {transformation = [Transformation {rawSource ='RawMATMAS',expression ='Expression {value ='#root.getField('E1MARAM-MATNR_LONG')?:#root.getField('E1MARAM-MATNR')',spel ='true'},重写='false,已禁用='false}]}} 2018年6月5日09:53:24,177 [DEBUG] [chdeliCanonicalModelLoader]创建属性TransformationCanonicalTransformationData {rawItemType ='RawMATMAS',expression ='# root.getField('E1MARAM-MATNR_LONG')?:#root.getField('E1MARAM-MATNR')',override ='false',disabled ='false',spel ='true'} 2018-06-05 09: 53:24,187 [错误] [chdeliDefaultExtensionLoaderService]无法在com处加载扩展项saperpproduct-raw com.hybris.datahub.validation.ValidationException:[ValidationFailure {FATAL,rawAttribute:"无法修改规范属性转换CanonicalProduct,productID,RawMATMAS"}] .hybris.datahub.validation.AbstractValidator.validate(AbstractValidator.java:32)〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3-RC2] at com.hybris.datahub.facade.metadata.D efaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClassFacade.java:42)〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3-RC2] at com.hybris.datahub.facade.metadata.DefaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClass32a )〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3-RC2] at com.hybris.datahub.facade.metadata.AbstractItemClassFacade.createAttribute(AbstractItemClassFacade.java:36)〜[datahub-service-6.5。 0.3.RC2.jar:6.5.0.3-RC2]在sun.reflect.GeneratedMethodAccessor240.invoke(未知源)〜[na:na]在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8 .0_131] at java.lang.reflect.Method.invoke(Method.java:498)〜[na:1.8.0_131] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)〜[spring -aop-4.3.3.RELEASE.jar:4.3.3.RELEASE],位于org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)〜[s pring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE],位于org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)〜[spring-aop-4.3.3.RELEASE.jar :4.3.3.RELEASE],位于组织org.springframework.transaction.interceptor.TransactionInterceptor $ 1.proceedWithInvocation(TransactionInterceptor.java:99)〜[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]。 springorgwork.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)〜[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor .java:96)〜[spring-tx-4.3.3.RELEASE.jar:4.3.3.RELEASE]在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)〜[spring-aop- 4.3.3.RELEASE.jar:4.3.3.RELEASE],位于org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)〜[spring-aop-4.3.3.RELEASE.jar:4.3.3 .RELEASE]
加载sappricing-raw时出错
2018-06-05 09:45:57,918 [DEBUG] [chdeliCanonicalModelLoader]加载规范属性Attribute {name ='productId',model = null,Transformations = Transformations {transformation = [Transformation {rawSource ='RawCOND_A', expression ='Expression {value ='#root.getField('E1KOMG-MATNR_LONG')?:#root.getField('E1KOMG-MATNR')',spel ='true'},重写='false,disabled ='false }]}} 2018-06-05 09:45:57,918 [DEBUG] [chdeliCanonicalModelLoader]创建属性TransformationCanonicalTransformationData {rawItemType ='RawCOND_A',expression ='#root.getField('E1KOMG-MATNR_LONG')?:#root。 getField('E1KOMG-MATNR')',override ='false',disabled ='false',spel ='true'} 2018-06-05 09:45:57,940 [错误] [chdeliDefaultExtensionLoaderService]无法加载扩展应用程序 -raw com.hybris.datahub.validation.ValidationException:[ValidationFailure {FATAL,rawAttribute:"无法修改规范属性转换CanonicalPrice,productId,RawCOND_A"}},位于com.hybris.datahub.validation.Abstrac tValidator.validate(AbstractValidator.java:32)〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3-RC2] at com.hybris.datahub.facade.metadata.DefaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClassFacade.java:42 )〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3-RC2] at com.hybris.datahub.facade.metadata.DefaultTransformationItemClassFacade.createNewAttribute(DefaultTransformationItemClassFacade.java:32)〜[datahub-service-6.5。 0.3-RC2.jar:6.5.0.3-RC2],位于com.hybris.datahub.facade.metadata.AbstractItemClassFacade.createAttribute(AbstractItemClassFacade.java:36)〜[datahub-service-6.5.0.3-RC2.jar:6.5.0.3 -RC2]在sun.reflect.GeneratedMethodAccessor240.invoke(未知源)〜[na:na]在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_131]在java.lang.reflect .Method.invoke(Method.java:498)〜[na:1.8.0_131] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)〜[spring-aop-4.3.3.RELEASE。 罐子:4。 3.3.RELEASE]在org.springframework.aop的org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)〜[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]。 framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)〜[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
关于Rasika,
嗨,
请查看以下页面:使用规范属性,其中有一条注释 页面底部。 它指出:"即使出现错误,Data Hub仍正确加载了扩展,您可以继续进行而无需担心"。 您还可以使用 Data Hub REST API 来检查是否正确加载了转换表达式(只需调用/item-classes/canonical/item-types/{itemType}/attributes或/item-classes/canonical/item-types/{itemType}/attributes/{attributeName})。
一周热门 更多>