Skip to Content
Menu
This question has been flagged
1 Atsakyti
5478 Rodiniai

I was migrating my openerp database from one server to another. And while restoring database on another server I am geting this error

ALTER TABLE ERROR: insert or update on table "stock_move" violates foreign key constraint "stock_move_product_id_fkey" DETAIL: Key (product_id)=(2466) is not present in table "product_product". ALTER TABLE

Please Suggest !!

Portretas
Atmesti
Best Answer

You might not have the Product with id = 2466 in the product_product table which is used as foreign key in stock_move table. You can create product with id = 2466 in product_product as a solution.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 15
3184
0
kov. 15
3532
1
vas. 18
10598
0
vas. 25
1572
2
saus. 25
8201