Planning Analytics

IBM Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  v12 and ItemSkip in epilog

    Posted 10/08/26 01:32 PM

    Hey Community!

    we recently migrated one of our clients to PA SaaS and found that v12 treats the situation with ItemSkip in epilog diffrently.

    I like that the v12 log now states explicitly that the process finished with ItemSkip:

    0	info	09/30/2026 10:32:58 AM	TM1.Process	Process '<PROCESS_NAME>': finished with ItemSkip.


    but surprisingly there is no ProcessExitByItemSkip() return value.

    However, ExecuteProcess returns 3 in this case, and none of the documented return value functions matches it. Values on our v12 instance

    ProcessExitNormal    0
    ProcessExitWithMessage    5
    ProcessExitMinorError    7
    ProcessExitByBreak    8
    ProcessExitByQuit    9
    ProcessExitSeriousError    12
    ProcessExitOnInit    13
    ProcessExitByChoreQuit    18

    and REST API returns even less return status codes:

    <EnumType Name="ProcessExecuteStatusCode">
        <Annotation Term="Core.Revisions">
            <Collection>
                <Record>
                    <PropertyValue Property="Version">
                        <String>11.3.0</String>
                    </PropertyValue>
                    <PropertyValue Property="Kind">
                        <EnumMember>Core.RevisionKind/Added</EnumMember>
                    </PropertyValue>
                </Record>
            </Collection>
        </Annotation>
        <Member Name="CompletedSuccessfully" Value="0"/>
        <Member Name="Aborted" Value="1"/>
        <Member Name="HasMinorErrors" Value="2"/>
        <Member Name="QuitCalled" Value="3"/>
        <Member Name="CompletedWithMessages" Value="4"/>
        <Member Name="RollbackCalled" Value="5"/>
    </EnumType>


    So the calling process can't test the outcome against a named function. It has to hardcode 3, which feels fragile.


    what do you think

     - Should ItemSkip be allowed in the Prolog and Epilog at all? There is no current data source record there, so arguably it should be a no-op or raise an error during TI save.

    - If it is allowed, shouldn't there be a ProcessExitByItemSkip() function,  so callers can handle it properly?


    Cheers, 
    Fe Ze



  • 2.  RE: v12 and ItemSkip in epilog

    Posted 10/09/26 02:58 AM

    Interesting finding, Fedor.

    From an automation and process-orchestration perspective, I think the most important point is the missing named return value.

    If ItemSkip is accepted in the Epilog, the calling process should be able to identify this outcome explicitly, rather than relying on a hardcoded numeric value such as 3. Otherwise, the logic becomes harder to read, maintain, and trust across different environments or future versions.

    I also think it is worth distinguishing between the two questions:

    • Should ItemSkip be valid in the Prolog and Epilog? Since there is no current source record to skip, the behavior should be clearly defined and documented.

    • How should the outcome be reported? If the behavior is intentional, a dedicated ProcessExitByItemSkip() function would provide a much cleaner and more consistent way to handle it.

    For me, predictable and explicitly documented process outcomes are particularly important when TI processes are chained together or executed through automation.

    It would be good to clarify whether the return value of 3 is intentional in v12. On the REST side, ProcessExecuteStatusCode value 3 is already QuitCalled, so the same run is an ItemSkip in the TM1 log and a quit in the API. If ItemSkip in the Epilog is accepted, callers need a named ProcessExitByItemSkip(), and the REST status should name the same outcome.



    ------------------------------
    Vitalij Rusakovskij
    ------------------------------



  • 3.  RE: v12 and ItemSkip in epilog

    Posted 10/10/26 12:06 PM

    ItemSkip forces to skip the data source line. By this definition having it in Prolog/Epilog it'd seem to be the wrong tab for it to be in. Your test case is likely uncovering an unexpected behavior.

    Some observations:

    1. In a TI (let's call it B) with a defined data source - say File, and we include ItemSkip in the data tab. And we have TI (say A) that calls B and prints the process return code.  The process execution of B when called from A, would return 0 - assuming no other errors. This implies that ItemSkip by itself in the right tab is not a cause of a non-zero return code. It is therefore I am inclined that ItemSkip should NOT be allowed in Prolog/Epilog AND TI shouldn't save in such cases. 
    2. Why 3? No idea, perhaps a Dev can explain it. I'd speculate that, 'cos it is between 0 (successful execution) and 5 (the next nearest return code for ItemReject)
    3.  What is interesting is that an ItemReject in Prolog with ItemSkip in Epilog; or vice-versa i.e. ItemSkip in Prolog with ItemReject in Epilog in the TI B ... returns 5 when called from A in both cases. So a  process return code of higher-order supersedes the lower order return code. I have tried with multiple other higher-order return codes and the explanation holds good in those cases as well.



    ------------------------------
    Sachin Kulkarni
    ------------------------------



  • 4.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago

    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
    ------------------------------



  • 5.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago

    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
    ------------------------------



  • 6.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago

    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:

    1. 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.
    2. 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
    ------------------------------



  • 7.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago

    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
    ------------------------------



  • 8.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago

    Hi Hubert,

    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.

    Best regards,  
    Vitalij



    ------------------------------
    Vitalij Rusakovskij
    ------------------------------



  • 9.  RE: v12 and ItemSkip in epilog

    Posted 29 days ago
    Edited by Fedor Zevako 29 days ago

    Hey Hubert, 

    thanks for clarification, I totally agree with you about meaning of itemskip in prolog/epilog. in my case it was a copy-paste issue when piece of the code was copied to the epilog and in v11 it worked as no-op ( or at least was not affecting the parent process status) and no one ever noticed it. but not in v12. Any of the direction if fine I believe, it just needs to be documented, so developers know what to expect and use it accordingly)



    I actually logged a ticket TS023113744 about the parent log inconsistency in this case - parent process log says it finished with minor errors but the only trace of itemskip is in server log within INFO level.  

    Cheers, 
    Fe Ze