Duplicate key value supplied in GenericObjectCollection

Discussions relating to plugin development, and the Jiwa API.

Duplicate key value supplied in GenericObjectCollection

Postby nexio » Thu Aug 24, 2017 8:48 pm

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.
nexio
Occasional Contributor
Occasional Contributor
 
Posts: 24
Joined: Thu Jun 08, 2017 6:32 pm

Re: Duplicate key value supplied in GenericObjectCollection

Postby Mike.Sheen » Thu Aug 24, 2017 8:59 pm

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Duplicate key value supplied in GenericObjectCollection

Postby nexio » Thu Aug 24, 2017 9:14 pm

Hi Mike,

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

Thanks.
nexio
Occasional Contributor
Occasional Contributor
 
Posts: 24
Joined: Thu Jun 08, 2017 6:32 pm

Re: Duplicate key value supplied in GenericObjectCollection

Postby Mike.Sheen » Thu Aug 24, 2017 9:27 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Duplicate key value supplied in GenericObjectCollection

Postby nexio » Mon Aug 28, 2017 3:36 pm

Mike.Sheen wrote:I'm going to remove that so I know to come back to it to look into the issue futher.


Thanks :)
nexio
Occasional Contributor
Occasional Contributor
 
Posts: 24
Joined: Thu Jun 08, 2017 6:32 pm


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 14 guests