Why do I get the error code InDesign 29446?

Hello

I use InDesign CS5 Server and on two file I get the #29446 error code when I try to use them.

This is the script I get the error #29446:

var strXMLFile = "D:\\mssb\\incoming\\34695.xml";

var strINDDFile = '\\\167.246.44.76\\MSSB\\templates\\RET010\\6256950-MSSB-RET010-BW-6 x9.indt ';

var strJPGFile = "D:\\mssb\\outgoing\\34695.jpg";

var strPDFFile = "D:\\mssb\\outgoing\\34695.pdf";

var myFile = new queue (strINDDFile);

myDocument var = app.open (myFile);

var myXMLFile = new queue (strXMLFile);

var myXmlImport = myDocument.xmlImportPreferences.

myXmlImport.importStyle = 1481469289;

myXmlImport.ignoreUnmatchedIncoming = true;

myXmlImport.importTextIntoTables = true;

myXmlImport.removeUnmatchedExisting = true;

myDocument.importXML (myXMLFile);

myDocument.exportFile (ExportFormat.jpg, new leader (strJPGFile));

myDocument.exportFile (ExportFormat.pdfType, new leader (strPDFFile));

myDocument.close ();

I have about 200 other InDesign documents that use this script and except two they all work. I can confirm that this file exists, it is not used by another application (the only application that accesses it and use it on this computer is InDesign Server) and the permissions are the same as all the other InDesign files that are on the box.

What else could cause this error?

FW-

The error number is the constant internal C++ named 'kFileDoesNotExistError '.

You should be able to the single step even on InDesign Server using ExtendScript Toolkit.

Even without a bit of output to the log file should show you the statement of the exact problem.

When you wrap with try / catch, you can (or not) find more information in the exception object.

Browse all properties by using something like the code below.

Of course, of $.writeln only makes sense with a debugger ESTK, otherwise you'll be wasting just of cycles CPU.

try {}

...

} catch (ex) {}

(n ex) {$.writeln(ex[n]) ;}}

}

Note that the problem may not be in the indd file - for example have you checked all images href attributes in the XML?

To dig deeper:

On a Mac I'd use dtrace or Instruments to Watch calls file system for error codes.

Windows should have other similar tools, for example, this one looks promising (I never used):

http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645

Dirk

Tags: InDesign

Similar Questions

Maybe you are looking for

  • All of a sudden I can't open PDF files on emails and documents

    Using Firefox and BT Yahoo email on a PC with Vista. This week I was not able to open all documents including the files PDF come to me on email. This has never been a problem before. I tried to empty history as in a previous question, but that did no

  • Game help

    I'm a total beginner n need all the help I can get. I have a tecra8100 with windows 2000 aol 7.0 n. I would like to know how to go about updatin for xp n aol 9.0. the problem is that I don't have a fight of ideas that sort of thing. I bought an Egame

  • Satellite Pro L20 serches for WLan always same WLan switch is turned OFF

    Even with the wireless button on the front of my L20 in the off position whenever I turn on the laptop, he's trying to find a wireless network. (XP Professional) Is anyway then it only the trys to a wireless network when the button is clicked? Thank

  • waveform editing with VI wave generation

    Hi all One can you please explain or give link to the good example of waveform VI integrated. (1) my question is how the input waveform will get changed as output, when the three terminals (input waveform, dt, y) are bound to certain data. (2) what w

  • Network drivers for Windows Home Server on HP Compaq elite 2011 8200

    I get error "network device driver is not found" so I try to install WHS on HP Compaq 8200. I tried to download the 7drivers WIn from the HP site but still no luck... pls help