Salesforce 在demandware中导入产品XML时,如何在同一产品中附加图像?

Salesforce 在demandware中导入产品XML时,如何在同一产品中附加图像?,salesforce,demandware,Salesforce,Demandware,我有两个产品XML,如下所示: 1:-product-1.xml . . . . <images merge-mode="add"> <image-group view-type="large"> <image path="product-123.jpg" /> </image-group> </images> . . 。 . . . . . 2:

我有两个产品XML,如下所示:

1:-product-1.xml

 .

 .

 .

 .

 <images merge-mode="add">

      <image-group view-type="large">

           <image path="product-123.jpg" />

      </image-group>

 </images>

 .

 .

。
.
.
.
.
.

2:-product-1-1.xml

 .

 .

 .

 .

 <images merge-mode="add">

      <image-group view-type="large">

           <image path="product-124.jpg" />

           <image path="product-125.jpg" />

      </image-group>

 </images>

 .

 .

。
.
.
.
.
.

我正在导入这两个文件,我想为同一个产品(PRODUCT123)附加图像作为


但它没有附加图像

我也使用了merge mode=“merge”进行相同的操作,但没有得到预期的结果


有人能帮我找出哪里做错了吗?

您使用的是ImportCalogpipelet吗?请检查作业配置,导入模式应为合并

遗憾的是,Salesforce B2C商务平台目前不支持您想要实现的目标。 不能将图像组的图像拆分为多个文件,并期望它们将被合并。 事实上,文件导入模式应该是合并,但是您尝试的元素
MERGE mode=“add”
不受支持,并且您在导入文件时应该收到警告

如果查看文档中的catalog.xsd模式,您将在complexType.Product.Images类型定义下看到以下内容:

    <xsd:attribute name="merge-mode" type="simpleType.MergeMode" default="merge" use="optional">
        <xsd:annotation>
            <xsd:documentation>
                Used to control if specified image groups will be merged to or replace the existing image specification.
                The values "merge" and "replace" are the only ones supported for the "merge-mode" attribute.
                Attribute should only be used in import MERGE and UPDATE modes. In import REPLACE mode, using the "merge-mode" attribute is not
                sensible, because existing image groups will always be removed before importing the image groups
                specified in the import file.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:attribute>

用于控制指定的图像组是否合并到现有图像规范或替换现有图像规范。
“合并模式”属性仅支持值“合并”和“替换”。
属性只能在导入合并和更新模式中使用。在导入替换模式下,不允许使用“合并模式”属性
这是合理的,因为在导入图像组之前,将始终删除现有图像组
在导入文件中指定。

另外,我建议您在将图像数据发送到Salesforce B2C Commerce实例之前,寻找一种替代解决方案来合并图像数据。

通常,“图像映射”作业会写出当前分配给产品的所有图像(如果存在),并将新图像添加到集合的末尾。
    <xsd:attribute name="merge-mode" type="simpleType.MergeMode" default="merge" use="optional">
        <xsd:annotation>
            <xsd:documentation>
                Used to control if specified image groups will be merged to or replace the existing image specification.
                The values "merge" and "replace" are the only ones supported for the "merge-mode" attribute.
                Attribute should only be used in import MERGE and UPDATE modes. In import REPLACE mode, using the "merge-mode" attribute is not
                sensible, because existing image groups will always be removed before importing the image groups
                specified in the import file.
            </xsd:documentation>
        </xsd:annotation>
    </xsd:attribute>