We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Guide with name 'w' not found

Hi


we’re getting sporadic exceptions thrown when trying to
convert text documents (some may contain Hebrew characters, but not all).<o:p></o:p>

The exceptions we’re getting include:

Timestamp: 02/02/2017 16:15:36

Message: Clinical Document Processing Failed

Category: DocumentConversion

EventId: 64030

Severity: Error

Title:Documents Conversion

Machine: **************************************************************

Application Domain: VPO

Process Id: 29640

Process Name: ************************************************************************************

Extended Properties: ClinicalDocumentId_Root - 2.16.840.1.113883.3.57.1.3.5.52.1.46

ClinicalDocumentId_Extension - ImagingStudyExt__CSI_heb_32_O2

SchemaCode - FS.Default

MediaTypeCode - text/plain

Reference - \\***********\dbMotion Documents\2017-01-18\dd2046bf-9020-4ec3-afc8-d881d5907fca2017-01-18-1704.txt

ExceptionMessage - Guide with name 'w' not found.

Parameter name: w

ExceptionStack - at _ ._ _(String _)

at _ ._​ _(_ _)

at _ ._(ArrayList _)

at _ ._(Double _, Double _)

at _ ._(_ _)

at _​ ._ _(_​ _)

at _ ._(DrawingML _)

at _ ._(DrawingML _, _ _)

at _ ._(_ _, Boolean _)

at _ ._(_ _, Boolean& _)

at _ ._(_ _)

at _ ._()

at _ ._ _()

at _ ._ _ ()

at _ ._ _ ()

at _ ._()

at _ ._(_ _, Int32 _)

at _ ._(_ _)

at _ ._(_ _)

at _ ._(_ _, Int32 _)

at _ ._(_ _, Int32 _, Boolean _)

at _ ._()

at _ ._(_ _, Int32 _, Boolean _, Boolean _)

at _ ._(_ _)

at _ ._(_ _, Int32 _, Boolean _)

at _ ._()

at _ ._(_ _, Int32 _, Boolean _, Boolean _)

at _ ._(_ _)

at _ ._(Boolean _)

at _ ._(_ _)

at _ ._(Boolean _)

at _ ._(Boolean _)

at _ ._ ()

at _ ._(Document _, _ _)

at dbMotion.Transformation.DocumentConversion.AsposeDocBuilder.Save(OutputFormat outputFormat)

at dbMotion.Transformation.DocumentConversion.DocBuilderWorker.Convert()

and:

Timestamp: 02/02/2017 15:33:19

Message: Clinical Document Processing Failed

Category: DocumentConversion

EventId: 64030

Severity: Error

Title:Documents Conversion

Machine: ******************************

Application Domain: VPO

Process Id: 29640

Process Name: ******************************

Extended Properties: ClinicalDocumentId_Root - 2.16.840.1.113883.3.57.1.3.5.52.1.46

ClinicalDocumentId_Extension - ImagingStudyExt__CSI_heb_32_O3

SchemaCode - FS.Default

MediaTypeCode - text/plain

Reference - \\*******************\dbMotion Shared\dbMotion Documents\2017-01-18\212ec953-ad14-407d-849a-f4b87a0e6ac02017-01-18-1704.txt

ExceptionMessage - Object reference not set to an instance of an object.

ExceptionStack - at _ ._(Object _, Double _, Boolean _)

at _ ._(ArrayList _)

at _ ._(Double _, Double _)

at _ ._(_ _)

at _ ._ _(_ _)

at _ ._(DrawingML _)

at _ ._(DrawingML _, _ _)

at _ ._(_ _, Boolean _)

at _ ._(_ _, Boolean& _)

at _ ._(_ _)

at _ ._()

at _ ._ _()

at _ ._ _ ()

at _ ._ _ ()

at _ ._()

at _ ._(_ _, Int32 _)

at _ ._(_ _)

at _ ._(_ _)

at _ ._(_ _, Int32 _)

at _ ._(_ _, Int32 _, Boolean _)

at _ ._()

at _ ._(_ _, Int32 _, Boolean _, Boolean _)

at _ ._(_ _)

at _ ._(_ _, Int32 _, Boolean _)

at _ ._()

at _ ._(_ _, Int32 _, Boolean _, Boolean _)

at _ ._(_ _)

at _ ._(Boolean _)

at _ ._(_ _)

at _ ._(Boolean _)

at _ ._(Boolean _)

at _ ._ ()

