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

Complex input....xls...but its really .xml

$
0
0

Ugh!

Soooo I'm dealing with an impossible vendor. Let me say that first. They are delivering a file with .xls name extension. But it's actually a .xml File. And we found this out because when we attempted to import it as "Excel Source" with an "Excel Connection Manager" we got this error.

SSIS Error Code
DTS_E_OLEDBERROR
An OLE DB error has occurred.

Error code:0x80004005

An OLE DB record is available. Source "Microsoft JET Database Engine"

Hresult: 0x80004005 
Description: "External table is not in the expected format."

We then opened the provided .xls file in Excel and got the warning message accordingly...

The file you are trying to open <File Path and Name> is in a different format than specified by the file extension.

Confused by this, we went ahead and opened the file in Excel and then tried a File Save As and saw that the file Save as type was actually .xml

The vendor is NOT going to change the file extension. 

Soooo what are my options here? I'm thinking that I use a "Foreach Loop Container" and a "File System Task" within it to "Rename" the file to .xls and then process it accordingly as a .xls File.

Any thoughts?

Thanks in advance for your review and am hopeful for a reply.

PSULionRP


Viewing all articles
Browse latest Browse all 24688


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