Error while validating edi data against record structure

This problem i am facing while migrating the integration for EDI 850 3020 from one B2B server to another B2B server. After migration it is giving me error at the validation step where i am validating the edi data against the record structure.
The error generated is:

“Unable to locate type definition”
I copied the 3020.template file in the EDISetTemplates folder using CopyTemplate service and template object gets generated properly.
Please guide me what can be the possible reasons.

Thanking you,