VERIFIED SOLUTION i

CONFIRM: Error "The'http://www.wrcplc.co.uk/Schemas/ETON:DistrictFTPserverIPaddress' element is invalid" when uploading OD Files

Product Feature: Street Works

Operating System: Windows

Database: SQL Server, Oracle
 

Issue

Getting the below error when uploading OD files. Example file is attached in the article

'Example_OD.XML' mscorlib
Exception has been thrown by the target of an invocation.
\Exception has been thrown by the target of an invocation.\The
'http://www.test.co.uk/Schemas/ETON:DistrictFTPserverIPaddress'
element is invalid - The value '
ftp.pitneybowes.co.uk' is invalid according to its
datatype 'http://www.wrcplc.co.uk/, ' - The
Pattern constraint failed.
at
MapInfo.Confirm.Process.StreetWorks.DotNetPBStreetWorksHelper.ImportOperationalDistrictData(String
xmlFilename)

 

Cause

As mentioned in the error, this is caused by the tag <DistrictFTPserverIPaddress> in the XML

Resolution

UPDATED: March 22, 2017
If we look at the example OD file attached "Example_OD,XML" there is a XML tag like below: 

<DistrictFTPserverIPaddress>ftp.pitneybowes.co.uk</DistrictFTPserverIPaddress> 

This field is for IP Address not the server name. "ftp.pitneybowes.co.uk" is a server name and it should be in the XML tag: 

<DistrictFTPserverName>ftp.pitneybowes.co.uk</DistrictFTPserverName> 

If we change the value in the tag "DistrictFTPserverIPaddress" with IP address then error will not come.
For example: 

<DistrictFTPserverIPaddress>127.0.0.1</DistrictFTPserverIPaddress>