Hi John
First price is if you have a upg file in a dataset which did upgrade correctly (you would have to be sure that is the correct upg file though) and copy this file into the dataset's upg path which is having a problem. This should work.
FM comes with a upgview tool in the 3rdparty/bin folder called upgview. This might help you look at the upg file to see what version history and file structures it knows off.....have a look the the changes report in this tool as well. It give a you version to version history of what has changed. This will help you with second price below....
1 - Undo the changes you made in the dictionary. If you have a backup of the program in non-error 47 state, restore that version. Alternatively, if you are aware of the changes you have made to the dictionary to cause the error 47, and it is easily undone, then do so.
If you are unsure of the structure of the current TPS file on disk, use TopScan to view the file structure.
E.g.: TopScan File > File Layout.
At this time, set the file versions in your dictionary, run your program and touch all the files (if you can start with no upg file). Then make the relevant changes in dictionary and they files should upgrade
2 - Manually create a conversion program. Using the before and after file structures, you can manually create a conversion program in Clarion to get the file structures correct. Then repeat the paragraph above.
Cheers
Rob