Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 47 Next »

Convienient way to get highest ErrorCode

Just call the following command to get the currently highest value of E1XXX codes here in the doc. E1XXX only, because the E4321 is used as example below.
php -r '$text = file_get_contents("https://confluence.translate5.net/display/TAD/ErrorCodes"); preg_match_all("/(E1[0-9]{3})/", $text, $codes); print_r(max(array_unique($codes[0])));echo "\n";'

or to get a whole list sorted from lowest to highest:
php -r '$text = file_get_contents("https://confluence.translate5.net/display/TAD/ErrorCodes"); preg_match_all("/(E[0-9]{4})/", $text, $codes); $codes = array_unique($codes[0]); sort($codes); print_r($codes);echo "\n";'

In the future each error in translate5 should have an own error code to improve support / make live for help desk easier.

List of ErrorCodes

General

EventCodeContextErrorMessageDescription / Solution

E0000

everywhereSeveralCode used for multi purposes: Mostly for debug messages below level warn, where no fixed message is needed.

E9999

everywhereSeveralDefault code used for old error messages, which are not converted yet to the new error code system.

E1014

everywhereLog HTTP RequestThe HTTP request to the server and its parameters are logged. Generally for debugging only.

E1015

entitiesDuplicate KeyA database key for the entity to be saved does already exist.

E1016

entitiesIntegrity Constraint Violation

An entity can not be added or updated since a referenced entity does not exist (anymore).

Or an entity can not be updated or deleted since it is referenced by other entities.

E1019

everywhereHTTP Status 404The requested URL / page was not found, the API endpoint in the application does not exist.

E1025

everywhereHTTP Status 422The PUT / POST request to that URL could not be processed due invalid given data.
The invalid fields are listed in the result from the server.

E1026

everywhereHTTP Status 422

The File Upload did not succeed PUT / POST request to that URL could not be processed due invalid given data.

The invalid fields are listed in the result from the server.

E1041

everywhereHTTP Status 409

The PUT / POST request to that URL could not be processed due the given data would produce an invalid state of the entity on the server.

If possible, the causing fields are listed in the result from the server, or the error message is self explaining.

E1027

everywherePHP Fatal ErrorPHP Fatal error, see error message for details.

E1029

everywherePHP WarningPHP Warning, see error message for details.

E1030

everywherePHP InfoPHP Info, see error message for details.





Users & Customers

EventCodeContextErrorMessageDescription / Solution

E1047

CustomerA client cannot be deleted as long as tasks are assigned to this client.Remove all tasks first from that customer.

E1048

User

The user can not be deleted, he is PM in one or more tasks.



Change the PMs in the affected tasks.

Task & Workflow

EventCodeContextErrorMessageDescription / Solution

E1011

Task; WorkflowMulti Purpose Code logging in the context of a taskMulti Purpose code for several info logs around a task.
Also important in Context of workflow.

E1012

Job; WorkflowMulti Purpose Code logging in the context of jobs (task user association)

Multi Purpose Code logging in the context of jobs (task user association)
Also important in Context of workflow.

E1013

Workflow onlyMulti Purpose Code logging in the context of pure workflow processing

Multi Purpose Code logging in the context of workflow processing

E1042

TaskThe task can not be removed due it is used by a user.One user has opened the task for reading or editing the task. Therefore this task can not be deleted.

E1043

TaskThe task can not be removed due it is locked by a user.One user has opened the task for editing the task, or some other action has locked the task.
Therefore this task can not be deleted.

E1044

TaskThe task can not be locked for deletion.The task must be locked by the deleting user, before it can be deleted. This lock could not be set.

E1045

Task; ManualStatusCheck Plug-InThe Task can not be set to finished, since not all segments have a set status.Each segment must have set a status in order to finish the task.

E1046

TaskThe current task status does not allow that action.This error occurs if the current status of the task does not allow the triggering action.

E1049

Task; ArchiveTaskBeforeDelete Plug-InTask could not be locked for archiving, stopping therefore the delete call.The task must be locked by the deleting user, before it can be deleted. This lock could not be set.

Import

ErrorCodeContextErrorMessageDescription / Solution

E1000

SdlXliff FileparserThe file "{filename}" contains SDL comments which are currently not supported!

Since "{filename}" can not be imported, omit that file or remove SDL comments for a successful import.

E1001

SdlXliff Fileparser

The opening tag "{tagName}" contains the tagId "{tagId}" which is not SDLXLIFF conform!

That "{tagName}" contains the tagId "{tagId}" is not valid SDLXLIFF according to our reverse engineering of the SDLXLIFF format. Probably the parse has to be extended here.

E1002

SdlXliff FileparserFound a closing tag without an opening one. Segment MID: "{mid}".Invalid XML structure in the mentioned SDLXLIFF file.

E1003

SdlXliff Fileparser

There are change Markers in the sdlxliff-file "{filename}"!
Please clear them first and then try to check in the file again.

SDLXLIFF change markup is not supported.

E1004

SdlXliff Fileparser

Locked-tag-content was requested but tag does not contain a xid attribute.

Invalid SDLXIFF according to our reverse engineering.

E1005

SdlXliff Fileparser

<sdl:seg-defs was not found in the current transunit: "{transunit}"

Invalid SDLXIFF according to our reverse engineering.

E1006

SdlXliff Fileparser

Loading the tag information from the SDLXLIFF header has failed!

Check if SDLXLIFF header content is valid XML.

