cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Best Approach to control order of target item publication

Former Member
0 Kudos
248

I have two target items SAPSalesArea(Custom target item) and SalesProduct. I want to publish SalesProduct first and then SAPSalesArea.

I define SalesProduct first and then SAPSalesArea, also in SAPSalesArea I provide dependency on SalesProduct , but still they are not get publish in proper order

Is their any other approach to set order of target item publication?link text

Accepted Solutions (0)

Answers (2)

Answers (2)

rahulverma94
Active Participant
0 Kudos

, Target item publications are not deterministic by default.Data Hub does not enforce a particular order.Assume no order is defined and you have a type, such as variant. It's entirely possble that Data Hub attempts to publish variant before base product.On Hybris, publication of variant would fail and the later publication of base product would succeed.To avoid this error,you can control the order in which target items are published by defining dependencies b/w the types in the Data Hub target XML file.DataHub evaluates dependencies in publication process & publishes target items based on precedence.Here is the sample code: ...

...

  ...
  <item>
    <type>BaseProduct</type>
    ...
  </item>
  <item>
    <type>VariantProduct</type>
    ...
    <dependencies>
      <dependency>BaseProduct</dependency>
    </dependencies>
    ...
  </item>
  ...
   
 

...

Former Member
0 Kudos

Hi,

Give dependencies in your target type. Based on that you can have some what control on your target item publication.

Thanks