hexagon logo

Tried & Tried

Open a single program on all three (3) of my CMM's two (2) of them will send stat's to the database as they suppose too. The 3rd one will show an error.
ERROR ATTACHED BELOW. Has anyone seen this before or do I need to call B&S and wait for them or Haley's comet to come around every 75 years.

Just joking, help if you can and have time.
  • Until you delete the XSTATS11.TMP file, you will continue to get this error after you get it the first time.

    that was posted by Matt.

    But my question still is? will it delete the data that's already in there or or will it mess up the other 2 cmm's which works fine. and do I delete this file on the computer that's causing the problem. Because I have a off line where datapage lives and I send stat's from all three online computer's over a server.
  • ANY good data in the XSTAT11.TMP file SHOULD be getting sent through to Datapage. It SHOULD be only the data with the bad path that stays in the Xstats11.tmp file and thus gives the error. Delete the xstats11.tmp file from the PC that is giving the error, it will be located in the INSTALL directory of Pcdmis. If you are scared of losing data (but you ain't been able to use it so far!) you can open the file (simple ASCII TEXT file) and edit the path to a correct one, then go to Datapage Editor and do an update, search for that file and upload the data. However, I seriously doubt you need any of the data in there or you would have been screaming about lost data. Just delete the file. THEN, when it pops back up, look at the Datapage path in the program that gives the error, it will be bad, so just fix it. It might have more than one path and that is what could be giving the error. You CAN use multiple paths without a problem, but if ONE of the is bad, you will get that error.
  • Thanks, deleted the file and re-ran part and it worked..

    What else could start off a good day, when you ask for help and you get it, then try it and it works. HELLLLLLLLLLLLLLLO
  • Thanks, deleted the file and re-ran part and it worked..

    What else could start off a good day, when you ask for help and you get it, then try it and it works. HELLLLLLLLLLLLLLLO


    Did you expect anything less of the "Master of Datapage"?

    For my next trick, I will teach you how to recover a lost database (NOT, that can't be done, sorry). Back that sucker up nightly!!!!!!!
  • Put this code at the beginning of your part programs:

    V1 =FILE/EXISTS,C:\PCDMISW\XSTATS11.TMP
    IF/V1==1
    FILE/DELETE,C:\PCDMISW\XSTATS11.TMP
    END_IF/
    


    Where C:\PCDMISW\ will need to be edited to reflect the location of your XSTATS11.TMP file
  • Put this code at the beginning of your part programs:

    [COLOR="Red"]V1 =FILE/EXISTS,C:\PCDMISW\XSTATS11.TMP
    IF/V1==1[/COLOR]
    [COLOR="Orange"]FILE/DELETE,C:\PCDMISW\XSTATS11.TMP
    END_IF/[/COLOR]


    Where C:\PCDMISW\ will need to be edited to reflect the location of your XSTATS11.TMP file


    So other words I'm telling it where the xstats11.tmp file is and if it's true it will delete it.


    also it there any data that explains what the below insert means. I know a little how it works but what the -------- does each line mean.
  • So other words I'm telling it where the xstats11.tmp file is and if it's true it will delete it.


    I do believe that is correct.
  • So other words I'm telling it where the xstats11.tmp file is and if it's true it will delete it.


    also it there any data that explains what the below insert means. I know a little how it works but what the -------- does each line mean.


    What happens is this line check to see if the file is there. We need to check because the next line takes action on said file and we don't want an error if it does not exist:

    V1 =FILE/EXISTS,C:\PCDMISW\XSTATS11.TMP


    Now if it exists V1 will be 1 if it does not exist V1 will be 0. This line evaluates V1 and if it is a 1 deletes your XSTATS11.TMP

    IF/V1==1
    FILE/DELETE,C:\PCDMISW\XSTATS11.TMP
    END_IF/


    This stuff needs to be done before any stats transfer, put it at the beginning of your .prg to be safe.