Error validating source for synced record type while deploying to higher environment

Dear Team,

I am experiencing an issue with synced record types while deploying package from dev to Test environment.

Issue: Error validating source for synced record type - APNX-2-4195-000

Possible Root Cause: Data source for record type is different in dev and Test.

Alternate Solution: I can able to deploy the package, However i need to open the record type in target environment and change the datasoruce.

Comment: Our deployment will not to do above mentioned alternate solution in each higher environment. Please provide any other possible solution.

Tried options: I tired modifying the .xml file with target datasource, but when i select the package it says, package is invalid.

  Discussion posts and replies are publicly visible