My job goes from ODBC -> XML Input -> Sequential File.
As I have not used XML before I am just trying to read the XML field and convert it to a flat structure. When this works I will build the rest of the required functionality.
I have imported the XML Table Definition using the Import tool.
The XML file is shown below:
Code: Select all
<BusinessEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/crm/2006/WebServices" xsi:type="DynamicEntity" Name="account">
<Properties>
<Property xsi:type="CrmBooleanProperty" Name="brit_lloydsbroker">
<Value>0</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_coverholder">
<Value>0</Value>
</Property>
<Property xsi:type="PicklistProperty" Name="ownershipcode">
<Value>7</Value>
</Property>
<Property xsi:type="PicklistProperty" Name="businesstypecode">
<Value>1</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_ukd">
<Value>0</Value>
</Property>
<Property xsi:type="StringProperty" Name="address1_country">
<Value>United Kingdom</Value>
</Property>
<Property xsi:type="PicklistProperty" Name="brit_brokerapprovalstatus">
<Value>13</Value>
</Property>
<Property xsi:type="StringProperty" Name="address1_line1">
<Value>2 Watling Drive</Value>
</Property>
<Property xsi:type="StringProperty" Name="name">
<Value>Ciber Europe Ltd</Value>
</Property>
<Property xsi:type="StringProperty" Name="brit_companylegalname">
<Value>Ciber Europe Ltd</Value>
</Property>
<Property xsi:type="LookupProperty" Name="brit_uniquenumberid">
<Value name="100000002" dsc="0">{B001442D-4F1E-DC11-BBE3-0003FFD062C1}</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_ownultimateparent">
<Value>1</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_londonmarket">
<Value>0</Value>
</Property>
<Property xsi:type="PicklistProperty" Name="brit_regionaloffice">
<Value>4</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_broker">
<Value>0</Value>
</Property>
<Property xsi:type="CrmBooleanProperty" Name="brit_ri">
<Value>0</Value>
</Property>
<Property xsi:type="StringProperty" Name="address1_city">
<Value>HINCKLEY</Value>
</Property>
<Property xsi:type="PicklistProperty" Name="brit_coverholderapprovalstatus">
<Value>13</Value>
</Property>
</Properties>
</BusinessEntity>
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://schemas.microsoft.com/crm/2006/WebServices"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
When the job runs I get the following error and no rows are processed:
Can anyone advise on what the problem might be please?BrokerCRMAuditXML_fromDB..XML_Input_5: The name '{0}' is not a valid NCName.
expression = '/:BusinessEntity' Remaining tokens are: ('/')