Modify the PI AF MDB mapping table
- Last UpdatedFeb 12, 2025
- 1 minute read
- PI System
- PI Server
The PI AF to MDB mapping table (pimdbafmapping.dat) maps a PI module to an AF element. When you edit a PI module, PI AF Link uses this table to identify the correct AF Element to check out. If this file is corrupt or lost, it can be recovered by running PI AF Link offline with the command –fixafmdbmap.
The symptoms of failure would be repeatedly getting a -19501 error ([-19501] Module not yet created in AF. Retry.) If you continue to get this error, even after a few retries and if there are no events pending for PI AF Link, then this file might be corrupt suspect (How to tell if PI AF Link has pending events).
Follow these steps:
-
Stop the PI AF Link Subsystem service.
-
Open a command window.
-
Navigate to PI\bin in the directory in which the Data Archive server is installed.
-
Run the command:
piaflink -fixafmdbmap
-
Start the PI AF Link Subsystem service.
-
Verify that the account under which the PI AF Link Subsystem service runs (Learn about PI AF Link access permissions) has read-write access on the regenerated mapping table (pimdbafmapping.dat).