Thanks for the clarification and for taking another look at the v11 behavior.
I think this is the right direction: preserving the established behavior and correcting the returned error code in v12, rather than changing how ItemSkip and ItemReject work in Prolog/Epilog.
The distinction between the internal execution code and the REST API status mapping is also clear now. I agree that correcting the internal code should address the underlying issue, provided the resulting REST API response is verified as well.
Thanks for looking into this and for taking our feedback into account.
Original Message:
Sent: 10/12/26 05:03 AM
From: Hubert Heijkers
Subject: v12 and ItemSkip in epilog
Hi Vitalij,
Just FYI on direction, I've decide to not change anything compared to v11 when it comes to behavior (read: not making it a no-op). Also found out in the meantime that apparently we've had this same problem in v11 so I'm afraid it existed when we cut the code for v12 and inherited the problem and 'simply' have to apply a similar fix in v12 (at least that should make it easier to 'fix').
As for REST API status codes vs Error codes, whilst there is a mapping, they indeed do not use the same constants, I'd already noted that we had to verify what the REST API returns in these cases as well, BUT if the internal execution code no longer returns an ItemSkip than this is probably implicitly corrected as well.
Wrt point 2, Sachin's observation, I might not have been clear enough but, again, this has nothing to do with codes having an order or that higher number would overrule a lower one or something, that's pure coincidence, we use numbers to represent error codes, one get correctly converted to relay the fact that the process executed normally with messages (5) whereas the other does not get that mapping correctly and therefore the, what should have remained internal, 3 is returned.
Again, you and George, have convinced me not to change how these work(ed) and only make sure we correct the error code returned in such cases (as we apparently have done in v11 already).
------------------------------
Hubert Heijkers
STSM, Program Director TM1 Functional Database Technology and OData Evangelist
------------------------------
Original Message:
Sent: 10/12/26 04:47 AM
From: Vitalij Rusakovskij
Subject: v12 and ItemSkip in epilog
Thanks, Hubert, for raising this internally and for clarifying that ItemSkip and ItemReject should have no meaningful effect in Prolog/Epilog.
I agree with that direction. From an automation and orchestration perspective, the current v12 behavior is problematic for two reasons:
- ExecuteProcess returns 3, while the REST API defines status code 3 as QuitCalled. At the same time, the server log explicitly says "finished with ItemSkip". Even if the numeric values coincide, the two interfaces do not necessarily share the same status semantics. Callers currently have no named return value for this outcome and are effectively forced to rely on a numeric value that already has a different documented meaning in the REST API.
- As Sachin observed, the resulting status depends on whether ItemSkip or ItemReject is used, and return codes with higher precedence can override lower-precedence ones. This also applies to combinations such as ItemReject in Prolog and ItemSkip in Epilog, making the final outcome harder to predict when processes are chained.
Regarding the pattern George mentioned - using ItemReject in Prolog to generate a visible entry in the TM1ProcessError log - this appears to have been a common workaround. Another established pattern is to accumulate error messages, call ProcessBreak, and then use ItemReject in the Epilog to write the collected messages to the process error log. If ItemReject becomes a no-op in Prolog/Epilog, those models may lose that logging side effect.
It would therefore be helpful to document the recommended alternatives for two distinct use cases:
- Logging and diagnostics: explicitly recording a meaningful error message (for example via custom logging with GetProcessErrorFilename and AsciiOutput or TextOutput). Note that this is not automatically equivalent to the previous entry in the TM1ProcessError log generated by ItemReject.
- Process control: using the appropriate process-control function (such as ProcessQuit), depending on the intended behavior and execution context.
Ideally, the final fix would also ensure that:
- ItemSkip and ItemReject in Prolog/Epilog do not inadvertently terminate the process or produce misleading return codes.
- The ExecuteProcess result, REST API status and server log are consistent.
- The behavior is explicitly documented, including the supported alternatives for existing models.
For anyone migrating to v12, scanning for ItemSkip and ItemReject outside the Metadata and Data tabs would be a sensible precaution.
Curious to hear how others have been using ItemSkip / ItemReject in Prolog or Epilog, and whether the current v12 behavior has already caused issues in their models.
------------------------------
Vitalij Rusakovskij
------------------------------
Original Message:
Sent: 10/12/26 04:25 AM
From: George Tonkin
Subject: v12 and ItemSkip in epilog
Thanks for this feedback Hubert.
I think I am a guilty party having used ItemReject in Prolog for many years as it seems like "it was always done this way" in older models.
It is/was useful to generate an error that a user could see in the TM1ProcessError log.
Something to note for migrations to v12 and decide if ProcessBreak, ProcessQuit or something else is more appropriate.
I am sure there are many out there that have models with ItemRejects in Prolog. Possibly ItemSkip but this would make less sense.
------------------------------
George Tonkin
Business Partner
MCI Consultants
Johannesburg
------------------------------
Original Message:
Sent: 10/12/26 04:17 AM
From: Hubert Heijkers
Subject: v12 and ItemSkip in epilog
I'm afraid something must have been missed in all the work that has gone and I hope all agree that ItemSkip and ItemReject have no meaning, and, not wanting to break anybody that might have thrown these functions in prolog or epilog for reasons I'll likely never understand;-), be a no-op, rather than resulting in terminating the process as it appears it would right now (which by itself is a surprise).
Either way, there is something off/wrong, presuming nobody logged an issue with support just yet I've gone ahead and wrote up an issue internally to have this "addressed".
PS Every error code has an internal value representing it. Whilst there might have been a logical order initially, don't assume one, always use the dedicated functions to represent these "constants" (read: constant for a version, not guaranteed over time unless explicitly documented otherwise). I agree that all error codes that are end up being returned should have an equivalent function as such.
PS2 the observed difference in behavior of using ItemSkip v.s. ItemReject is that with Skip there is normally no error reported and the process would return that it executed normally whereas a reject results in explicitly adding a message and result in returning executed normally with message (if nothing else went wrong).
------------------------------
Hubert Heijkers
STSM, Program Director TM1 Functional Database Technology and OData Evangelist
------------------------------