Hi, I use a 30 day temporary license, when I open the attached file with Aspose and try to re-save it, I’m getting an Error. Not for all files, some file saving correct. I attach one of the problematic files.
testDoc.zip (113.5 KB)
Code:
FileInputStream prjStream = new FileInputStream(file);
Project project = new Project(prjStream);
project.save(to, SaveFileFormat.Mpp);
Error:
class com.aspose.tasks.private_.ms.System.ArgumentOutOfRangeException: startIndex + length cannot exceed length of string.
Parameter name: length
com.aspose.tasks.private_.ms.System.bj.b(Unknown Source)
com.aspose.tasks.bdn.a(Unknown Source)
com.aspose.tasks.amu.b(Unknown Source)
com.aspose.tasks.amu.a(Unknown Source)
com.aspose.tasks.amu.a(Unknown Source)
com.aspose.tasks.aql.a(Unknown Source)
com.aspose.tasks.amu.b(Unknown Source)
com.aspose.tasks.amu.a(Unknown Source)
com.aspose.tasks.amt.a(Unknown Source)
com.aspose.tasks.ExtendedAttribute.j(Unknown Source)
com.aspose.tasks.ExtendedAttribute.i(Unknown Source)
com.aspose.tasks.ExtendedAttribute.getTextValue(Unknown Source)
com.aspose.tasks.yy.n(Unknown Source)
com.aspose.tasks.yy.h(Unknown Source)
com.aspose.tasks.zf.a(Unknown Source)
com.aspose.tasks.yy.a(Unknown Source)
com.aspose.tasks.bbi.a(Unknown Source)
com.aspose.tasks.axr.a(Unknown Source)
com.aspose.tasks.axr.b(Unknown Source)
com.aspose.tasks.axr.b(Unknown Source)
com.aspose.tasks.axr.a(Unknown Source)
com.aspose.tasks.axr.a(Unknown Source)
com.aspose.tasks.bdg.a(Unknown Source)
com.aspose.tasks.bdg.z(Unknown Source)
com.aspose.tasks.bdg.q(Unknown Source)<a class=“attachment”
com.aspose.tasks.bdg.a(Unknown Source)
com.aspose.tasks.cop.a(Unknown Source)
com.aspose.tasks.cop.a(Unknown Source)
com.aspose.tasks.Project.save(Unknown Source)
Can you explain what the problem is?
@s.afanasev.efso,
we examined the attached file and found that there is an error in our formula result calculation routine which results in the exception you observed.
We will fix the error in ver. 22.4 of Aspose.Tasks for .NET and in ver. 22.5 of Aspose.Tasks for Java.
P.S (2022.04.29): Edited incorrect versions (were 20.4 and 20.5).
The issues you have found earlier (filed as TASKSNET-10508) have been fixed in this update.
Hi, i use java lib, downloaded ver 22.4 and get same error. Did you fix it for java?
class com.aspose.tasks.private_.ms.System.ArgumentOutOfRangeException: startIndex + length cannot exceed length of string.
Parameter name: length
com.aspose.tasks.private_.ms.System.bj.b(Unknown Source)
com.aspose.tasks.bdq.a(Unknown Source)
com.aspose.tasks.amw.b(Unknown Source)
com.aspose.tasks.amw.a(Unknown Source)
com.aspose.tasks.amw.a(Unknown Source)
com.aspose.tasks.aqs.a(Unknown Source)
com.aspose.tasks.amw.b(Unknown Source)
com.aspose.tasks.amw.a(Unknown Source)
com.aspose.tasks.amv.a(Unknown Source)
com.aspose.tasks.ExtendedAttribute.j(Unknown Source)
com.aspose.tasks.ExtendedAttribute.i(Unknown Source)
com.aspose.tasks.ExtendedAttribute.getTextValue(Unknown Source)
com.aspose.tasks.yz.n(Unknown Source)
com.aspose.tasks.yz.h(Unknown Source)
com.aspose.tasks.zg.a(Unknown Source)
com.aspose.tasks.yz.a(Unknown Source)
com.aspose.tasks.bbp.a(Unknown Source)
com.aspose.tasks.axy.a(Unknown Source)
com.aspose.tasks.axy.b(Unknown Source)
com.aspose.tasks.axy.b(Unknown Source)
com.aspose.tasks.axy.a(Unknown Source)
com.aspose.tasks.axy.a(Unknown Source)
com.aspose.tasks.bdj.a(Unknown Source)
com.aspose.tasks.bdj.z(Unknown Source)
com.aspose.tasks.bdj.q(Unknown Source)
com.aspose.tasks.bdj.a(Unknown Source)
com.aspose.tasks.coz.a(Unknown Source)
com.aspose.tasks.coz.a(Unknown Source)
com.aspose.tasks.Project.save(Unknown Source)
@s.afanasev.efso,
the issue was fixed in 22.4 of Aspose.Tasks for .NET.
Fix for Java version will be available in version 22.5 of Aspose.Tasks for Java.