Free Support Forum - aspose.com

Issue in appointment.load(.ics) while importing to pst

i am trying to Import ics file to PST using below code its giving me stack overflow may be its because this ics file have to two attachments .When i am importing normal ics file without any attachment then Appointment.load(.ics) working fine.

				Appointment appointment = Appointment.load(file.getAbsolutePath());					
				MailMessage mailMsg = new MailMessage();
				mailMsg.addAlternateView(appointment.requestApointment());

				MapiMessage mess = MapiMessage.fromMailMessage(mailMsg);

			
				
					if(mf.checkcalendar) 
					{

						mf.pst.createPredefinedFolder("Calendar", StandardIpmFolder.Appointments);
						mf.checkcalendar=false;
					}
					mf.info1=mf.pst.getPredefinedFolder(StandardIpmFolder.Appointments);

				
				mf.info1.addMapiMessageItem(mess);

@pradeepnegi,

I have observe the issue shared by you and request you to please provide the source file reproducing the issue on your end.

subject of meeting Craeted just1.zip (1.1 MB)

this is the ics file

@pradeepnegi,

I have tried working with sample code shared by you and have unable to use that as there are missing code declaration as shared in following image. Can you please share the working sample code.

image.png (14.4 KB)