Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4909 มุมมอง
  • null value in column "name" violates not-null constraint DETAIL: Failing row contains (7, null, 10, null, null, null, null, null, null, null, null, 2243, null, null, null, null, null, null, null, null, 1, 2019-01-09 07:42:10.871995, 1, 2019-01-09 07:42:10.871995). at row 3

Could someone please explain why i get the above error when i try to import my purchase orders into odoo when there is no 'name' field

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Leke,

This is because the "name" field on the model purchase order is a required field. If a required field is not satisfied when importing you will get the warning that says null value in column "field_name" violates not-null constraint. When you add a column "name" to your CSV and fill in a name it'll work as the field is no longer empty when importing.

Regards,
Yenthe

อวตาร
ละทิ้ง
ผู้เขียน

Hi Yenthe,

I added a name column to my csv however im still getting the error

null value in column "name" violates not-null constraint DETAIL: Failing row contains (13, null, 10, 7.000, null, null, null, 640.00, null, null, null, 2258, null, null, null, null, null, null, null, null, 1, 2019-01-09 08:10:31.179874, 1, 2019-01-09 08:10:31.179874). at row 2

I assume your CSV is not correctly formatted (separator or text delimiter) or that you're importing it with the wrong encoding. If both are not the case then are you sure you've filled in all required fields?

ผู้เขียน

I don't know what the required fields are i believe that's the main issue is there somewhere that shows the minimum fields required to import information?

Related Posts ตอบกลับ มุมมอง กิจกรรม
Hide menu for all except specific group แก้ไขแล้ว
1
พ.ย. 22
3252
Live tracking in odoo. แก้ไขแล้ว
2
ส.ค. 22
7588
1
ม.ค. 25
9295
1
ก.ย. 21
6608
1
มี.ค. 21
5362