Sometimes async rules are not being executed. If the same rule is sync then it runs ok.
Create a space
Create 2 rules on the space as follows:-
- Rule 1: Inbound, Mimetype: Word, Convert to PDF, Synchronous (i.e. not run in background)
- Rule 2: Inbound, Mimetype: PDF, Execute a Script (see below), Run in background
For the script:
document.properties["cm:contributor"] = "test property value";
Upload a Word document to the space. Sometimes the async rule does not execute i.e. the aspect is not added to the space.
However, I'm not seeing any exceptions and can't consistently reproduce. It seems to be timing related. However, once you get the error it can be consistently fixed by making rule 2 sync and appear again by making it sync