at _ ._(Document _, _ _)

at _ ._ _()

at _ ._(_ _)

at _ ._(_ _, _ _)

at _ ._(Node _, _ _)

at Aspose.Words.Document.UpdateFields()

at dbMotion.Transformation.DocumentConversion.AsposeDocBuilder.Save(OutputFormat outputFormat)

at dbMotion.Transformation.DocumentConversion.DocBuilderWorker.Convert()

Please note, that the Guide with name 'w' not found varies (‘w’ is occasionally replaced by ‘h’ or ‘ss’).


Thx for your help
Yaniv
Hi Yaniv,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Attached the input document - its contains Hebrew characters



Like I said, The issue is inconsistent,
sometime its reproduce and sometime its not.


Thx
Yaniv
Hi Yaniv,

Thanks for sharing the document. We have converted this document to other file formats e.g. pdf, docx, etc. and have not found the shared issue. We suggest you please upgrade to the latest version of Aspose.Words for .NET 17.2.0. Hope this helps you.

If you still face problem, please share your working environment e.g. operating system, .NET version. Please also share the simplified application to reproduce this issue at our end. Thanks for your cooperation.

Tahir,


Thanks for you help

I found out that the error occure in the metho Aspose.Words.Document.UpdateFields()
Can you tell us more about this method?
Which scenario can cause this error?

System.ArgumentOutOfRangeException: Guide with name ‘ss’ not found.
Parameter name: ss
at . (String )
at .​ ( )
at .(ArrayList )
at .(Double , Double )
at .( )
at ​ .( )
at ​ . (​ )
at .(DrawingML )
at .(DrawingML , )
at .( , Boolean )
at .( , Boolean& )
at .( )
at .()
at . ()
at . ()
at . ()
at .()
at .( , Int32 )
at .( )
at .( )
at .( , Int32 )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at .( )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at .( )
at .(Boolean )
at .( )
at .(Boolean )
at .(Boolean )
at . ()
at .(Document , )
at . ()
at .( )
at .( , )
at .(Node , )
at Aspose.Words.Document.UpdateFields()

There is no point sending you a sample application that reproduce the issue, cause the issue i not reproduce all the times.
some time its happen and sometime its not.

Thx
Yaniv

Hi Yaniv,

Thanks for your inquiry.

The input document's type is text. So, there is no field in it. Please make sure that you are using the same document and latest version of Aspose.Words for .NET 17.2.0.
Tahir

Thx for you help.

The input document is actualy template.doc document (attached) we are load the text document to this file.

Here is part of our code:

doc = (Document)this.CurrentTemplate.Clone(true); // CurrentTemplate is Document based on template.doc
var db = new DocumentBuilder(doc);
var sr = new StreamReader(documentStream, Encoding.Default, true); // documentStream is stream Stream based on the text document (attached)
db.Write(sr.ReadToEnd());

// The follow line arbitrary throw exception
doc.UpdatePageLayout();
doc.UpdateFields();

Hi Yaniv,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for .NET 17.2.0 and have not found the shared issue. Please make sure that you are using Aspose.Words for .NET 17.2.0.

Perhaps, you are facing this issue with specific documents and scenario. Unfortunately, it is difficult to say what the problem is without reproducing it on our end. Please share your working environment e.g. operating system, .NET version here for further testing.

OS: Windows Server 2012 R2

Processor: Inter Xeon (2 processors)
RAM: 8GB
System: 64-bit
.Net Framwork - 4.6.1
Hi Yaniv,

Thanks for your inquiry. We will prepare the required platform (OS: Windows Server 2012 R2 & .Net Framwork - 4.6.1) to simulate the environment as of yours. As soon as everything is setup, we will test your scenario and post the results here for your kind reference. We apologize for any inconvenience.

Best regards,
Hi Yaniv,

Thanks for your patience.

We have tested the scenario at Windows Server 2012 R2 using latest version of Aspose.Words for .NET 17.2.0 and have not found the shared issue. We have used the following code example to test this issue.

Document CurrentTemplate = new Document(MyDir + "template.docx");

Document doc = (Document)CurrentTemplate.Clone(true);

var db = new DocumentBuilder(doc);

db.Write(File.ReadAllText(MyDir + "e31e00cc-6a67-46df-9873-c94ceeca56af2017-01-18-1704.txt"));

doc.UpdatePageLayout();

doc.UpdateFields();

doc.Save(MyDir + "out.docx");