We received this error message when attempting to migrate Application Data Set Defn:
Data Set Definitions Application Upgrade Copy started: 2015-11-20-15.30.05 System Error : Data Set Definitions
HF_CF_ADJ_TYPE_DS Error - failure during Copy Database process.
The prompting for related object for application data set defn does not work for Stat 5.7.2 and 5.7.3.
Run this query for PS 8.51 and lower to find out the related record name
SELECT RECNAME FROM PSADSTYPEITEM WHERE PTADSNAME=%%AppDataSetDefn%%
Run this query for PS 8.52 and higher to find out the related record name
SELECT RECNAME FROM PSADSDEFNITEM WHERE PTADSNAME=%%AppDataSetDefn%%
Once you know the related record name, then add them to a csr in order to migrate application data set defn
This issue was fixed in Stat 5.7.4 where it would prompt the user to add related object type for application data set defn. Go to User Options | Stat Options and make sure to check prompt for related object.