The error "Failed to initialize SQL PI engine" "Cannot register engine due to mismatch in connection to the repository parameter" appears in the database agent log. No data is displayed in the PI dashboard.
When the first agent with PI enabled is deleted from Database dashboard, the credentials used by Repository Service will not be refreshed when changing credentials. The credentials used by Repository Service will always use the credentials the the first PI agent uses.
If the new PI credential doesn't work on the new monitored agent, restart fglam on which DB agent deployed.