Page 1 of 1

Duplicate key value supplied in GenericObjectCollection

PostPosted: Thu Aug 24, 2017 8:48 pm
by nexio
Hi,

We have an application in C#, ASP.NET, which connects to Jiwa and logs in to create a service claim in service manager. Everything was working fine for a while, and recently it started giving an error.

Server Error in '/' Application.
Add failed. Duplicate key value supplied.

Line 192: maintenanceBL.GenericObjectCollection.Add(readItem);

Source File: C:\ProgramData\Jiwa Financials\Jiwa 7\7.0.157\Admin\<ServerIP>\<DBName>\Plugins\admin\Compile\Performance Metrics\Performance Metrics.cs Line: 192


Error points to the line mentioned above.

If we run the same code and program on our development server, it is working fine, but not on the production server. And previously even on the production server it was working fine, and we didn't update anything in our application, nor re deployed. Basically we didn't even touch the ASP.NET application.

Any help would be greatly appreciated.

Thanks.

Re: Duplicate key value supplied in GenericObjectCollection

PostPosted: Thu Aug 24, 2017 8:59 pm
by Mike.Sheen
Hi Nexio,

The problem is caused by the plugin named "Performance Metrics".

I'll have a look into why, but that plugin is not a plugin shipped with the product - we did author it and provide it here on the forums - but it's simply a plugin which records the time taken for load and save operations for Maintenance type forms in Jiwa, to diagnose performance issues - it's safe to disable that plugin until we can reproduce the issue and correct it.

So - my advice is to disable that plugin for now.

Mike

Re: Duplicate key value supplied in GenericObjectCollection

PostPosted: Thu Aug 24, 2017 9:14 pm
by nexio
Hi Mike,

Thanks for the quick reply. I will ask our client to disable the plugin and try again.

Thanks.

Re: Duplicate key value supplied in GenericObjectCollection

PostPosted: Thu Aug 24, 2017 9:27 pm
by Mike.Sheen
nexio wrote:Hi Mike,

Thanks for the quick reply. I will ask our client to disable the plugin and try again.

Thanks.


You're welcome.

I noticed you marked this thread as answered (thanks!), but I'm going to remove that so I know to come back to it to look into the issue futher.

Re: Duplicate key value supplied in GenericObjectCollection

PostPosted: Mon Aug 28, 2017 3:36 pm
by nexio
Mike.Sheen wrote:I'm going to remove that so I know to come back to it to look into the issue futher.


Thanks :)