Wiki source code of 03. Errorlog
Last modified by Fredrik Nilsson on 2023/01/20 10:22
| 1 | (% class="jumbotron" %) |
| 2 | ((( |
| 3 | (% class="container" %) |
| 4 | ((( |
| 5 | If errors are encountered during CUSIN file processing an errorlog will be created, describing what type of error i.e. logical, format or xml-validation error. |
| 6 | ))) |
| 7 | ))) |
| 8 | |
| 9 | (% class="row" %) |
| 10 | ((( |
| 11 | (% class="col-xs-12" %) |
| 12 | ((( |
| 13 | ---- |
| 14 | |
| 15 | == CUSIN Errorlog file == |
| 16 | |
| 17 | [[image:FileResponse_[1.X].xsd.svg||height="301" width="358"]] |
| 18 | |
| 19 | |
| 20 | (% class="wikigeneratedid" %) |
| 21 | If any error occurs during the process of a cusin XML file, an errorlog is generated consisting of: |
| 22 | |
| 23 | * detailed description of all the errors that occured (ResponseItems file) |
| 24 | * the elements of the original file that failed (OriginItems file) |
| 25 | |
| 26 | (% class="wikigeneratedid" %) |
| 27 | Depending of the type of error you can choose to correct the invalid elements and transfer again in a new cusin file (using the next number in the cusin number series). |
| 28 | |
| 29 | == Error Codes == |
| 30 | ))) |
| 31 | ))) |
| 32 | |
| 33 | Below is a list of some errorcodes that may occur in the errorfile |
| 34 | |
| 35 | (% class="table-bordered table-striped" %) |
| 36 | |=(% style="width: 302px;" %)MessageCode|=(% style="width: 2940px;" %)Description |
| 37 | |(% style="width:302px" %)1210|(% style="width:2940px" %)AccountName must be unique |
| 38 | |(% style="width:302px" %)1024|(% style="width:2940px" %)Registration number XXXXX is invalid |
| 39 | |
| 40 | (% id="HNameconvention" %) |
| 41 | == Name convention == |
| 42 | |
| 43 | ERRCUSIN_<CompanyNumber>_<DateTime>_<SerialNumber>[Original related filename].xml |
| 44 | |
| 45 | (% class="table-bordered table-striped" %) |
| 46 | |=Name components|=Description |
| 47 | |CompanyNumber|The company number in our ledger system |
| 48 | |DateTime|Date created, Should be in the format ISO 8601 format, YYYYMMDDhhmmdd |
| 49 | |SerialNumber|Should follow an uninterrupted number series, 1, 2, 3 and so on. |
| 50 | |
| 51 | == Current XML schema description == |
| 52 | |
| 53 | A detailed description of the elements in the current version of the XML schema definition file (XSD) can be found [[here>>doc:Main.Invoicing.invoice-service.Implementation guide.Technical reference.Errorlog.XML Schema specification.WebHome]] |
| 54 | |
| 55 | == Download current XML schema file == |
| 56 | |
| 57 | (% class="row" %) |
| 58 | ((( |
| 59 | (% class="col-xs-12" %) |
| 60 | ((( |
| 61 | (% border="0" style="width:1023px" %) |
| 62 | |=(% style="width: 208px; background-color: rgb(237, 237, 237);" %)Fileversion|=(% style="width: 213px; background-color: rgb(237, 237, 237);" %)Version|=(% style="width: 288px; background-color: rgb(237, 237, 237);" %)Releasedate|=(% style="width: 585px; background-color: rgb(237, 237, 237);" %)Comment |
| 63 | |(% style="width:208px" %)[[FileResponse_[1.X].xsd>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@FileResponse_[1.X].xsd]]|(% style="width:213px" %)1.0|(% style="width:288px" %)2016|(% style="width:585px" %) |
| 64 | |
| 65 | == Change Log == |
| 66 | |
| 67 | (% id="HVersion1.1" %) |
| 68 | ==== **Version 2.0{{id name="3"/}}** ==== |
| 69 | |
| 70 | (% id="HJanuary2C2016" %) |
| 71 | ===== September, 2016 ===== |
| 72 | |
| 73 | [[FileResponse_[1.X].xsd>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@FileResponse_[1.X].xsd]] |
| 74 | |
| 75 | (% class="box" %) |
| 76 | ((( |
| 77 | Initial version (latest documented version) |
| 78 | ))) |
| 79 | |
| 80 | == Download sample files == |
| 81 | |
| 82 | [[ERRCUSIN_367_20191030093754_0[CUSIN_367_20190911090044_93.xml]>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@ERRCUSIN_367_20191030093754_0[CUSIN_367_20190911090044_93.xml].XML]] (ResponseItems) |
| 83 | |
| 84 | [[ERRCUSIN_367_20191030093613_0[CUSIN_367_20190911090044_93.xml]>>attach:Main.Invoicing.invoice-service.Technical reference.WebHome@ERRCUSIN_367_20191030093613_0[CUSIN_367_20190911090044_93.xml].XML]] (OriginItems) |
| 85 | ))) |
| 86 | ))) |