A row with this key already registered in the table - Advanced Installer Community
Joshr
Posts: 35
Joined: Mon Dec 14, 2015 5:40 pm

A row with this key already registered in the table

I added an XML search to retrieve the value of an XML node out of one of our configuration files. After doing so, I now get the following error:

Code: Select all

A row with this key [1] was already registered in the table.
Since the error isn't telling me exactly what it's trying to add, or where, how can I fix this?


Here the error details and the build log.

Code: Select all

A row with this key [1] was already registered in the table.

Advanced Installer 12.8 build 69285
*** Stack Trace (x86) ***

[0x7412dad8]  RaiseException()
[0x016e691e]  -----
[0x00520c46]  -----
[0x00635d3d]  -----
[0x007a791a]  -----
[0x007a3a56]  -----
[0x007a1a3c]  -----
[0x0079f4f0]  -----
[0x0079f300]  -----
[0x00746719]  -----
[0x005ab7c8]  -----
[0x005aa9a2]  -----
[0x005a9499]  -----
[0x005a9244]  -----
[0x005a9017]  -----
[0x005a7f22]  -----
[0x005a68c3]  -----
[0x003efe34]  -----
[0x003eb9a7]  -----
[0x00330000]  MODULE_BASE_ADDRESS
Here's the build log:

Code: Select all

Checking builds status
Build required.

[ Application ]
Building package (en): D:\Projects\Application\Install-NewInstall\Application-SetupFiles\Application.exe
Preparing files
Creating CAB file(s)
A row with this key [1] was already registered in the table.
Error details
 
Build finished because an error was encountered.
Joshr
Posts: 35
Joined: Mon Dec 14, 2015 5:40 pm

Re: A row with this key already registered in the table

Unfortunately, now even removing the search does not get rid of this error.

I can no longer build my project.
Joshr
Posts: 35
Joined: Mon Dec 14, 2015 5:40 pm

Re: A row with this key already registered in the table

Closing Advaned Installer and re-opening the project results in a different build error, now:

Code: Select all

Checking builds status
Build required.

[ Application ]
Building package (en): D:\Projects\Application\Install-NewInstall\Application-SetupFiles\Application.exe
Preparing files
Creating CAB file(s)
Creating MSI database
Error calling MSI API: 1627 Method: MsiDatabaseImport Table: ControlEvent. Extended Error: 1: 2216 2: D:\Projects\Application\Install-NewInstall\Application-SetupFiles\Application.msi 3: ControlEvent.idt 4: 109 .
Error details
 
Build finished because an error was encountered.
And the error details:

Code: Select all

Error calling MSI API: 1627 Method: MsiDatabaseImport Table: ControlEvent. Extended Error: 1: 2216 2: D:\CommSys\ConnectCic\Install-NewInstall\ConnectCic-SetupFiles\ConnectCic.msi 3: ControlEvent.idt 4: 109 .

Advanced Installer 12.8 build 69285
*** Stack Trace (x86) ***

[0x7412dad8]  RaiseException()
[0x016e691e]  -----
[0x007dc0fc]  -----
[0x007d802c]  -----
[0x007465e6]  -----
[0x0074a5a6]  -----
[0x007467ab]  -----
[0x005ab7c8]  -----
[0x005aa9a2]  -----
[0x005a9499]  -----
[0x005a9244]  -----
[0x005a9017]  -----
[0x005a7f22]  -----
[0x005a68c3]  -----
[0x003efe34]  -----
[0x003eb9a7]  -----
[0x00330000]  MODULE_BASE_ADDRESS
Joshr
Posts: 35
Joined: Mon Dec 14, 2015 5:40 pm

Re: A row with this key already registered in the table

For some reason, Advanced Installer duplicated one of the published events on one of my dialogs. After removing the duplicate, the project now builds.

Can your error messages be made more specific about what exactly is the problem and where the problem is occurring so that these errors can be fixed more quickly?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: A row with this key already registered in the table

Hello,

Thank you for your feedback. We'll try to improve the build error message we throw when a project content is corrupted.

Also, as a side note, if you are willing to it will be very useful for us if you could replicate the issue in a test case or in new test project and forward it to us so we can further investigate this on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”