Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
5469 Näkymät

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 !!

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 15
3181
0
maalisk. 15
3527
1
helmik. 18
10586
0
helmik. 25
1558
2
tammik. 25
8156