DGFiP / Test-Compta-Demat

Ce logiciel permet de contrôler le respect des normes des fichiers d'écritures comptables (FEC) conformément aux dispositions de l'article A.47 A-1 du livre des procédures fiscales.
http://www.economie.gouv.fr/dgfip/controle-fiscal-et-lutte-contre-fraude
52 stars 20 forks source link

Inconsistent behavior of version 1.05 with version 1.04 #4

Open pommedeterresautee opened 9 years ago

pommedeterresautee commented 9 years ago

I just tried the new version on an already tested (big) FEC (tested with version 1.04 previously). In previous version I had no error. And I know there is none because I imported it in ACL and tested it with our script (used on > 300 FEC, an important part in tax audit context).

I just tried the new version and it tells me that there are 102 fields on some lines. Of course I don't see the 102 fields.

La structure du fichier est incorrecte ... il y a 102 champs au lieu des 17 champs attendus ;
[10] fois dans le fichier
º La structure du fichier est incorrecte en ligne 3665 il y a 187 champs au lieu des 17 champs attendus
;
º La structure du fichier est incorrecte en ligne 3680 il y a 442 champs au lieu des 17 champs attendus
;

I check these lines, there is nothing special. Moreover I tried to extract these lines + the one before and after in a dedicated file to isolate the error, anonymize the file and send it to you but unfortunately when I extract these lines (and the one before and after) there is no more error.

Any idea of why it happens and how I can help you to debug it?

Kind regards, Michaël

pommedeterresautee commented 9 years ago

BTW, there are 18 fields in this file! The last 2 (Montantdevise and Idevise) are almost never used in this file.

npotelle commented 9 years ago

Very strange and worrying... A regression due to the correction of bug #1 ? An idea : Numbers 187 and 442 are multiple of 17. For the first error (line 3665), 11 lines may be considered as only one line -> 11 x 17 = 187. Maybe, try to take more than 20 lines before and 20 lines after line 3665.