GPT - Error: Name not legal - Master cannot contain the character " "

Hi all,
I encounter a problem in the GPT. I want to coregister two Sentinel-1 TOPS datasets and the following massage is displayed:

Error: The name “Master: 07Nov2017” is not legal for JDOM/XML elements: XML name ‘Master: 07Nov2017’ cannot contain the character " ".

Thank you for your help and best regards,
Tobias
###########################

INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
Executing processing graph
INFO: org.hsqldb.persist.Logger: dataFileCache open start

Master: 07Nov2017
Slave: 07Nov2017 prep baseline: 0.0 temp baseline: 0.0
Slave: 13Nov2017 prep baseline: -9.92873 temp baseline: -5.9994817

======
Master: 13Nov2017
Slave: 07Nov2017 prep baseline: 9.929737 temp baseline: 5.9994817
Slave: 13Nov2017 prep baseline: 0.0 temp baseline: 0.0

IFG: isTOPSARBurstProduct = true
90% done.
org.esa.snap.core.gpf.OperatorException: The name “Master: 07Nov2017” is not legal for JDOM/XML elements: XML name ‘Master: 07Nov2017’ cannot contain the character " ".
at org.esa.snap.core.gpf.graph.GraphProcessor$GPFImagingListener.errorOccurred(GraphProcessor.java:363)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1646)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:921)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at com.sun.media.jai.util.RequestJob.compute(SunTileScheduler.java:247)
at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)
Caused by: org.jdom2.IllegalNameException: The name “Master: 07Nov2017” is not legal for JDOM/XML elements: XML name ‘Master: 07Nov2017’ cannot contain the character " ".
at org.jdom2.Element.setName(Element.java:227)
at org.jdom2.Element.(Element.java:161)
at org.jdom2.Element.(Element.java:173)
at org.esa.snap.core.dataop.downloadable.XMLSupport.metadataElementToDOMElement(XMLSupport.java:123)
at org.esa.snap.core.dataop.downloadable.XMLSupport.metadataElementToDOMElement(XMLSupport.java:124)
at org.esa.snap.engine_utilities.datamodel.metadata.AbstractMetadataIO.Save(AbstractMetadataIO.java:84)
at org.esa.snap.engine_utilities.datamodel.metadata.AbstractMetadataIO.saveExternalMetadata(AbstractMetadataIO.java:70)
at org.esa.s1tbx.io.geotiffxml.GeoTiffXMLProductWriter.writeMetadataXML(GeoTiffXMLProductWriter.java:60)
at org.esa.s1tbx.io.geotiffxml.GeoTiffXMLProductWriter.writeProductNodesImpl(GeoTiffXMLProductWriter.java:54)
at org.esa.snap.core.dataio.AbstractProductWriter.writeProductNodes(AbstractProductWriter.java:109)
at org.esa.snap.core.gpf.common.WriteOp.doExecute(WriteOp.java:304)
at org.esa.snap.core.gpf.internal.OperatorContext.executeOperator(OperatorContext.java:1243)
at org.esa.snap.core.gpf.internal.OperatorImage.computeRect(OperatorImage.java:65)
at javax.media.jai.SourcelessOpImage.computeTile(SourcelessOpImage.java:137)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
… 3 more

Error: The name “Master: 07Nov2017” is not legal for JDOM/XML elements: XML name ‘Master: 07Nov2017’ cannot contain the character " ".

Change the name to one that does not contain illegal characters?

hi mengdahl,
thanks for your reply, the string/name “Master: 07Nov2017” is defined by the system. I am not able to modify this.

Then it’s a bug, what is your operating-system?

I am running newest version of SNAP (6.0.2) on Windows 10 Enterprise, 64 Bit, 32 GB RAM

I encounter the same error when doing Range-Doppler Terrain Correction. Using the desktop application of SNAP works fine, but GPT complains about:

Error: The name “Master: 29Sep2018” is not legal for JDOM/XML elements: XML name ‘Master: 29Sep2018’ cannot contain the character " ".

Operating system is Ubuntu 16.04.

Really strange error. But maybe my solution is of help to somebody. I was calling GPT from a script that also sets a new LD_LIBRARY_PATH. After not overwriting the old LD_LIBRARY_PATH, but simply adding paths to it, the error goes away. At first glance nothing in LD_LIBRARY_PATH seems to be in any way related to SNAP or GPT.

In my case what helped me (ubuntu 18.04.1 LTS) was to change the gpt graph output format from <formatName>GeoTIFF+XML</formatName> to <formatName>GeoTIFF</formatName>

Thank you aTnT, I just came across the same issue.

I have the same issue when trying to save as (I beleive) any format other than BEAM