Skip to content

duplicate name exists on network #743

@leocubs89

Description

@leocubs89

Bug report

OSIsoft.AF.PI.PIConnectionException: [52] You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.

Description

I was running my code in a loop

While ...
with PI.PIServer(server=region) as server:
........

and I would get the error above. I can change the loop to only run the with three times but I still get the error.
real kicker is sometimes I will get the error right away if I try to rerun my code for a while. Anyway to make sure I am not still connected to the network?

To Reproduce

Steps to reproduce the behavior:

While ...
with PI.PIServer(server=region) as server:
........

Expected behavior

I want to connect to the PI server

Possible solutions

I need to make sure I am signed out or disconnect within my code

Screenshots

If applicable, add screenshots to help explain your problem.

System

  • OS: [e.g. Windows, Linux]
  • Python version: [Python 3.x]
  • PIconnect version: [e.g. 0.10.0]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions