# Allen Bradley MicroLogix refreshBrowse

**URL:** <https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000>\
**Category:** Ignition\
**Created:** [March 11, 2020, 1:03pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000 "2020-03-11T13:03:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 11, 2020, 1:03pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/1 "2020-03-11T13:03:52Z")

</div>

We have a MicroLogix device that periodically gets stuck in a disconnected state. This seems to be from from shutting the device down over the weekends which unfortunately the operators continue to do.  
To get it back up and running i have been going to the gateway and editing the device and just saving it again, it looks like it reboots and then re-browses.  
Just tried to use the system.device.refreshBrowse as hopefully i can add this to a periodic task that will look at the status of the device but i am getting the following error when i try to run the script. Any ideas on how to switch the device out of “Private”?

Thanks in advance.

com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: class com.inductiveautomation.ignition.gateway.opcua.scripting.IALabsGatewayScriptingFunctions cannot access a member of class com.inductiveautomation.ignition.gateway.opcua.server.DriverAdapter with modifiers “private”

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 11, 2020, 2:11pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/2 "2020-03-11T14:11:31Z")

</div>

Consider just disabling then re-enabling the device instead (using scripting). That’s effectively what happens when you edit the device and just hit save.

---

<div class="post-metadata">

**Author:** ![wschauer](https://avatars.discourse-cdn.com/v4/letter/w/ecccb3/32.png) [@wschauer](https://forum.inductiveautomation.com/u/wschauer)\
**Post date:** [March 11, 2020, 3:21pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/3 "2020-03-11T15:21:52Z")

</div>

Thanks, no issues doing it this way.

---

<div class="post-metadata">

**Author:** ![ccontreras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ccontreras/32/40931_2.png) [@ccontreras](https://forum.inductiveautomation.com/u/ccontreras)\
**Post date:** [November 4, 2020, 12:01am UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/4 "2020-11-04T00:01:48Z")

</div>

This is actually a bug on our end. I have filed an internal bug report for it. You should be able to trigger a rebrowse on a device using this function.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 2, 2021, 2:19pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/5 "2021-03-02T14:19:52Z")

</div>

Any update on this?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 2, 2021, 2:28pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/6 "2021-03-02T14:28:24Z")

</div>

Open PR that got stuck in a QA logjam. Should be part of 8.1.4 and a nightly soon.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 2, 2021, 2:31pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/7 "2021-03-02T14:31:35Z")

</div>

Actually it was fixed in 8.1.1, I was looking at the wrong thing.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 3, 2021, 2:29am UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/8 "2021-03-03T02:29:22Z")

</div>

Got this exact problem on monday on version 8.1.2

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 3, 2021, 2:34am UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/9 "2021-03-03T02:34:35Z")

</div>

Can you upload your logs or attach the full error message?

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [March 3, 2021, 3:03am UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/10 "2021-03-03T03:03:04Z")

</div>

Don’t have much

On sunday afternoon, I have this message at 28Feb2021 14:12:12:

```auto
Uncaught Throwable during messageArrived(). msg=[6F 00 38 00 BF 10 7F F7 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 02 00 00 00 00 00 B2 00 28 00 CB 00 00 00 05 55 04 07 00 00 00 46 00 00 06 00 EE 4A 9F 23 31 37 36 36 2D 4C 45 43 20 20 20 00 00 26 00 C7 05 9E FC 01]

```

```auto
java.lang.IllegalArgumentException: newPosition > limit: (5 > 0)
at java.base/java.nio.Buffer.createPositionException(Unknown Source)
at java.base/java.nio.Buffer.position(Unknown Source)
at java.base/java.nio.ByteBuffer.position(Unknown Source)
at com.inductiveautomation.xopc.drivers.allenbradley.requests.ABMicroLogixBrowseRequest.processProcessorModel(ABMicroLogixBrowseRequest.java:245)
at com.inductiveautomation.xopc.drivers.allenbradley.requests.ABMicroLogixBrowseRequest.receiveMessage(ABMicroLogixBrowseRequest.java:159)
at com.inductiveautomation.xopc.drivers.allenbradley.requests.ABMicroLogixBrowseRequest.receiveMessage(ABMicroLogixBrowseRequest.java:34)
at com.inductiveautomation.xopc.driver.api.BasicRequestCycle$PendingRequest.receiveMessage(BasicRequestCycle.java:434)
at com.inductiveautomation.xopc.driver.api.BasicRequestCycle.deliverMessage(BasicRequestCycle.java:201)
at com.inductiveautomation.xopc.driver.api.BasicRequestCycle.messageArrived(BasicRequestCycle.java:183)
at com.inductiveautomation.xopc.driver.api.AbstractDriver.messageArrived(AbstractDriver.java:852)
at com.inductiveautomation.xopc.driver.api.AbstractSocketDriver.messageArrived(AbstractSocketDriver.java:192)
at com.inductiveautomation.xopc.driver.api.AbstractSocketDriver$DriverIOEventHandler.lambda$deliverMessage$0(AbstractSocketDriver.java:253)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

```

Then only this message at 28Feb2021 16:12:12

```auto
Socket connection closed; DriverState was Connecting

```

On monday March 01, at 10:00, device was stuck on “Disconnected (or disconnecting??): Pending refreshBrowse”. I openned the connection settings, then save changes, and the connection restarted correctly

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 3, 2021, 1:48pm UTC](https://forum.inductiveautomation.com/t/allen-bradley-micrologix-refreshbrowse/33000/11 "2021-03-03T13:48:02Z")

</div>

Ah, I see, I thought we were talking about the error that occurred while using `refreshBrowse`, which is what got fixed.

I don’t know what that error is. Looks like the device sent a response indicating some length but it was truncated. You should probably open a support ticket so they can get your logs and information and document this.
