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 < 1300; i++) wlog ("", "%d : %s\n", i, serror (i));
    return 0;
}

Name Error number
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
fidNotFound File identifier not found -1300
fidExists File identifier already exists -1301
notAFileErr Not a file -1302

tableRefErr
tableIndexErr
tableTextModelErr
noTablesErr
tableNotFoundErr
tableCreateCommandErr
tableTextContainerErr

11, ...

colorErr
noImageErr
textAttributeErr
textVarianteErr
textCommandErr
textNoModelErr
textSizeErr
textFontMgrErr
textFontNotFoundErr
textColorErr

textTintErr
textAlignErr
textDeleteErr
textReplaceErr
noFrontDocumentErr
noFrameGeometryErr
selectionOutOfRangeErr
documentCreateErr
documentOpenErr
documentSaveErr

documentCloseErr
idleTimerStartErr
cannotCreateTmpFileErr // 122
cannotOpenTmpFileErr // 123

100, ...

textModelErr
docNotFoundErr
docFontMgrNotFoundErr
fontCommandCreateErr
fontFaceNotFoundErr
fontNotFoundErr
cannotSetFontErr
cannotSetFontFaceErr
skewOutOf85Err
colorNotFoundErr

textFrameListErr
textLinkErr
actionWithNoDestinationErr
profileNotFoundErr
cannotSetProfileErr
fileVersionToNewErr // 215
fileVersionToOldErr // 216

200, ..

noTextModelErr
noDestTextModelErr
rangErr
lengthErr
uidDataNotFoundErr
rangeDataNotFoundErr
processCommandErr
emptySettingNameErr
settingNotFoundErr
noWorkspaceErr

paraStyleTableNotFoundErr
panelNotFoundErr
noFrameListErr
noSelectionErr

300, ...

noDatabaseErr
xmlQueryExecErr, sqlExecErr, soapExecErr
sqlNoProcedureErr
scriptExecErr
noScriptParserErr
createQueryErr
noDataFoundErr

400, ...

noXMLElementErr
noDatumErr
noSenderErr
noStartTimeErr
unknownSenderErr
progLinkListLoadErr
conditionListLoadErr
outputCmdListLoadErr
findAndReplaceListLoadErr
conditionOutputCmdErr

unknownBuiltInErr
listingIsOversetErr
insertTaggedTextErr
taggedTextErr
createCmdSequErr
createCmdErr
createCmdDataErr
createFitFrameCmdErr
fitFrameCmdErr
createResizeCmdErr

resizeFrameCmdErr
createMoveCmdErr
moveFrameCmdErr
rotateFrameCmdErr

500, ...

xmlNoTextFrameErr
xmlInvalidTextFrameErr
invalidUIDErr

600, ...
outOfMemErr 700, ...

beginTagNotFoundErr
endTagNotFoundErr
tagAttributesErr
deleteDisplayedTagsErr
replaceTagTextErr
applyTagErr
displayTagsErr
tagGenerellSyntaxErr // Prüfe ob abc<tagdef> im Text gefunden wirdtagOpenErr // < nicht im Tag gefunden
tagCloseErr // > nicht im Tag gefunden

800, ...

createImportCmdErr
createPlaceFileDataErr
createImportCmdDataErr
noServiceRegistryErr
noServiceProviderErr
noImportManagerOptionsErr
noStreamErr
cannotOpenStream
placeHolderStmtNotFoundErr
placeHolderTypeClashErr

cannoSetPlaceholderErr
cannoRemovePlaceholderErr

900, ...

startDayMissing

1000, ...

libraryCmdNotFoundErr = 1100
libraryNilErr
libraryAssetCollectErr
libraryAssetMetaDataErr
libraryAssetNotFoundErr
libraryPlaceItemErr
layoutControlDataErr
hierarchyNotFoundErr
getScrapControllerErr
dataExchangeHandlerErr

dataExchangeInternalizeErr // 1110
scrapDataEmptyErr
geometryNotFoundErr
geometryNotValidErr
copyCmdErr
parameterMissingErr
itemEmptyErr
textScriptErr
textSQLErr
frameScriptErr

frameSQLErr // 1120
parentFrameNotFoundErr

1100, ...

