I created an automatically generated ID with this syntax ORG_UNIT_CODE(…)-SEQUENTIAL(#####) and noticed that even though it works, it does so in increments of 2, not 1 as stated in the documentation.
I was also able to reproduce this on the demo server for 2.33.2.
Is this an issue with my syntax or a bug?
I have created JIRA ticket at https://jira.dhis2.org/browse/DHIS2-8475
Can you share the exact script you are entering, try
(ORG_UNIT_CODE) + SEQUENTIAL(######)
This was the error I got when I tried the syntax you provided.
Thank you for the response though.
You will need to specify the number of characters to pick form the Orgunit code … the number of dots represent the number of characters to keep.
ORG_UNIT_CODE(…) + SEQUENTIAL(######)
More details here https://docs.dhis2.org/master/en/user/html/dhis2_user_manual_en_full.html
Thank you once again and from my post, this is what I have done. The plus or the minus sign does not make a difference from what I have tried and both give the same results and the same output. Both methods increment by 2 instead of 1.
Thanks once again.
I see some jira issues related to this https://jira.dhis2.org/browse/DHIS2-3854
Am including in @Stian and @Markus to further support .