Hi @mudassir.fayyaz
Thanks for replying. I’ve tried using the latest Aspose.Tasks with the same resulting errors.
I’ve supplied two xml files.
CustomerIssueStandalone is a sanitised version of the customer’s file, this is the one that causes the StackOverflowException exception to be thrown and is the “P6 Pro Standalone [SQLite]” driver" one mentioned in my initial post.
The second file is a sanitised version of the customer’s file after it has been imported into Primavera EPPM and then exported. This one gets the error ‘Input string was not in a correct format.’ with the following stack trace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at #=zFslrKbzS5FCnlocrBcECK1jEEEAH.#=zXI9We0LIcJTS(String #=zJNMdvS8=)
at #=zEfkHCwSJGjDyhlRdvTxF2p91Ck9fpr0ZLhUm8Vz2Elh$.#=zSu4E6_NeUp0RRduU2Q==(XmlElement #=zpTkR_PU=, String #=zgocHXsqcq4AO)
at #=zEfkHCwSJGjDyhlRdvTxF2p91Ck9fpr0ZLhUm8Vz2Elh$.#=zLvoekyU=(XmlElement #=zTjEA8aA=, Object #=zR$73qeg=, String& #=zYe8Uq1M=)
at #=zPwNB3l01iXD4QBps8NGJlY0QfAfdPOsPwbbYlFk=.#=zeZ1XjuVPxKa$()
at #=zPwNB3l01iXD4QBps8NGJlY0QfAfdPOsPwbbYlFk=.#=zXuUziwI=()
at #=zPwNB3l01iXD4QBps8NGJlY0QfAfdPOsPwbbYlFk=.#=zLvoekyU=()
at #=zPwNB3l01iXD4QBps8NGJlY0QfAfdPOsPwbbYlFk=.#=z7HW8rAfakkBvVwOzC_iF8PA=(Project #=zyEisWrk=, Stream #=zL7LUorQ=, Encoding #=z4KLNdAg=, ParseErrorCallback #=zYwLNZVUOOBod)
at #=zPwNB3l01iXD4QBps8NGJlY0QfAfdPOsPwbbYlFk=.#=zLvoekyU=(Project #=zyEisWrk=, Stream #=zL7LUorQ=, PrimaveraXmlReadingOptions #=zClGQaE0=)
at #=zx8ayr6v9xY6rJQBWL40vt4c8g7rgecWhEw==.#=zLvoekyU=(Stream #=zL7LUorQ=, Project #=zyEisWrk=)
at Aspose.Tasks.Project.#=zz_1cejeE8Cz5(Stream #=zL7LUorQ=, ParseErrorCallback #=zYwLNZVUOOBod, Encoding #=z4KLNdAg=, PrimaveraXmlReadingOptions #=zClGQaE0=)
at Aspose.Tasks.Project..ctor(String projectTemplate, ParseErrorCallback parseErrorHandler)
at Aspose.Tasks.Project..ctor(String projectTemplate)
at ActiveRisk.Arm.Services.UnitTests.ImportExport.PrimaveraXmlFileParserFixture.AsposeReadXml() in C:\Projects\ARM\ARM\User Interface\ActiveRisk.Arm.Services.UnitTests\ImportExport\PrimaveraXmlFileParserFixture.cs:line 32
My code is pretty simple…
Project project5 = new Project("C:\\Primavera issue\\SANITISED\\CustomerIssueEPPM.xml");
Project project6 = new Project("C:\\Primavera issue\\SANITISED\\CustomerIssueStandalone.xml");
Thanks for your help,
John
CustomerIssue.zip (357.6 KB)