My workflow is working fine but when I checked in output it shows the above. I no idea what wrong
The value you are trying to pass is not coming to this workflow. So, it throwed that error. Could you please check once whether data is coming properly from other workflow or not. First try to print and then use it.