Sap 文件id参考desn';我不为弹劾工作
我对包含文档id引用的impex有问题 从文档: “特别是对于导入partOf项值,有必要使用通常的唯一列技术以外的方法引用这些项,因为partOf项通常不提供唯一键,而只将其封闭父项作为外键。” *Items.xml中的项(仅限于最重要的部分) 错误消息:Sap 文件id参考desn';我不为弹劾工作,sap,hybris,impex,Sap,Hybris,Impex,我对包含文档id引用的impex有问题 从文档: “特别是对于导入partOf项值,有必要使用通常的唯一列技术以外的方法引用这些项,因为partOf项通常不提供唯一键,而只将其封闭父项作为外键。” *Items.xml中的项(仅限于最重要的部分) 错误消息: cannot create C with values ItemAttributeMap[ registry: null, type: <null>, (...) due to [de.hybris.platform.ser
cannot create C with values ItemAttributeMap[ registry: null, type: <null>, (...) due to [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@3b777877]:missing values for [test] in model C
由于[de.hybris.platform.servicelayer.interceptor.impl],无法创建值为ItemAttributeMap[registry:null,type:,(…)的C。MandatoryAttributesValidator@3b777877]:模型C中的[test]缺少值
当我从“test”属性(C类)中删除“partof”修饰符时,一切都很好
我想知道如果我想保留“partof”修饰符,impex应该是什么样子。如果您确信您的数据是正确的,您可以使用[forceWrite=true]修饰符或传统模式跳过服务层验证
您还应该确保此配置是您真正需要的。将optional设置为true或partOf设置为false或提供默认值也可以解决此问题。由于您提到了
partOf=“true”
,因此您无法分配a
类型的引用。您只能创建一个新实体
检查OOTBAbstractOrder2AbstractOrderEntry
关系,他们提到partof=“true”
对于AbstractOrderEntry
意味着您不能将任何其他AbstractOrderEntry
引用到Order
。您始终可以创建新条目
也可以看看HMC网站
您可以在此处看到,此处没有可用的
+添加条目
按钮。可以进行交互。当您使用部分
时,必须使用所有者引用部分
它确实:
INSERT B;owner(C.code);&docIdRef
;uniqueCode;docId
INSERT_UPDATE C;code[unique=true];test(&docIdRef)
;uniqueCode;docId
您不需要分配B
标识符,只需引用所有者即可
cannot create C with values ItemAttributeMap[ registry: null, type: <null>, (...) due to [de.hybris.platform.servicelayer.interceptor.impl.MandatoryAttributesValidator@3b777877]:missing values for [test] in model C
INSERT B;owner(C.code);&docIdRef
;uniqueCode;docId
INSERT_UPDATE C;code[unique=true];test(&docIdRef)
;uniqueCode;docId