TransformationExpression在目标扩展中不起作用| 数据集线器

2020-09-19 17:46发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

查看数据中心文档以了解如何在datahub目标扩展中使用简单表达式。 我正在使用与文档中所述相同的数据模型( https://help.hybris.com/6.6.0/hcd/481ef6309978401daeab418eb410eb89.html)。这是我来自目标系统扩展名的xml

  
              FileAdapterTargetSystem 
              HybrisCore 
             
             
             <密码/>
             
 
             <!-目标项目和属性->
             
                 <项目>
                      targetProduct 
                      true 
                      CanonicalProduct 
                     活动的
                     <属性>
                         <属性>
                             <名称>标识符
                              false 
                              false 
                              primaryKey 
                              uid [unique = true] 
                              true 
                         
                         <属性>
                             <名称>说明
                              false 
                              false 
                              description.concat('很久了,感谢所有的鱼!')
                             说明
                              true 
                         
                     
                 
             
         

  

在任何情况下都似乎不起作用,并且我的datahub使用的是相同的旧配置。 我检查了datahub日志,这就是我在日志文件中看到的内容。

  2018-05-21 12:36:47,133 [DEBUG] [chdeliTargetModelLoader]加载目标系统TargetSystem {name ='FileAdapterTargetSystem',type ='HybrisCore',exportURL ='',userName ='**  *****',密码='*******',exportCodes = ExportCodes {exportCode = null},targetItems = TargetItems {item = [Item {type ='targetProduct'',description ='null',可更新 = true,canonicalItemSource ='CanonicalProduct',状态= ACTIVE,属性=属性{attribute = [属性{name ='primaryKey',collection = false',localizable = false',TransformationExpression ='identifier',exportCode ='ExportCode {value  ='uid [unique = true]',expression ='false}',manualInHeader = true,secured = false,override = false,disabled = false},Attribute {name ='name',collection = false',localizable = false  ',transformationExpression ='名称',exportCode ='null',manualInHeader = false,secure == false,override = false,disabled = false,属性{name ='description',collection = false',localizable = false',transformationExpression  ='description.concat('很久以来, 并感谢所有的鱼!')',exportCode ='null',manualInHeader = false,secured = false,override = false,disabled = false}]},expression = null}]}}
  2018-05-21 12:36:47,148 [DEBUG] [c.h.d.v.m.TargetSystemValidator]找到适配器类型-[HybrisCore]
  2018-05-21 12:36:47,176 [DEBUG] [chdeliTargetModelLoader]正在加载目标项目Item {type ='targetProduct',description ='null',updatable = true,canonicalItemSource ='CanonicalProduct',status = ACTIVE,attribute = 属性{attribute = [属性{name ='primaryKey',collection = false',localizable = false',transformationExpression ='identifier',exportCode ='ExportCode {value ='uid [unique = true]',expression ='false}  ',必需的InHeader = true,安全的= false,覆盖= false,禁用的= false},属性{name ='name',collection = false',localizable = false',transformationExpression ='name',exportCode ='null',manualtionalInHeader  = false,secured = false,override = false,disabled = false},Attribute {name ='description',collection = false',localizable = false',transformationExpression ='description.concat('很久了,感谢所有 鱼!')',exportCode ='null',manualInHeader = false,secured = false,override = false,disabled = false}]},expression = null}
  2018-05-21 12:36:47,192 [DEBUG] [chdeliTargetModelLoader]正在加载目标属性Attribute {name ='primaryKey',collection = false',localizable = false',TransformationExpression ='identifier',exportCode ='ExportCode {value  ='uid [unique = true]',expression ='false}',manualInHeader = true,secured = false,override = false,disabled = false}
  2018-05-21 12:36:47,258 [DEBUG] [chdeliTargetModelLoader]正在加载目标属性Attribute {name ='name',collection = false',localizable = false',TransformationExpression ='name',exportCode ='null',  requiredInHeader = false,secured = false,override = false,disabled = false}

  2018-05-21 14:02:55,857 [INFO] [c.h.d.s.i.AbstractTargetItemService]为类型:" CanonicalProduct"和目标系统:FileAdapterTargetSystem创建目标项目
  2018-05-21 14:02:55,900 [DEBUG] [chdrjiDefaultTargetItemJpaRepository]为[SubTargetSystemPublicationEntity {id = 6521,status = IN_PROGRESS,publicationType = INSERT,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {id)找到0个TargetItem项目 = 0,name = GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}]出版物和DefaultDataHubIdBasedPageRequest {lastProcessedId = 0,pageSize = 1}
  2018-05-21 14:02:55,905 [DEBUG] [chdrjiDefaultTargetItemJpaRepository]为[SubTargetSystemPublicationEntity {id = 6522,status = IN_PROGRESS,publicationType = DELETE,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {id)找到0个TargetItem项目 = 0,name = GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}]出版物和DefaultDataHubIdBasedPageRequest {lastProcessedId = 0,pageSize = 1}
  2018-05-21 14:02:55,925 [DEBUG] [chdspiDefaultPublicationRetryService]删除了0条针对CompositeTargetSystemPublicationEntity {id = 6520,status = IN_PROGRESS,publicationType = null,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {  id = 0,名称= GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}

  

不知道这里缺少什么。 我正在为此工作使用6.6设置。

似乎文档不清楚,我在目标extension.xml文件中使用了 override =" true" ,看起来一切正常。 误导或我执行了错误的步骤(不确定)

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

查看数据中心文档以了解如何在datahub目标扩展中使用简单表达式。 我正在使用与文档中所述相同的数据模型( https://help.hybris.com/6.6.0/hcd/481ef6309978401daeab418eb410eb89.html)。这是我来自目标系统扩展名的xml

  
              FileAdapterTargetSystem 
              HybrisCore 
             
             
             <密码/>
             
 
             <!-目标项目和属性->
             
                 <项目>
                      targetProduct 
                      true 
                      CanonicalProduct 
                     活动的
                     <属性>
                         <属性>
                             <名称>标识符
                              false 
                              false 
                              primaryKey 
                              uid [unique = true] 
                              true 
                         
                         <属性>
                             <名称>说明
                              false 
                              false 
                              description.concat('很久了,感谢所有的鱼!')
                             说明
                              true 
                         
                     
                 
             
         

  

在任何情况下都似乎不起作用,并且我的datahub使用的是相同的旧配置。 我检查了datahub日志,这就是我在日志文件中看到的内容。

  2018-05-21 12:36:47,133 [DEBUG] [chdeliTargetModelLoader]加载目标系统TargetSystem {name ='FileAdapterTargetSystem',type ='HybrisCore',exportURL ='',userName ='**  *****',密码='*******',exportCodes = ExportCodes {exportCode = null},targetItems = TargetItems {item = [Item {type ='targetProduct'',description ='null',可更新 = true,canonicalItemSource ='CanonicalProduct',状态= ACTIVE,属性=属性{attribute = [属性{name ='primaryKey',collection = false',localizable = false',TransformationExpression ='identifier',exportCode ='ExportCode {value  ='uid [unique = true]',expression ='false}',manualInHeader = true,secured = false,override = false,disabled = false},Attribute {name ='name',collection = false',localizable = false  ',transformationExpression ='名称',exportCode ='null',manualInHeader = false,secure == false,override = false,disabled = false,属性{name ='description',collection = false',localizable = false',transformationExpression  ='description.concat('很久以来, 并感谢所有的鱼!')',exportCode ='null',manualInHeader = false,secured = false,override = false,disabled = false}]},expression = null}]}}
  2018-05-21 12:36:47,148 [DEBUG] [c.h.d.v.m.TargetSystemValidator]找到适配器类型-[HybrisCore]
  2018-05-21 12:36:47,176 [DEBUG] [chdeliTargetModelLoader]正在加载目标项目Item {type ='targetProduct',description ='null',updatable = true,canonicalItemSource ='CanonicalProduct',status = ACTIVE,attribute = 属性{attribute = [属性{name ='primaryKey',collection = false',localizable = false',transformationExpression ='identifier',exportCode ='ExportCode {value ='uid [unique = true]',expression ='false}  ',必需的InHeader = true,安全的= false,覆盖= false,禁用的= false},属性{name ='name',collection = false',localizable = false',transformationExpression ='name',exportCode ='null',manualtionalInHeader  = false,secured = false,override = false,disabled = false},Attribute {name ='description',collection = false',localizable = false',transformationExpression ='description.concat('很久了,感谢所有 鱼!')',exportCode ='null',manualInHeader = false,secured = false,override = false,disabled = false}]},expression = null}
  2018-05-21 12:36:47,192 [DEBUG] [chdeliTargetModelLoader]正在加载目标属性Attribute {name ='primaryKey',collection = false',localizable = false',TransformationExpression ='identifier',exportCode ='ExportCode {value  ='uid [unique = true]',expression ='false}',manualInHeader = true,secured = false,override = false,disabled = false}
  2018-05-21 12:36:47,258 [DEBUG] [chdeliTargetModelLoader]正在加载目标属性Attribute {name ='name',collection = false',localizable = false',TransformationExpression ='name',exportCode ='null',  requiredInHeader = false,secured = false,override = false,disabled = false}

  2018-05-21 14:02:55,857 [INFO] [c.h.d.s.i.AbstractTargetItemService]为类型:" CanonicalProduct"和目标系统:FileAdapterTargetSystem创建目标项目
  2018-05-21 14:02:55,900 [DEBUG] [chdrjiDefaultTargetItemJpaRepository]为[SubTargetSystemPublicationEntity {id = 6521,status = IN_PROGRESS,publicationType = INSERT,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {id)找到0个TargetItem项目 = 0,name = GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}]出版物和DefaultDataHubIdBasedPageRequest {lastProcessedId = 0,pageSize = 1}
  2018-05-21 14:02:55,905 [DEBUG] [chdrjiDefaultTargetItemJpaRepository]为[SubTargetSystemPublicationEntity {id = 6522,status = IN_PROGRESS,publicationType = DELETE,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {id)找到0个TargetItem项目 = 0,name = GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}]出版物和DefaultDataHubIdBasedPageRequest {lastProcessedId = 0,pageSize = 1}
  2018-05-21 14:02:55,925 [DEBUG] [chdspiDefaultPublicationRetryService]删除了0条针对CompositeTargetSystemPublicationEntity {id = 6520,status = IN_PROGRESS,publicationType = null,publicationAction = PublicationActionEntity {id = 26,pool = DataHubPoolEntity {  id = 0,名称= GLOBAL}},targetSystem = TargetSystemEntity {id = 1,targetSystemName ='FileAdapterTargetSystem',targetSystemType ='HybrisCore'}}

  

不知道这里缺少什么。 我正在为此工作使用6.6设置。

似乎文档不清楚,我在目标extension.xml文件中使用了 override =" true" ,看起来一切正常。 误导或我执行了错误的步骤(不确定)

付费偷看设置
发送
1条回答
何必丶何苦呢
1楼-- · 2020-09-19 18:20

示例xml或日志也不表明您正在使用overrride = true。 将标志设置为true即可解决问题。

一周热门 更多>