<div class="gmail_quote">On Sat, Nov 14, 2009 at 5:50 AM, Maarten Deen <span dir="ltr"><<a href="mailto:mdeen@xs4all.nl">mdeen@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm using osmosis 0.31.2 to insert some data (from XAPI) in a mysql database and<br>
I get the error<br>
Cannot add or update a child row: a foreign key constraint fails (`osm06/nodes`,<br>
CONSTRAINT `nodes_ibfk_1` FOREIGN KEY (`changeset_id`) REFERENCES `changesets`<br>
(`id`))<br>
<br>
I'm trying to load two osm files (which I've merged and sorted in the process).<br>
If I read the error correct, it is trying to insert a node with a changeset_id<br>
that does not occur in the changesets table.<br>
<br>
What could be the problem here and how can I correct it?<br></blockquote><div><br>Sorry for slow reply. Off the top of my head I don't know what could cause this. Your analysis sounds about right.<br><br>Are you able to provide a small test OSM file to reproduce the problem, and the full command line you are using?<br>
<br>Brett<br></div></div><br>