Hi Swarup,
Do you have any relationship between primary client and scondary client details?
If there is any relationship between 2 extensions, you should set all the primary and secondary client issues properly.
Check in debug mode whether all the values are correctly filling in internal tables.
Record_id should be uniques as identified by Deepika, and ref_guid should be the root object guid.
Best Regards,
Dharmakasi.