Error codes of cScript. Some of the cScript functions returning the error codes of the used InDesign® functions directly. In case of some errors, this is kFailure (== -1) in most cases. Anyway, a list of the used error codes of InDesign® API function you will find here.
Using serror you can get a short text description of most of the cScript error codes.
The following script will write a complete list of the error descriptions to the log file.
int main ()
{
int i;
for (i=0; i < 4200; i++) wlog ("", "%d : %s\n", i, serror (i));
return 0;
}
Here is a complete list of the error codes used:
| Name | Error number |
| kBreakExecution | 4000 |
| kRollbackExecution | 4001 |
| eofErr End of file | -39 |
| fnfErr File not found | -43 |
| unzipErr Error during unzipping | -42 |
| zipErr Error during zipping | -41 |
| wrPermErr Write permission on file/folder | -61 |
| permErr Permission denied | -54 |
| dupFNErr Duplicate file name | -48 |
| paramErr Parameter error | -50 |
| memFullErr Memory full | -108 |
| Function not implemented | -1199 |
| fidNotFound File identifier not found | -1300 |
| fidExists File identifier already exists | -1301 |
| notAFileErr Not a file | -1302 |
|
tableRefErr |
11 |
|
colorErr textTintErr documentCloseErr |
100
110
120 |
|
textModelErr textFrameListErr |
200
210 |
|
noTextModelErr
paraStyleTableNotFoundErr |
300
310 |
|
noDatabaseErr |
400 |
|
noXMLElementErr unknownBuiltInErr resizeFrameCmdErr |
500
510
520 |
|
600 |
|
| outOfMemErr |
700 |
|
beginTagNotFoundErr |
800 |
|
createImportCmdErr |
900
910 |
|
startDayMissing |
1000 |
|
libraryCmdNotFoundErr dataExchangeInternalizeErr |
1100
1110
1120 |
|
cannotFindLayerErr tooManyLayersErr masterSpreadNotFoundErr selectFrameErr createPrinterCmdDataErr bookmarkEmptyErr tocStyleTableNotFoundErr pageTemplateOpositeNotFoundErr cannotRevertDocErr
cannotCreateProcessErr
urllinkCannotLinkImageErr |
1200
1210
1220
1230
1240
1250
1260
1270
1280
1290
1300 |
|
2000 |
fileAccessErr
notSupportedErr |
3000
3010 |
Error codes of Comet Javascript API.
| Name | Error Number |
|
CScript Error |
538624 |
|
No License |
538625 |
|
Internal Error, most probably: NOT YET IMPLEMENTED |
538626 |
| Initialization Error | 538627 |
| Document Not Found Error | 538628 |
| Illegal Document Status Error | 538629 |
| Document Outdated Error | 538630 |
| Document Vanished Error |
538631 Often the problem is that the requeseted document has not been opened with app.comet.documentOpen. |
| Malformed XML Error | 538632 |
| Invalid XML Error | 538633 |
| Page Not Found Error | 538634 |
| Invalid Bounds Error | 538635 |
| Spread Not Found Error | 538636 |
| Group Not Found Error | 538637 |
| Element Not Found Error | 538638 |
| Placeholder Not Found Error | 538639 |
| Unknown PDF Profile Error | 538640 |
| Invalid Template ID | 538641 |
| Invalid Setup Params | 538642 |
| Connection required | 538643 |
| Fatal unrecoverable Error | 538644 |
| Bad Position | 538645 |
| Invalid Grid ID | 538646 |
| Build Error | 538647 |
| Invalid Options | 538648 |
| Gap | |
| Unknown Service | 538654 |
| Authorization Failure | 538655 |
| Unknown Pool | 538656 |
| Connection Failed | 538657 |
| Server was down | 538658 |
| Unknown Export Format | 538659 |
| Unknown Masterpage | 538660 |
| Invalid IDML Part | 538661 |
| Document requires Conversion | 538662 |
| Document requires Import | 538663 |
| Locking Document Error | 538664 |
| Unlocking Document Error | 538665 |
| Incompatible Document Format | 538666 |
| Incompatible File Type> | 538667 |
| Insufficient FS Privileges | 538668 |
| File does not exist | 538669 |
| Gap | |
| Illegal Argument | 538674 |
SOAP connections of priint:comet plug-ins and comet_pdf are implemented using gSOAP written by Robert A. van Engelen. All available functions and their return codes are described in the In the gSOAP User Guides.: