El jueves, 25 de agosto de 2016, 8:30:04 (UTC-5), Manuel Moura escribió: > Thanks for your help, Sergi. > > The field detection is automatic, now.
How did you fix the automatic field detection? > But I receive an error, in the end of importing process, saying that "The > field "Value" in the model "Contact Mechanisms" is mandatory"... > If I delete the fields with "Contact Mechanisms/XXXX" the import process runs > successfully. > > Thanks for your patience. > > Kind regards, > Manuel Moura > > > quinta-feira, 25 de Agosto de 2016 às 08:05:05 UTC+1, Manuel Moura escreveu: > > Hi. I tried to find an answer for my question but because I did not found it, > here is my problem: > > I need to import 400 client records to tryton 4.0.3. > > 1. First of all I made a test export from a record that I already input > manually: > Name,Phone,Mobile,E-Mail,Addresses/Street,Addresses/Zip,Addresses/City,VAT > Code > Maxxx Mxxxx,,+351XXXXXXXXX,[email protected],"Rua das Fxxxxxxxxx, > 112",4XXX-XXX,Braga,PT111222333 > > 2. Based on that export I created an import test csv file: > Name,Phone,Mobile,E-Mail,Addresses/Street,Addresses/Zip,Addresses/City,VAT > Code > Teste Name,,+351123456789,[email protected],"Rua dos Anzois de Cima, > 1234",4700-100,Braga,PT100334223 > > 3. I tried the Auto-Detect button but the result was "error processing the > file at field Phone". > > I get this error with -l debug > "ERROR:tryton.common.common:Traceback (most recent call last): > File "/trytond/wsgi.py", line 47, in dispatch_request > return endpoint(request, **request.view_args) > File "/trytond/protocols/dispatcher.py", line 59, in rpc > request, database_name, *request.params) > File "/trytond/wsgi.py", line 39, in auth_required > return wrapped(*args, **kwargs) > File "/trytond/protocols/dispatcher.py", line 40, in wrapper > return func(request, pool, *args, **kwargs) > File "/trytond/protocols/dispatcher.py", line 201, in _dispatch > result = rpc.result(meth(*c_args, **c_kwargs)) > File "/trytond/model/modelstorage.py", line 744, in import_data > assert all(len(x) == len_fields_names for x in data) > AssertionErrorr" > > The filed names are/should be different in export/import files? > Do I need to installtrytond-import_csv ( The import CSV module of the Tryton > application platform)? > > Thanks, in advance, for your help. > > Kind regards, > > Manuel Moura -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/eef8d8f0-757e-43b4-9606-7a827766693f%40googlegroups.com.
