I am trying to convert the hex value (coming as part of content of the flowfile) 2c0f19d10da4e92896faf7a92ce26f94d2fe91acdc2a69730731613f7c094a36 using fromRadix() EL in UpdateRecord processor. Below is the code I have used
${field.value:isEmpty():not():ifElse('${field.value:fromRadix(16)}','${literal("")}')}
But am getting error, "will route to failure: For input String "2c0f19d10da4e92896faf7a92ce26f94d2fe91acdc2a69730731613f7c094a36"
I tried it through Groovy with the below code, it is working fine.
def data1 = '2c0f19d10da4e92896faf7a92ce26f94d2fe91acdc2a69730731613f7c094a36'
BigInteger x = new BigInteger(data1,16)
println "original output: " + x
Output is coming as
original output: 19928446223359820201840237302010524452213876686816802601399388669528806869558
Would like to know what is wrong with my UpdateRecord processor code using fromRadix(16)