When trying to update a cdt using impact analysis I get several error messages l

When trying to update a cdt using impact analysis I get several error messages like the following:
processModel 0002d567-6188-8000-0d1c-680000680000 597 "blabla": The processModel [id=597 uuid=0002d567-6188-8000-0d1c-680000680000] was not imported because a required reference is missing: Reference to content [_a-0000d4ec-d0e6-8000-0d1b-680000680000_472] cannot be found. (APNX-1-4070-000) (APNX-1-4071-006)

I exported the application and had a look at the process XML. It turns out that there seems to be historical entries of an expression on one form. One of those historical expression references a constant that got deleted. I cannot even see this entry in forms designer anymore, so I cannot get rid of the bad reference.

What can I do to cleanup my process models?...

OriginalPostID-42397

OriginalPostID-42397

  Discussion posts and replies are publicly visible

  • I was thinking about deleting old process versions. If I open up File -> Versions and delete some of them, close the dialog and reopen it, the versions are still there. I also tried using the smart service from forum. It deleted a bunch of versions, but kept more than the last 5 as I specified.

    What could be the reason that I am not allowed to delete those versions?
  • There is a good chance that the deleted constant is still referenced in your process model. If you delete a constant, the reference to the constants in your models are not automatically corrected. This also leads to one of Appians best practice on not deleting constants if any of the active instances were referencing to them. Since you know the process model that uses the constant, can you traverse the XML tree to find out where exactly its being used and check within your model if that's the case?
  • Thanks! I already found the referenced constant in my process model. However I cannot see the reference in the actual designer on the latest process model version. So I guess it is a reference to an older version. Thus I am trying to delete the older versions now, but have problems doing so. See my comments above for details.
  • When you export a process model, only the last published version gets exported. So I am still guessing that your process model has some reference to this deleted constant. Versions are not exported when you export the process model. Hope this helps.
  • I see. Then I am even more confused. In the process xml I see in one of the form-element tags the reference to the missing constant, in the part where the expression for the default value is configured. It looks something like this:
    <expressions>
    <tv>
    ...
              </tv>
    <tv>
    ...
    </tv>
    <tv>
    ...
    </tv>
    </expressions>
    Only the second entry shows the expression that is actually being shown in forms designer. I cannot see the other expressions in the tv tags at all.