﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22028	Relation with external id 'XXX' refers to a missing primitive with external id 'YYY'	sano	sano	"When trying to load a saved JOSM session I see:

Could not read file 'session.osm'. Error is: Relation with external id '918129' refers to a missing primitive with external id '-104002'.


==== What steps will reproduce the problem?
1. Send a completed work in JOSM to the OSM db
2. resolve conflicts reported by JOSM
3. save the JOSM session to a file


==== What is the expected result?

Load the saved session to JOSM a continue editing, or submit to the OSM db

==== What happens instead?

When loading the saved session I receive the error shown above


==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:18427
Build-Date:2022-04-05 19:28:31

Identification: JOSM/1.5 (18427 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G9216)
Memory Usage: 400 MB / 2048 MB (201 MB allocated, but free)
Java version: 17.0.2+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69731904 1440×900 (scaling 2.00×2.00)
Maximum Screen Size: 1440×900
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_SK
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18427, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/GPS/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ DirectDownload (35951)
+ DirectUpload (35951)
+ FastDraw (35893)
+ PicLayer (1.0.2)
+ RovasConnector (0.1.0)
+ apache-commons (35924)
+ apache-http (35924)
+ buildings_tools (35951)
+ editgpx (35931)
+ ejml (35924)
+ geotools (35956)
+ importvec (35893)
+ jaxb (35952)
+ jna (35924)
+ jts (35924)
+ log4j (35924)
+ opendata (35910)
+ reverter (35893)
+ shrinkwrap (v1.0.4)
+ undelete (35893)
+ utilsplugin2 (35951)
+ wikipedia (605)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Freemap&zip=1

Map paint styles:
+ ${HOME}/Downloads/conscriptionnumbers_v2.mapcss

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/CzechRepublicAddressSystem&zip=1

Last errors/warnings:
- 00008.007 W: Not a single layer for the name 'GKU-NLC': []
- 00008.007 W: Not a single layer for the name 'zbgisws Ortofoto': []
- 00008.008 W: Not a single layer for the name 'zbgisws Ortofoto': []
- 00008.008 W: Not a single layer for the name 'GKU-NLC': []
- 00008.008 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00008.009 W: Not a single layer for the name 'GKU-NLC': []
- 00025.196 E: org.openstreetmap.josm.io.IllegalDataException: Relation with external id '918129' refers to a missing primitive with external id '-104002'.
- 00025.248 E: Error - <html>Could not read file 'session.osm'.<br>Error is:<br>Relation with external id '918129' refers to a missing primitive with external id '-104002'.</html>
}}}
"	defect	needinfo	normal		Core			template_report	
