Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Invalid character in the given encoding xml sourc.

Author  Topic 

sarahmfr
Posting Yak Master

214 Posts

Posted - 2011-11-30 : 16:40:43
I have a data flow with xml source flat file
the source file name is a variable
I got the following error
was unable to process the XML data. Invalid character in the given encoding.
i am using unicode dt_wstr for the input and output
any suggestion
my schema has the following
<?xml version="1.0"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="SP2AnnouncementInfo">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="AnnouncementInfo">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="SectionNumber" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="SP2SectionID" type="xs:unsignedInt" />
<xs:element minOccurs="0" name="AcademicPeriod" type="xs:string" />
<xs:element minOccurs="0" name="Subject" type="xs:string" />
<xs:element minOccurs="0" name="Body" type="xs:string" />
<xs:element minOccurs="0" name="SendEmail" type="xs:unsignedByte" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Thanks

sarah

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-01 : 00:44:54
the schema looks fine. can you post part of xml from document which errored?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -