Page 1 sur 1

pbm d'imprtation de fchier.cvs

Posté : 04 oct. 2009, 13:15
par klam
J'ai un pbm lors de l'imporation de on fichier .cvs, j'ai l'erreur suivante:
requête SQL:
INSERT INTO `materiel` 
VALUES (

'2', '', '4776011090', 'IMPRIMANTE', 'EPSON LQ-2090 ', '', '', '2007'
) 

MySQL a répondu: 

#1062 - Duplicata du champ '2147483647' pour la clef 'code_barre_materiel' 

et voici un echantillon de mon fichier texte.cvs:
1;;4773100399;IMPRIMANTE;EPSON LQ-2080;;;2007
2;;4776011090;IMPRIMANTE;EPSON LQ-2090 ;;;2007
3;01E2359;4700021286;IMPRIMANTE;IBM 6400;;;2006
4;HUB64003NN;4773101684;IMPRIMANTE;HP LASERJET 1300;;;2006
5;;4776011088;IMPRIMANTE;XEROX PHASER 3425;;;2007
6;;4776011089;IMPRIMANTE;XEROX PHASER 3425;;;2007
7;CNBW7640BN;4776014796;Nouvelle IMPRIMANTE;HP LASERJET P2015d;;;2007
8;CNBW7640BT;4776014773;Nouvelle IMPRIMANTE;HP LASERJET P2015d;;;2007
9;JR5Y015309;4776014800;Nouvelle IMPRIMANTE;EPSON LQ-2090;;;2007
10;JR5Y014277;4776014808;Nouvelle IMPRIMANTE;EPSON LQ-2090;;;2007
11;;4776012768;IMPRIMANTE (photocopieuse);KYOCERA;;;2007
12;3B0729X36236;4776015866;NOUVEAU ONDULEUR;APC LEGENDARY;;;2008
13;;Sans;ONDULEUR;DESK POWER CHLORID (en panne) ;;;2006
14;Sans;4770010803;PC;ALFATRON;;;Antérieur a 2006
15;Sans;4770010805;PC;ALFATRON;;;Antérieur a 2006
16;Sans;Sans ;PC;CLONE (montage) ;;;Antérieur a 2006
17;1YF331J;4773100398;PC;DELL P4;;;Antérieur a 2006
18;3LPTM1J;4773101633;PC;DELL P4;;;Antérieur a 2006
19;HUB64003MB;4776011085;PC;HP P4 COMPAQ;;;2007
20;HUB64003P6;4776011086;PC;HP P4 COMPAQ;;;2007
21;;4776011087;PC;HP P4 COMPAQ;;;2007
22;HUB732221Z;4776015128;PC;HP P4 Nouveau;;;2007

Re: pbm d'imprtation de fchier.cvs

Posté : 04 oct. 2009, 14:25
par stopher
Salut ,

ton message d'erreur est tres clair ,

#1062 - Duplicata du champ '2147483647' pour la clef 'code_barre_materiel'

Tu as mis le champ "code_barre" comme clef unique .. mais dans ton fichier .csv , il existe un doublon .. d'ou l'erreur !

Ch.

Re: pbm d'imprtation de fchier.cvs

Posté : 04 oct. 2009, 14:48
par klam
merci pour votre aide ca a reglé le pbm a 60% mais l'importation du fichier n'est pas complète, il n'ya que 29 enregistrements qui qui ont été importés, il me reste dans le fichier: 441,,,,,???????????????,
j'ai vraiment besoin de votre aide :cry: :priere:

Re: pbm d'imprtation de fchier.cvs

Posté : 04 oct. 2009, 14:55
par klam
désolé , en fait c tout le fichier qui a été importé,
merci bcp pour votre aide
a plus