E1007

SdlXliff Fileparser

The tag "{tagname}" is not defined in the "_tagDefMapping" list.

Invalid SDLXIFF according to our reverse engineering. The used tags are either not contained in the tag definition list in the header, or the parser did not parse the header completely.

E1008

SdlXliff Fileparser

The tag ID "{tagId}" contains a dash "-" which is not allowed!

Dashes are not allowed, since this may interfere with the GUI where dashes are used as delimiter in the IDs.

E1009

SdlXliff Fileparser

The source and target segment count does not match in transunit: "{transunit}".

Invalid SDLXIFF according to our reverse engineering.

E1010

SdlXliff Fileparser

The tag "{tagname}" was used in the segment but is not defined in the "_tagDefMapping" list!

Invalid SDLXIFF according to our reverse engineering. The used tags are either not contained in the tag definition list in the header, or the parser did not parse the header completely.

E1017

CSV FileparserThe regex {regex} matches the placeholderCSV string {placeholder} that is used in the editor_Models_Import_FileParser_Csv class to manage the protection loop.It is not allowed to use a regular expression to protect CSV content which matches the internally used placeholder.
Please find another solution to protect what you need to protect in your CSV via Regular Expression.

E1018

CSV FileparserThe string $this->placeholderCSV ({placeholder}) had been present in the segment before parsing it. This is not allowed.The mentioned placeholder string is used for internally replacement, therefore it may not occur in the real CSV content.

E1020

Relais Import

Errors in processing relais files: The following MIDs are present in the relais file "{fileName}" but could not be found in the source file, the relais segment(s) was/were ignored. MIDs: {midList}

For the listed MIDs the source segment was not found to the MID in the relais file, the Relais segment was ignored on import. The affected file is also logged.

E1021

Relais Import

Errors in processing relais files: Source-content of relais file "{fileName}" is not identical with source of translated file. Relais target is left empty. Segments: {segments} 

For the listed segments the source content in the source file and in the relais file was different, therefore no relais target content was saved to the segment.

E1022

Relais Import

Errors in adding relais segment: Source-content of relais file "{fileName}" is identical with source of translated file, but still original segment not found in the database: {segments}

This issue is similar to ErrorCodes, first a matching source segment was found to the relais segment, the source content equals, but the relais target data could not be saved. Investigate additional debug content!

E1023

TBX

Parser

Unable to read the provided tbx file {filename}The provided file for parsing can is not readable.

E1024

XML

Parser

Invalid XML: expected closing "{closingTag}" tag, but got tag "{receivedTag}". Opening tag was: {openingTag}Invalid xml chunk found while parsing xml file.

E1028

TBX

Parser

{message}. \n Term collection name: {name}Log the exception/info produced while the tbx parser is running.

E1031

Task Import - File UploadA file "{filename}" with an unknown file extension "{ext}" was tried to be imported.The uploaded file type is currently not supported.

E1032

Task Import

The passed source language "{language}" is not valid.

The source language given for the new task is invalid or not found in the languages table of the application.

E1033

Task ImportThe passed target language "{language}" is not valid.The target language given for the new task is invalid or not found in the languages table of the application.

E1034

Task ImportThe import did not contain files for the relais language "{language}".No importable data was found in the import package for the chosen relais language.

E1035

Task ImportThe given taskGuid "{taskGuid}" was not valid GUID.Please provide a valid GUID.

E1036

Task ImportThe given userGuid "{userGuid}" was not valid GUID.Please provide a valid GUID.

E1037

Task ImportThe given userName "{userName}" was not valid user name.Please provide a valid username.

E1038

Task ImportThe import root folder does not exist. Path "{folder}".The provided ZIP package is unzipped on the server for further processing. That unzipped folder can not be found. This is probably a problem of permissions on the server.

E1039

Task ImportThe imported package did not contain a valid "{proofRead}" folder.

The uploaded ZIP package did not contain a "proofRead" folder, which contains the data to be imported. See ZIP import package format.

E1040

Task ImportThe imported package did not contain any files in the "{proofRead}" folder.The "proofRead" Folder in the imported ZIP package was empty, so there is nothing to be imported.

E1052

Task ImportTODO Some of the tasks metaData can not be imported. See previous exception.Some of the tasks metaData can not be imported. See previous exception.

Language Resources

EventCodeContextErrorMessageDescription / Solution

E1050

Language Resources; Task

Referenced language resource not found.

This error can happen on the association of language resources to tasks, if the a chosen language resource was deleted in the meantime.

E1051

Language Resources; TaskCannot remove language resource from task, since task is used at the moment.The association of a language resource to a task can not removed, since the affected task is used by a user at the moment.


ErrorCode Design rules / decisions

  • Prefixed with "E" so that a search for the error code through the code is more reliable than just searching for a number
  • No structure in the numbering to prevent discussions is it an error E12XX or E45XX
  • Do not start at 1 and don't use leading zeros.
  • Each usage of an error in the code should get separate code. Even if the error message / reason is the same. Reason is that the help desk might need to do different things in different cases.
    • Information about the error here in the list should not be copied, but errors can point to another errors: "E 4321: See E 1234". Thats work to maintain, but better as confusing the client by giving wrong hints.
    • if it makes sense for the support / help desk to split up an error in different errorcodes because of different reasons, than this should be done in the code so far
  • Never forget the purpose of error codes: make life easier for support / help desk.


  • No labels