Skip to main content
Solved

how to handle empty string like coliumns=" " i want to insert mysqldb incolumn int type empty string means as Null but it shows error .

  • March 28, 2023
  • 1 reply
  • 44 views

deepikamani007
Fan

below is my error 

 I want to write these type columns (columns=””)to NULL IN mysqldb

 

Best answer by Bikram

@deepikamani007 

 

can you please try to use the below code in expression evaluator and check if it works for you.

 

${str:isNullOrEmpty(record:value("/emailid"))?NULL:record:value("/emailid")}

 

 

 

Thanks & Regards

Bikram_

 

View original
Did this topic help you find an answer to your question?

1 reply

Bikram
Headliner
Forum|alt.badge.img+1
  • Headliner
  • 486 replies
  • Answer
  • March 28, 2023

@deepikamani007 

 

can you please try to use the below code in expression evaluator and check if it works for you.

 

${str:isNullOrEmpty(record:value("/emailid"))?NULL:record:value("/emailid")}

 

 

 

Thanks & Regards

Bikram_

 


Reply