布尔字段 'Use Company Address' 的未知值 'f',假设第 2 行 'yes'
Unknown value 'f' for boolean field 'Use Company Address', assuming 'yes' at row 2
我合并了一个包含 res_users
和 res_partner
表的 csv 文件,并将其导入 v7 的 openerp 应用程序,但出现以下错误:
Unknown value 'f' for boolean field 'Use Company Address', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Opt-Out', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
No matching record found for name '235' in field 'Country' at row 2
Get all possible values
(35 more)
No matching record found for name '1' in field 'Company' at row 2
Get all possible values
(665 more)
Unknown value 'f' for boolean field 'Employee', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Customer', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Supplier', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 't' for boolean field 'Active', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Is a Company', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
No matching record found for name '7' in field 'State' at row 2
Get all possible values
(31 more)
'1/29/2015' does not seem to be a valid date for field 'Latest connection' at row 3
Use the format '2012-12-31'
(3 more)
'2/6/2015' does not seem to be a valid date for field 'Latest connection' at row 9
Use the format '2012-12-31'
'9/9/2014' does not seem to be a valid date for field 'Latest connection' at row 14
Use the format '2012-12-31'
'1/22/2015' does not seem to be a valid date for field 'Latest connection' at row 15
Use the format '2012-12-31'
No matching record found for name '27' in field 'State' at row 26
Get all possible values
(2 more)
No matching record found for name '25' in field 'State' at row 34
Get all possible values
如何解决,请指教。
请建议我,等待回复。
谢谢
在导入 csv 时,避免使用 'f'
进行布尔值尝试 0 for false
和 1 for true
根据错误建议,您的 csv 中有很多错误格式,请尝试使用该格式。之后它将导入成功。
例如:
日期导入格式:
使用这种格式 2012-12-31 而不是像 2015-02-06 那样的 2/6/2015
对于布尔字段:
0 表示错误,1 表示正确
在第 26 行的字段 'State' 中找不到名称“27”的匹配记录
获取所有可能的值
转到 csv 文件并查看带有状态字段的结帐记录第 26 行。该值在OpenERP中检查是否正确。如果该状态未创建,则首先在 OpenERP 中创建状态,然后尝试导入。
我合并了一个包含 res_users
和 res_partner
表的 csv 文件,并将其导入 v7 的 openerp 应用程序,但出现以下错误:
Unknown value 'f' for boolean field 'Use Company Address', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Opt-Out', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
No matching record found for name '235' in field 'Country' at row 2
Get all possible values
(35 more)
No matching record found for name '1' in field 'Company' at row 2
Get all possible values
(665 more)
Unknown value 'f' for boolean field 'Employee', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Customer', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Supplier', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 't' for boolean field 'Active', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
Unknown value 'f' for boolean field 'Is a Company', assuming 'yes' at row 2
Use '1' for yes and '0' for no
(665 more)
No matching record found for name '7' in field 'State' at row 2
Get all possible values
(31 more)
'1/29/2015' does not seem to be a valid date for field 'Latest connection' at row 3
Use the format '2012-12-31'
(3 more)
'2/6/2015' does not seem to be a valid date for field 'Latest connection' at row 9
Use the format '2012-12-31'
'9/9/2014' does not seem to be a valid date for field 'Latest connection' at row 14
Use the format '2012-12-31'
'1/22/2015' does not seem to be a valid date for field 'Latest connection' at row 15
Use the format '2012-12-31'
No matching record found for name '27' in field 'State' at row 26
Get all possible values
(2 more)
No matching record found for name '25' in field 'State' at row 34
Get all possible values
如何解决,请指教。 请建议我,等待回复。
谢谢
在导入 csv 时,避免使用 'f'
进行布尔值尝试 0 for false
和 1 for true
根据错误建议,您的 csv 中有很多错误格式,请尝试使用该格式。之后它将导入成功。
例如:
日期导入格式:
使用这种格式 2012-12-31 而不是像 2015-02-06 那样的 2/6/2015
对于布尔字段:
0 表示错误,1 表示正确
在第 26 行的字段 'State' 中找不到名称“27”的匹配记录 获取所有可能的值
转到 csv 文件并查看带有状态字段的结帐记录第 26 行。该值在OpenERP中检查是否正确。如果该状态未创建,则首先在 OpenERP 中创建状态,然后尝试导入。