I can't use PI Archive editor which grey out. Besides that the primary archive file is lost at anywhere. Perhaps should i do to configure it back to track. (I don't care about the previous archive even if i lose it)



  • ​ Without a lot of detail to work with I would first make sure the pi server is running. Go to your command prompt and try this first:

    cd /d %piserver%\adm

    PISRVSTART

    If your pi server is running, I would next work to confirm you have the authority to create a pi archive - pedestrians using the pi server do not have admin rights to add, edit, register or unregister archives. BUT if you know you have the authority, I would run the following commands from your command prompt:

    cd /d %piserver%\adm

    piartool -ac {{ your archive directory and archive name here }}

    This will create and register a new archive. You do not need the PI System Managment Tools (PI SMT) utility to create and register an archive. Now if that works you should see the new archive in the list of archives in PI SMT. If that worked you should also be able to register the archive you "lost" if the archive is in the directory you used in the command line above simply register it by typing from the same prompt location:

    piartool -ar {{ your archive directory and "lost" archive name here }}

    For example: piartool -ar E:\PI\arc\HST2_2025-08-08_16-38-22.arc

  • From the screenshot, I can see you’re logged in as piadmin, so this is not a permissions issue. The problem is most likely due to an unregistered archive. You have two options:

    1. Register the old archive (if you still had it) using: piartool -ar
    2. Since you mentioned you don’t need the old archive, you can simply create a new one with: pidiag -ar

    This will configure a new primary archive so that PI can start tracking data again.