Hi Faisal,
During Simulation you will not get the error because you pass the input parameters manually, but during real time execution whether input data is being sent correctly or not we need to check.
I will try to simulate the same and will check if I can help you.
Regards,
Madhu.