Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Build String Action with fn-PadLeft or fn-PadRight Function Returns Unexpected Results

    Status: Validated

    ISSUE
    When using a Build String action that includes the fn-PadLeft or fn-PadRight inline function, the text does not render as expected. For example, when using the following function, where the ItemProperty ID has a value of 4, the expected result is "400" but the actual result is "4":
    fn-PadLeft({ItemProperty:ID}, 3, 0)
    ERROR CODE
    RESOLUTION
    Verify that there is no space between the comma and the optional padding character. For example:
    • fn-PadLeft({ItemProperty:ID}, 3,0)  will render as expected.
    • fn-PadLeft({ItemProperty:ID}, 3, 0)  does not render as expected, due to the space after the comma and before the zero.
    ADDITIONAL INFORMATION
    RELATED LINKS