cannotFindLayerErr
frontLayoutNotFoundErr
selectLayerErr
setVisibleLayerErr
mergeLayerErr
deleteLayerErr
moveLayerErr
removeLayerErr
addLayerErr
renameLayerErr

tooManyLayersErr // 1210
duplicateLayerNameErr
layerListNotFoundErr
createPageItemDataErr
dataBaseEmptyErr
cannotCreateTextFrameErr
cannotCreateColumnsErr
invalidObjectErr
pageListNotFoundErr
pageNotFoundErr

masterSpreadNotFoundErr // 1220
noSpreadListErr
metaDataCreateErr
applyMultAttributesCmdErr
xpAttributeUtilsErr
pathGeometryErr
cannotChangePathGeomtryErr
scrapItemErr
deleteFrameErr
setSelectionToolErr

selectFrameErr // 1230
linkListTypeErr
linkListEmptyErr
accessDeniedErr
xmlPathMissingErr
xmlPathNotFoundErr
inlineDataNotFoundErr
textFrameNotFoundErr
xmlQueryErr
createPrinterCmdErr

createPrinterCmdDataErr // 1240
printerProfilesListNoFoundErr
printerProfileNotDefinedErr
graphXMLFilenotValidErr
frameNotFoundErr
emptyGraphErr
cannotAskPageItemTypeErr
pageItemNotDefinedErr
cannotSetFirstPageTypeErr
bookmarkNotFoundErr

bookmarkEmptyErr // 1250
kCannotGroupErr
kCannotUngroupErr
sizeErr // 1253
overlapErr
pageTooSmallErr
circleErr
selfLinkErr
docCrossLinkErr
tableInOversetErr // 1259

tocStyleTableNotFoundErr // 1260
tocStyleNotFoundErr // 1261
cannotCreateTOCErr // 1262
cannotFormatTOCErr // 1263
pageAdaptErr // 1264
concurrentAccessErr // 1265
wrongColumnsForCompressErr // 1266
noPageAdapterLicenseErr // 1267
noCometLicenseErr // 1268
pageTemplateNotFoundErr // 1269

pageTemplateOpositeNotFoundErr // 1270
pageTemplateEmptyErr // 1271
pasteBoardDocErr // 1272
notForServerErr // 1273
cannotMoveSubFrameToLayerErr // 1274
cannotSetShortcuts // 1275
noHyperlinkErr // 1276
cannotRemoveOversetErr // 1277
maxWidthTooSmallErr // 1278
emergencyExitErr // 1279

cannotRevertDocErr // 1280
clippingPathNotFoundErr, // 1281
clippingIndexNotFoundErr, // 1282
clippingPathMissingErr, // 1283
cannotHaveClippingPathErr, // 1284
cannotSetClippingPathErr, // 1285
wrongAlphaChannelIndexErr, // 1286
unknownTextAttributeErr, // 1287
allocatedStringTooShortErr
, // 1288
preflightNotEmptyErr, // 1289
cannotCreateProcessErr, // 1290
mailAccountNotFoundErr, // 1291
tablePageItemError, // 1292
tableTextStoryError, // 1293

urllinkFileNeverSavedErr, // 1294
urllinkCannotGetLinkStateErr, // 1295
urllinkInvalidURLErr, // 1296
urllinkNoDownloadResultErr, // 1297
urllinkDownloadFailedErr, // 1298
urllinkCannotEmbedImageErr, // 1299
urllinkCannotLinkImageErr, // 1300
urllinkCannotUpdateImageErr, // 1301
urllinkUnknownLinkTypeErr
, // 1302

1200, ...

unknownErr

2000, ...

fileAccessErr, //3000
fileNotFoundErr, //3001
notFoundErr, //3002
indexOutOfBoundsErr, //3003
parameterValueErr, //3004
cancelledErr, //3005
documentErr, //3006
typeErr, //3007
dimensionsErr, //3008
notUniqueErr, //3009
notSupportedErr, //3010
contextErr, //3011

3000, ...

Error codes of Comet Javascript API.

Name Fehlernummer

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
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
Unknown Service 538654
Authorization Failure 538655
Unknown Pool 538656
Connection Failed 538657
Server was down 538658
Unknown Export Format 538659
Unknown Masterpage 538660
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.: