on 2018 Mar 08 7:56 AM - last edited on 2024 Feb 04 4:47 AM by postmig_api_4
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
Request clarification before answering.
, 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>
...
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Give dependencies in your target type. Based on that you can have some what control on your target item publication.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.