Working with Text Patterns: SEQUENTIAL increments by 2 not 1

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 [DHIS2-8475] - Jira

@dhis2-tracker @dhis2-platform

Dear @ifeanyiokoye

Can you share the exact script you are entering, try
(ORG_UNIT_CODE) + SEQUENTIAL(######)

Regards

1 Like

Dear @prosper,

This was the error I got when I tried the syntax you provided.

Thank you for the response though.

Dear @ifeanyiokoye

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 Home - DHIS2 Documentation

Regards

1 Like

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.

Dear @ifeanyiokoye

I see some jira issues related to this [DHIS2-3854] - Jira
Am including in @Stian and @Markus to further support .

Regards

1 Like