Forum Discussion

ajohnson2020's avatar
ajohnson2020
Contributor
13 years ago

.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



2 Replies

  • Sorry, I never updated this posting.  This turned out to be a PEBKAC error with the UI:  I had accidentally closed the file comparison detail window at some point in the past, and had to do some searching to find the appropriate button to restore it.  After that it works OK.