Skip to main content
Nelson Schroth
Participating Frequently
May 28, 2021 4:23 PM UTC
Question

What causes an "Invalid of Missing Partblock" error?

My program was simply opening a file using the name from the VOC @ID and then doing a STATUS.
I get the same error doing a LIST from TCL.

     >CT VOC TKEYCODE
     0001 F
     0002 TKEYCODE
     0003 D_TKEYCODE

     >LIST TKEYCODE
     Invalid Partblock for "TKEYCODE".
     Invalid or missing Partblock for "TKEYCODE".
     Invalid Partblock for "TKEYCODE".
     Invalid or missing Partblock for "TKEYCODE".
     Unable to open "TKEYCODE" file.

The files exist on AIX: 
     -rwxrwxrwx 1 slice staff 17408 May 28 16:29 D_TKEYCODE
     -rwxrwxrwx 1 slice staff 1024 Nov 23 2001 TKEYCODE

Not sure why it got this error?  The file is old and probably no longer in use, but in 20 years in MV I have never see this error???
env:  AIX 7.2 running UniVerse 11.3.1
​
Thanks in advance for any insights.
Nelson

    1 reply

    Neil Morris
    Rocketeer
    May 29, 2021 7:39 AM UTC
    My program was simply opening a file using the name from the VOC @ID and then doing a STATUS.
    I get the same error doing a LIST from TCL.

         >CT VOC TKEYCODE
         0001 F
         0002 TKEYCODE
         0003 D_TKEYCODE

         >LIST TKEYCODE
         Invalid Partblock for "TKEYCODE".
         Invalid or missing Partblock for "TKEYCODE".
         Invalid Partblock for "TKEYCODE".
         Invalid or missing Partblock for "TKEYCODE".
         Unable to open "TKEYCODE" file.

    The files exist on AIX: 
         -rwxrwxrwx 1 slice staff 17408 May 28 16:29 D_TKEYCODE
         -rwxrwxrwx 1 slice staff 1024 Nov 23 2001 TKEYCODE

    Not sure why it got this error?  The file is old and probably no longer in use, but in 20 years in MV I have never see this error???
    env:  AIX 7.2 running UniVerse 11.3.1
    ​
    Thanks in advance for any insights.
    Nelson
    Hi Nelson,
    The message you are receiving is related to a file being a part file in a distributed file. When a file is added to a distributed file, a location in the header of the file contains a pointer to a location which contains information about the part file such as the partitioning algorithm. I suspect the pointer in file header is no longer valid. I can reproduce a similar error by putting an invalid pointer into that location in the file header. I also notice the size of the file is only 1024.  It is possible the file was truncated in some way? It may be the part file pointer in the header is now pointing beyond the end of file.

    >LIST NELSON
    Invalid Partblock for "NELSON".
    Invalid or missing Partblock for "NELSON".
    Invalid Partblock for "NELSON".
    Invalid or missing Partblock for "NELSON".
    Unable to open "NELSON" file.

    Hope that helps.

    Thanks,

    Neil