Skip to Content
Menu
This question has been flagged
2 Replies
3112 Rodiniai

hello guys. i want to ask some questions about SQL constraints when importing data in odoo

let's say i have 1 field (name) and I've added SQL constraints unique to that field.. what happens if we importing 2 rows with the same name?


for example:
rows 1: test123
rows 2: test123


do the validation sql constraints pop up shows or we keep importing the data but only the last row (row 2)? thanks


Portretas
Atmesti
Best Answer

Hi,
The SQL constraints do work while importing data.
Regards

Portretas
Atmesti
Best Answer

You can check importing with sample date.

I think import will fail due to constraint error. Once remove duplicate row, then only import success.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 23
3142
0
birž. 21
2587
1
lapkr. 20
4381
2
kov. 24
5537
1
liep. 23
1565