good morningfirst of all thanks and congratulations for the wonderful work that is web2py.I just started using it and I have this problem.writing on db.py I created a SQLite database, a table (articles) and I imported data from an existing .dbf file with a script,it happens that the "data" field (the date of price change); if it is empty generates an exception, "ValueError: invalid literal for int () with base 10: '' if the field is full, everything ok.The "data" field is in format year, month, day. (looking with db browser)
I tried to import it via .csv files and even .sqlThis happens only on the imported data, the records registered by the form, everything ok.I understand that the program understands that it is imported but should accept it as it is, do not try to convert it (I think)
I also imported with "db.articoli.import_from_csv_file (open ( 'z: /articoli.csv'))"also as "migrate = false"but is all useless :(I can not find a solution, someone with a good heart can help me?for the magic Massimo .... why do not you talk more about the Italian ?? :)tanks to all
Tanks Dave,
this is a little extract .csv of the database,
together record ok saved via the web2py form, and also record imported from a dbf with db browserid,codice,descriz,classmerc1,classmerc2,escluso,un_mis,sottosc,pesounit,litriunit,materiapri,editinpv,fornitore,codiceacci,pr_acq,percspese,perc_ric,cod_iva,pr_vend,listino01,listino02,listino03,listino04,dataaggpr,codccstato,camputente14817,ok1,record ok without data,,,N,N,0,0.0,0.0,N,N,,,0.0,0.0,0.0,22,0.0,0.0,0.0,0.0,0.0,,, record generated from the form, OK14818,ok2,record ok with data,,,N,N,0,0.0,0.0,N,N,,,0.0,0.0,0.0,22,0.0,0.0,0.0,0.0,0.0,2016-07-28,, record generated from the form, OK14769,007442,Aia fr Diavoletto Arrosto,00094,,N,N,0,0.5,0.0,N,,AIA,,1.8933,3.0,59.9,10,3.43,0.0,0.0,0.0,0.0,2015-10-01,, record imported, not ok
tanks very muchDaniele
no help ?