ajohnson2020
13 years agoContributor
.Check of text based File does not show comparison
Hi all,
I'm dumping some tree data from our application to a text file (TC 9.2), and comparing it to a previously stored example of the same data in the Files storage. But when I compare the two files using the Check method, if there is a difference, clicking on the 'Show comparison results' link just goes to a blank screen, instead of showing a line by line diff of the two files.
Any idea why this might be the case? I am not using a file extension on either the new or old file, is it required to be a .txt for this to work properly? I can see the text contents in the Files object with no problem.
e.g.
Files.StoredFile.Check(NewFile)
File contents look something like this:
|Clay Bar (MPL)|Clay Bar (MPL)|4|1|EA|true|Order|Discrete|1|SA||true
|Clay Bar (MPL)|Clay Bar (MPL)|4|2|EA|true|Order|Backflush to Work Order|2|PP||false
I'm dumping some tree data from our application to a text file (TC 9.2), and comparing it to a previously stored example of the same data in the Files storage. But when I compare the two files using the Check method, if there is a difference, clicking on the 'Show comparison results' link just goes to a blank screen, instead of showing a line by line diff of the two files.
Any idea why this might be the case? I am not using a file extension on either the new or old file, is it required to be a .txt for this to work properly? I can see the text contents in the Files object with no problem.
e.g.
Files.StoredFile.Check(NewFile)
File contents look something like this:
|Clay Bar (MPL)|Clay Bar (MPL)|4|1|EA|true|Order|Discrete|1|SA||true
|Clay Bar (MPL)|Clay Bar (MPL)|4|2|EA|true|Order|Backflush to Work Order|2|PP||false