Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS XML source error

$
0
0

I have a XML file with four columns that I receive on a daily basis which I am loading into the table in SQL Server. The same XML file that I receive, sometimes does not have data in it and it is empty. How can I parse both of these in a SSIS package. It is giving me error if there are no columns in XML file that I receive.

Sample XML file that I receive daily.:

<?xml version="1.0" encoding="utf-8" ?> <REJECT> <ID>500</ID> <CLAIM><CLAIMNUM>2</CLAIMNUM> <WARNING>Phone Number is Invalid!</WARNING> </CLAIM></REJECT>

Sample XML file that I receive on certain days which does not have data in it.:

<?xml version="1.0" encoding="utf-8" ?> <REJECT /> 

How can I load these into the table regardless of which I receive. I am using a generate XSD option for the XSD.

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>