<https://lh3.googleusercontent.com/-3_ZJ7iUqbaM/V77mTKNWINI/AAAAAAAAFec/nO-PuWPazFcPdU3aPgp-TA0fgXdk5hPTgCLcB/s1600/Captura%2Bde%2Becr%25C3%25A3%2Bde%2B2016-08-25%2B13%253A33%253A23.png> Thanks for your help, Sergi.
The field detection is automatic, now. 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: > > > <https://lh3.googleusercontent.com/-BKKnb7v1MO8/V76LcrlQHSI/AAAAAAAAFeI/S4KuR-iaNwAOtZKWQ5KmCOiq2bn_khoyACLcB/s1600/Captura%2Bde%2Becr%25C3%25A3%2Bde%2B2016-08-25%2B07%253A06%253A06.png> > 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/14ea798a-4128-45c2-988d-e750a30584f5%40googlegroups.com.
