Hello Dhinesh,
I am not aware of complete background of your development.
Just a suggestion, why not prevent the service order creation by checking duplicate at the start of the process. This will save time and effort for the user for entering data into service order.
Thanks,
Kapil