﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16759	Upload Failed - Code=412 - Precondition failed: Cannot create way: data is invalid	lmason_aph.org	lmason_aph.org	"==== What steps will reproduce the problem?
1. Trying to upload one room with many POI's
2. 
3. 

==== What is the expected result?
Wish for upload to go into iD Indoor.
==== What happens instead?
Error message (attached)
==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-08-22 19:44:25 +0200 (Wed, 22 Aug 2018)
Build-Date:2018-08-22 17:46:33
Revision:14178
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14178 en) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 1803 (17134)
Memory Usage: 247 MB / 247 MB (62 MB allocated, but free)
Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080, \Display1 1920x1080, \Display2 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.security.manager, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlp.tk=awt, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.splashport=50150, -Djnlpx.home=<java.home>\bin, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=%UserProfile%\AppData\Local\Temp\session5973405461689361158, -Djnlpx.heapsize=NULL,NULL, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-788ff6d8]

Dataset consistency test:
[WARN - ZERO NODES] Way {Way id=-39113 version=0 MV nodes=[]} has zero nodes


Plugins:
+ QuickLabel (18)
+ apache-commons (34506)
+ auto_tools (1529260859)
+ buildings_tools (34572)
+ imagery_offset_db (34506)
+ importvec (34520)
+ indoorhelper (34522)
+ jts (34524)
+ namemanager (34532)
+ photoadjust (34543)
+ utilsplugin2 (34506)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/OSMRookie&zip=1

Map paint styles:
+ <josm.pref>\styles\sit.mapcss
+ <josm.pref>\styles\sit.mapcss
+ <josm.pref>\styles\sit.mapcss

Validator rules:
+ <josm.pref>\validator\indoorhelper.validator.mapcss

Last errors/warnings:
- W: Cannot lock cache directory. Will not use disk cache
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Error header: Precondition failed: Cannot create way: data is invalid.
- W: Error header ""Precondition failed: Cannot create way: data is invalid."" did not match with an expected pattern
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.>
- E: Precondition violation - <html>Uploading to the server <strong>failed</strong> because your current<br>dataset violates a precondition.<br>The error message is:<br>ResponseCode=412, Error Header=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</html>
- E: Error header: Precondition failed: Cannot create way: data is invalid.
- W: Error header ""Precondition failed: Cannot create way: data is invalid."" did not match with an expected pattern
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.>
- E: Precondition violation - <html>Uploading to the server <strong>failed</strong> because your current<br>dataset violates a precondition.<br>The error message is:<br>ResponseCode=412, Error Header=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</html>
}}}
"	task	closed	normal		Core	latest	needinfo	template_report upload	
