# \[BUG\] Clicking on OPC UA SERVER, Device Connections Internal Error

**URL:** <https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112>\
**Category:** Ignition Early Access\
**Created:** [January 25, 2019, 2:30am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112 "2019-01-25T02:30:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam.Bartlett](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Sam.Bartlett](https://forum.inductiveautomation.com/u/Sam.Bartlett)\
**Post date:** [January 25, 2019, 2:30am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/1 "2019-01-25T02:30:56Z")

</div>

When clicking on the Device Connections section in the config window I’m given an ‘Internal Error’ message.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3cbd306ebd58e83deb384be78cb476f5dbae57c5.png)

In the logs an error is given, DefaultExceptionMapper( mouseover: org.apache.wicket.DefaultExceptionMapper)  
Log is attached.

There are currently two modbus devices configured, one disabled and the other configured for a remote connection to a public IP (which as far as I can tell is working correctly, before and after the internal error message was given). The error started when I added an address mapping to the enabled device.

Edit (10m): It looks as though I cannot read any tag values.  
If I stop and start the gateway I can access the device connection page once, if I leave the page I cannot return, the same error is given, if I click to edit one of the devices results in the same as well.

After restarting the gateway for a third time, I can now not access the gateway homepage either.

[MobusDevice Error.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4192bb3cb387a40462a32e79ab159ab96b0b6643.txt) (12.5 KB)

---

<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:** [January 25, 2019, 2:48am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/2 "2019-01-25T02:48:48Z")

</div>

Thanks, I can’t reproduce this but I’ve taken a stab at fixing it based on the stack trace. Unfortunately you won’t be able to test it out until we start releasing nightly builds again.

---

<div class="post-metadata">

**Author:** ![Sam.Bartlett](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Sam.Bartlett](https://forum.inductiveautomation.com/u/Sam.Bartlett)\
**Post date:** [January 25, 2019, 3:13am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/3 "2019-01-25T03:13:10Z")

</div>

Thank-you Kevin, I’ve temporarily downgraded to v7.9.10.  
I look forward to the next update 🙂

---

<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:** [January 25, 2019, 3:15am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/4 "2019-01-25T03:15:46Z")

</div>

Use a dev system or VM for the next one!

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [February 8, 2019, 9:39pm UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/5 "2019-02-08T21:39:57Z")

</div>

This issue should be fixed in the newest build. Let us know if you continue to see this behavior after upgrading.

---

<div class="post-metadata">

**Author:** ![1264034959](https://avatars.discourse-cdn.com/v4/letter/1/bcef8e/32.png) [@1264034959](https://forum.inductiveautomation.com/u/1264034959)\
**Post date:** [July 5, 2019, 6:59am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/6 "2019-07-05T06:59:16Z")

</div>

When clicking on the Device Connections section in the config window, I’m given an ‘Internal Error’ message, too. I import many .csv files configuration for device address, but just two of them could not be saved.

---

<div class="post-metadata">

**Author:** ![1264034959](https://avatars.discourse-cdn.com/v4/letter/1/bcef8e/32.png) [@1264034959](https://forum.inductiveautomation.com/u/1264034959)\
**Post date:** [July 5, 2019, 10:16am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/7 "2019-07-05T10:16:02Z")

</div>

The version I used is Ignition 8.0.2. And I did a test during address configration——If the .CSV file has more than 685 rows, it cannot be imported. Is there a line limit for imported files?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 5, 2019, 3:25pm UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/8 "2019-07-05T15:25:26Z")

</div>

It’s not an explicit line limit but a size limit. The address mapping you create is essentially stored as an encoded CSV file inside the internal database, and we don’t want to make a single table prohibitively large, so, at least for now, the filesize limit is fairly restrictive. You can confirm on Gateway -\> Status -\> Logs - every time you hit the “Internal Error” page, there should be an error logged by `DefaultExceptionMapper` that gives you some information about what the error was.

An _option_ to explore if you want to just create the tags from your existing address mapping; I wrote this script a _while_ back to open address mapping .csv files and print out a sequence of OPC item paths, which you could then fairly easy use in a CSV _tag_ import - you just have to provide a naming convention:

```python
import csv

inputfile = system.file.openFile("csv")
device = system.gui.inputBox("Enter device name")

f = open(inputfile, 'r')
csvfile = csv.reader(f)

types = {
	'HoldingRegisterInt16':'HR',
	'HoldingRegisterFloat':'HRF',
	'HoldingRegisterDouble':'HRD',
	'HoldingRegisterUInt16':'HRUS',
	'HoldingRegisterInt32':'HRI',
	'HoldingRegisterUInt32':'HRUI',
	'HoldingRegisterInt64':'HR_64',
	'HoldingRegisterUInt64':'HRUI_64',
	'HoldingRegisterBcd':'HRBCD',
	'HoldingRegisterBcd32':'HRBCD_32',
	'InputRegisterInt16':'IR',
	'InputRegisterFloat':'IRF',
	'InputRegisterDouble':'IRD',
	'InputRegisterUInt16':'IRUS',
	'InputRegisterInt32':'IRI',
	'InputRegisterUInt32':'IRUI',
	'InputRegisterInt64':'IR_64',
	'InputRegisterUInt64':'IRUI_64',
	'InputRegisterBcd':'IRBCD',
	'InputRegisterBcd32':'IRBCD_32',
	'DiscreteInput':'DI',
	'Coil':'C',
	'ULONG': 'HRUI'
}

radix = 10
paths = []
for row in csvfile:
	if row[1] == '':
		radix = row[0]
	else:
		for i in range(int(row[1]), int(row[2])):
			paths.append("[%s]%s.%s%s" % (
				device,
				row[4], #unitid
				types[row[5]], #register type
				int(row[6]) + i
				)
			)
			
f.close()
print '\r\n'.join(paths)

```

---

<div class="post-metadata">

**Author:** ![1264034959](https://avatars.discourse-cdn.com/v4/letter/1/bcef8e/32.png) [@1264034959](https://forum.inductiveautomation.com/u/1264034959)\
**Post date:** [July 8, 2019, 2:59am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/10 "2019-07-08T02:59:08Z")

</div>

could u please tell me about the size limit? The two .csv file sizes are 31KB and 34KB, respectively.

---

<div class="post-metadata">

**Author:** ![agavino](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@agavino](https://forum.inductiveautomation.com/u/agavino)\
**Post date:** [May 19, 2021, 11:10am UTC](https://forum.inductiveautomation.com/t/bug-clicking-on-opc-ua-server-device-connections-internal-error/22112/11 "2021-05-19T11:10:14Z")

</div>

Hello  
I have the same problem, did you resolve this?

thanks
