-
If the templates do not appear, check the log files (application and j5-pi-af logs) to see if an error message has returned (for example, Invalid PI Connection).
-
It is also useful to check the logs in the PI System Management Tools on the PI Server. To check the logs in the PI System Management Tools, select Operations in the navigation bar and then select Message Logs.
-
To help determine if valid JSON data is returned, enter the following URL into a browser:
https://127.0.0.1:<port_number>/eventframes/templates?mToken=<token_number_param>&systemName=<system_name>&dbName=<pi_database_name>
The items in the angle brackets are the parameters being passed into the get method and should be seen in the j5 logfiles.For example:
http://127.0.0.1:9085/eventframes/templates?mToken=2ab2c7c11f2a4d5ebac46165d94086f1&systemName=j5PISERVER&dbName=j5PI.
Parameter |
Description |
---|---|
port_number |
The port the j5-pi-af service is running on. By default, the port number is 9085. |
token_number_param |
Authentication token |
system_name |
The AF server host name |
pi_database_name |
The AF database name |
Create a mapping for your windows user to a PI account / PI Group. To do this, in the PI System Management Tool select Security > Mappings and Trusts and create a new mapping.