We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Class com.aspose.email.system.exceptions.ArgumentException: Item has already been added

Hi,
Trying to load calendar item into pst using this code :

Appointment app = Appointment.load(..);

MailMessage msg = new MailMessage();

msg.addAlternateView(app.requestApointment());


and getting next exception :

class com.aspose.email.system.exceptions.ArgumentException: Item has already been added. Key in dictionary: 'Content-Transfer-Encoding' Key being added: 'Content-Transfer-Encoding'
Dec 22 12:04:44 10.0.203.200 com.aspose.email.system.collections.Hashtable.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.system.collections.Hashtable.addItem(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.HeaderCollection.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.HeaderCollection.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.HeaderCollection.set_Item(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.vd.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.AttachmentBase.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.AlternateView.b(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.AlternateView.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.Appointment.a(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.Appointment.requestApointment(Unknown Source)
Dec 22 12:04:44 10.0.203.200 com.aspose.email.Appointment.requestApointment(Unknown Source)


Hi,

Thank you for writing to Aspose support team.

I would request you to please share your sample input files with us that are raising this exception at your end. This will help us identify the issue and assist you further in this regard.