Skip to main content
Inspiring
September 22, 2017
Question

Occassionally reoccuring error from Illustrator 1346458189 ('PARM')

  • September 22, 2017
  • 1 reply
  • 1172 views

an Illustrator error occurred: 1346458189 ('PARM')

I have been developing a c# application that uses the Illustrator Interop library, occasionally my application will starting throwing the above error.  It doesn't seem to be caused by the code because I can restart Illustrator and then the code starts working again. Has anyone found a cause for this error?

This topic has been closed for replies.

1 reply

Silly-V
Legend
September 23, 2017

Sometimes it's related to batch processing and using document.close() command. Other times it can be something completely different. The immediate cause is usually an Illustrator scripting object referencing an art shape or constituent of a document which suddenly has corrupted properties. Using ESTK, you can see in Data Browser when debugging jsx scripts, that the properties are already set with "An internal error occurred". So beware if you are doing batch processing with the document repeatedly being closed.

Rich.DAuthor
Inspiring
September 25, 2017

No close() call causing the error, there is a lot of looping through collections.

et3d_
Known Participant
September 28, 2017

In my case close() is used to save files, moreover the documents are synced with my variable i for loops.
but because of this terrible bug, when saved=false, the closing of the file reoppen it, desyncing documents with i. That's why it cause a 50% failure : the document stays opened 2 times in a whole loop

The solution (either Ai bugs or not) is to use something like this: (still wip)

((I am not an admin to reinstall I have to live with it until maintenance))

function main(){

    var doc =app.activeDocument;

    doc.saveAs ( File ( doc.fullName.replace ( /\.ait?$/i, "")+".pdf" ) );

}