Publish fails with error looping replacement

Problem

Publish fails. The error message on the publication mentions replacement resulting in loop.

Solution

The publish engine runs a set of validations at publish to check the integrity of the database and also validate configured business rules. See for a description of the validation function.

When the error replacement resulting in loop appears it is due to eg. Part A being replaced by Part B, which is replaced by Part A. Such loops will cause problems in the web viewer when calculating the correct replacement to display.

To find the looping replacements follow these steps:

  1. Open replacement storage

  2. In replacement storage select Validate all.

  3. A validation summary will appear. If looping or empty replacements exist.

  4. Double click the line with the error. Part replacements storage will now get filtered and show only the looping replacements. In this example we see that part 10378340B is replaced by 10378340B and that part 10378340B is replaced by 10378552B, which is replaced by 10378340B .

    Correct the errors and save.

  5. To show all replacements again in the storage select Reset custom filter in the filter area of the storage.