importing XML files with special characters to SQL Server tables
Hi, I have an SSIS package which successfully imports data from multiple XML files (XML Source) to SQL Server tables (OLE DB destination). However the package fails when encountering the uacute character as seen in the source XML here:- <POSTCODE_DISTRICT>LE-</POSTCODE_DISTRICT> The error messages are as follows: - [XML Source [24575]] Error: The component "XML Source" (24575) was unable to process the XML data. Invalid character in the given encoding. Line 48567, position 23. [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "XML Source" (24575) returned error code 0xC02092AF. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure. Do SSIS XML Source transformations tasks not handle such characters or is there an underlying problem with the XSD file?! Any assistance would be much appreciated.
October 18th, 2012 12:04pm

Hi, I think you have to add the encoding tag in the XML file or XSD file. like: <?xml version="1.0" encoding="utf-16"?> And the language pack to support those characters need to be installed in the system Regards, Shashi
Free Windows Admin Tool Kit Click here and download it now
October 18th, 2012 1:42pm

Make sure the collation is the right one, otherwise a valid character in one language could be translated in an invalid character in another language (collation)
October 18th, 2012 9:26pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics