‘An entry with the same key already exists’ when importing an XER file

Hello,

When I attempt to import this XER file, I encounter the following exception: “An entry with the same key already exists.” This occurs while creating the “new Project()”.

I have reviewed all related topics but haven’t found any solution.
Could you please help me identify what is wrong with this file?

Thank you.
XER_withException.zip (3,2 Mo)

1 Like

@Nour_From_XLSTAT,
we were able to reproduce the issue.
The following new ticket was created in our internal issue tracking system. The fix will be delivered according to the terms mentioned in Free Support Policies.

Issue ID: TASKSNET-11201

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thank you!

If we subscribe to paid support services, will the ticket have a higher priority?

Yes, issues escalated by paid support customers have higher priority.

See Paid Support knowledge base:

Hello,

the same bug also occurs on the attached xer file.
Risk Assessment.zip (6,3 Ko)

Do you have any idea why we’re getting this bug?

Thank you.

@Nour_From_XLSTAT

Yes, the attached file contains several RSRCRATE (Resource rate) entries for the same resource and the same date.

%F	rsrc_rate_id	rsrc_id	max_qty_per_hr	cost_per_qty	start_date	shift_period_id	cost_per_qty2	cost_per_qty3	cost_per_qty4	cost_per_qty5
...
%R	7175	6900	1	55.0000	2024-01-01 00:00	11	0.0000	0.0000	0.0000	0.0000
...
%R	7184	6900	1	55.0000	2024-01-01 00:00	164	0.0000	0.0000	0.0000	0.0000

These are two rates for “shift 1” and “shift 2”:

The reading of such entries should be fixed on our side.

Thank you!

I’ll give a try

Oh, are you going to add this bug to the current ticket?

@Nour_From_XLSTAT ,
both attached files have the same issue (duplicated resource rate entries).

The issues you have found earlier (filed as TASKSNET-11201) have been fixed in this update.

Download Aspose.Tasks for .NET