Free Support Forum - aspose.com

Reading Simple Primavera xer File Throws System.IndexOutOfRangeException

Hi

Please have a look at the attached Primavera File.
Reading this Primavera xer File Throws a System.IndexOutOfRangeException
I think it has something to do with the Calendar string

%T CALENDAR
%F clndr_id default_flag clndr_name proj_id base_clndr_id last_chng_date clndr_type day_hr_cnt week_hr_cnt month_hr_cnt year_hr_cnt rsrc_private clndr_data
%R 597 Y Standard 5 Day Workweek 2000-04-26 14:11 CA_Base 8 40 172 2000 N (0||CalendarData()( (0||DaysOfWeek()( (0||1()()) (0||2()( (0||0(s|08:00|f|12:00)()) (0||1(s|13:00|f|17:00)()))) (0||3()( (0||0(s|08:00|f|12:00)()) (0||1(s|13:00|f|17:00)()))) (0||4()( (0||0(s|08:00|f|12:00)()) (0||1(s|13:00|f|17:00)()))) (0||5()( (0||0(s|08:00|f|12:00)()) (0||1(s|13:00|f|17:00)()))) (0||6()( (0||0(s|08:00|f|12:00)()) (0||1(s|13:00|f|17:00)()))) (0||7()()))) (0||Exceptions()())))


The File was created with Primavera 16.1.0 Build 18077.
Aspose.Tasks.dll is Version 9.5.0.0

Another question regarding Primavera.
How can I find/list the Projects reading a xer File with multiple Projects so that a user can select one Project for Import.

Stephan

Hi Stephen,

Thank you for writing to Aspose support team.

This issue is re-produced and logged under Id: TASKSNET-1612 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

Currently Aspose.Tasks supports reading project UIDs of Pimavera XML files only. I am afraid, no such feature is available for XER file. Please feel free to write us back if you have any other query in this regard.

Are there any future plans for supporting .xer Files? This is also something I am looking for.

Hi Stephen,


We have checked our Product’s road map and there are no such plans for supporting .XER files for reading. We’ll update you here after getting information about this.

@ldesetto,

We have just released Aspose.Tasks for .NET 17.7 version where this issue has been fixed. Please download this latest version for testing at your end and let us know if we can be of any additional help to you.