Skip to main content
kavyam0002
Brainy
Feb 21, 2024 12:22 PM UTC
Solved

JAXB error in PM

when i pass the value to the code am getting below error 

if(
  null(ac!convertWord_txt),
  "zero",
  convertnumbertoword(
    trim(split(ac!convertWord_txt, ".").[1]),
    ""
  )
)

what might be the issue here

    davidj137213
    Brainy
    Feb 22, 2024 12:22 PM UTC

    Is convertWord_txt a number?  If so, try this

    if(
    null(ac!convertWord_txt),
    "zero",
    convertnumbertoword(
    fixed(ac!convertWord_txt, 0,false),
    ""
    )
    )

    22 replies

    mathieud0001
    Genius
    Feb 21, 2024 12:28 PM UTC

    I would suggest you contact the maker of the plugin.

    community.appian.com/.../convert-number-to-word

    davidj137213
    Brainy
    Feb 21, 2024 12:52 PM UTC

    That plugin is not updated  since 2017.... 

    What is the functionality that you need to implement? Maybe we can find way to do it...

    kavyam0002
    Brainy
    Feb 21, 2024 12:58 PM UTC

    if i pass the integer it has to give me the word of the integer

    200 if i pass it should give me two hundred

    davidj137213
    Brainy
    Feb 21, 2024 1:02 PM UTC

    Ok, that plugin accepts the following parameters

    public String convertNumberToWord(ServiceContext sc, @Parameter Long number, @Parameter String standard) {

    Could you please cast this value ac!convertWord_txt, to integer and try again?