Inital Data Loading

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Inital Data Loading

james yong
Hi,

I was running ant run-install, and got the following error. The version of ofbiz used is trunk. Maybe this is due to the seed data problem?

insert or update on table "supplier_product" violates foreign key constraint "suppl_prod_party"
[java]   Detail: Key (party_id)=(DemoSupplier) is not present in table "party".)).

Regards,
James
Reply | Threaded
Open this post in threaded view
|

Re: Inital Data Loading

Christian Geisert
james yong schrieb:
> Hi,
>
> I was running ant run-install, and got the following error. The version of
> ofbiz used is trunk. Maybe this is due to the seed data problem?
>
> insert or update on table "supplier_product" violates foreign key constraint
> "suppl_prod_party"
> [java]   Detail: Key (party_id)=(DemoSupplier) is not present in table
> "party".)).

I just did an 'ant run-install' (after an 'ant clean-data') with the
latest trunk (rev. 649415) and everything was running fine.

So it looks like something is wrong with *your seed/demo-data - just do
a svn diff to see if there are any changes.

--
Christian

Reply | Threaded
Open this post in threaded view
|

Re: Inital Data Loading

BJ Freeman
In reply to this post by james yong
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=Party&find=true&VIEW_SIZE=10&VIEW_INDEX=0
does show the  DemoSupplier. this is suppose to be the latest svn.
1)possibly you don't have a complete SVN and need to update you copy
2) you have done some work on the data and it id not get loaded properly.
you can find the data file in the eccommerce data folder and import it
via the webtools to see if has problems.
https://demo.hotwaxmedia.com/webtools/control/EntityImport

james yong sent the following on 4/17/2008 9:22 PM:

> Hi,
>
> I was running ant run-install, and got the following error. The version of
> ofbiz used is trunk. Maybe this is due to the seed data problem?
>
> insert or update on table "supplier_product" violates foreign key constraint
> "suppl_prod_party"
> [java]   Detail: Key (party_id)=(DemoSupplier) is not present in table
> "party".)).
>
> Regards,
> James