September is Abbreviated to Sept even though Left() function is used

if(
rule!APN_isBlank(singlePV: ri!date),
"",
/*left(text(ri!date, "mmm",3), ri!format))*/
left(text(ri!date,"mmm",3), ri!format)
)

Following is the error 

Expression evaluation error at function 'text' [line 7]: Signature length (2) does not match parameter length (3)

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer
    in reply to nirupamaanuragt

    Can you check if under Settings->General you have locale set as English(United Kingdom). Looks like the Internationalisations settings are at play here causing this behaviour. I have it as United States and it returns output as 'Sep' 

    If for reasons, you cannot update the Locale to US then you can try and handle the September month like below. Give it a try!

    if(
      month(ri!date) = 9,
      substitute(
        text(ri!date, "dd-mm-yyyy"),
        "-09-",
        "-Sep-"
      ),
      text(ri!date, "dd-mmm-yyyy")
    )

  • 0
    Certified Lead Developer
    in reply to nirupamaanuragt

    Got you! This issue is because of user locale.

    User Level: Change user profile locale from en_GB (UK) to en_US (US) => affects only that user
    Admin Level: Go to Admin Console -> Internationalization -> Change Primary Locale to en_US => applies to all users in the environment.

    This locale problem is only for September month recommend you to make changes to code instead of environment level.
    Below working example for all months
     

    a!localVariables(
      local!date:"09/11/2025",
      local!formattedDate: text(local!date, "dd-MMM-yyyy"),
      if(
        isnull(local!date),
        null,
        substitute(
          local!formattedDate,
          "Sept",
          "Sep"
        )
      )
    )

  •  Somehow we have encountered this issue for July too earlier but in 2025, facing issue with September. I am sure Appian should have some resolution going forward to fix it from root.

    I will try the recommendations you have shared. Thanks for keeping an eye on this.