Hello,
I created an application to convert Primavera (.xer) to MSProject, but sometimes I get a badly formatted file and as consequence, the Project (filename, exception handler) throws some exceptions.
My problems with the Project constructor are:
- No option to force the Project constructor to ignore the errors.
- The exception handler provided to the constructor is not fired.
(Allowing to fix or ignore the error, or abort the process) - The exception message is not enough to help me solve the problem with the file.
(source line, task id, the field with an error, etc.)
Example of one of the exception messages
The start time should be not greater than the finish one.
at Aspose.Tasks.WorkingTime.#=zm44tUkVUvAVN()
at Aspose.Tasks.WorkingTime.set_FromTime(DateTime value)
at Aspose.Tasks.WorkingTime…ctor(DateTime fromTime, DateTime toTime)
at #=zvLIOtVtJUMebnByMuuljngVeyY35kPGlGLWI7gQ=.#=zqZP8EFU=(WeekDay #=zAccAtRE=, String #=zr2tqFGA=)
at #=zvLIOtVtJUMebnByMuuljngVeyY35kPGlGLWI7gQ=.#=zgT44cHyJw2pK(Calendar #=z_IuzsqArJfgM30nOCg==, String #=zr2tqFGA=)
at #=zvLIOtVtJUMebnByMuuljngVeyY35kPGlGLWI7gQ=.#=zWnDTap4=(#=zIldq6gZ83gCELeAzTO2a5$13DiSQaXzf$g== #=z_7eTKt4=)
at #=zbQjZbutyTXydZSCk_eUXX9$MAzAI3ax2h2ObapZ0rhAy.#=zxOnjQv0=(StringReader #=zlnbk3_4=)
at #=zbQjZbutyTXydZSCk_eUXX9$MAzAI3ax2h2ObapZ0rhAy.#=z7$r7Hj0=()
at #=zbQjZbutyTXydZSCk_eUXX9$MAzAI3ax2h2ObapZ0rhAy.#=zWnDTap4=()
at #=zbQjZbutyTXydZSCk_eUXX9$MAzAI3ax2h2ObapZ0rhAy.#=zWnDTap4=(Project #=z9Eg3fJg=, Stream #=zSYDskhQ=, Encoding #=zgFtdXMY=, ParseErrorCallback #=z8KSYnH16Bm3r)
at #=zkT1d3U$5znmE6d4IzXTg06U=.#=zWnDTap4=(Stream #=zSYDskhQ=, Project #=z9Eg3fJg=)
at Aspose.Tasks.Project.#=zg5eN4M7dHchh(Stream #=zSYDskhQ=, ParseErrorCallback #=z8KSYnH16Bm3r, Encoding #=zgFtdXMY=, PrimaveraXmlReadingOptions #=zXODHe2I=)
at Aspose.Tasks.Project…ctor(String projectTemplate, ParseErrorCallback parseErrorHandler)
at ConvertXlsxToMpp.Program.Main(String[] args) in E:\User\Mosaico\Ensemble\ConvertXerToMpp\ConvertXerToMpp\Program.cs:line 85
What I can do, through the Aspose Task library, to enable me to fix the data errors?