Thursday, March 12, 2015

DTExec error: Unable to load the package as XML because of package does not have a valid XML format

Today I had some trouble to get a DTSX package up & running. On the command line I tried to execute the following command:

DTEXEC /FILE "S:\Data Files\dtsx\Package.dtsx" /REPORTING EW /CONFIGFILE "S:\Data Files\dtsx\importjob.dtsConfig"

But no luck, instead of a running DTSX package, I got a very explaining (*ahum*) error message:

143910:T:M584D4:tsk> Microsoft (R) SQL Server Execute Package Utility

143910:T:M584D4:tsk> Version 11.0.2100.60 for 64-bit

143910:T:M584D4:tsk> Copyright (C) Microsoft Corporation. All rights reserved.

143910:T:M584D4:tsk>

143910:T:M584D4:tsk> Started:  2:39:09 PM

143910:T:M584D4:tsk> Error: 2015-03-12 14:39:10.83

143910:T:M584D4:tsk>    Code: 0xC0011007

143910:T:M584D4:tsk>    Source: {4B5520B2-BF3D-41B0-83F6-C266A50A51BB}

143910:T:M584D4:tsk>    Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted.

143910:T:M584D4:tsk> End Error

143910:T:M584D4:tsk> Error: 2015-03-12 14:39:10.83

Now the error message is somewhat misleading. It had nothing to do with an invalid XML package or something but instead we were using an incorrect filename. My DTSX package was called ImportJob.dtsx and not Package.dtsx…

So after updating the filename, the DTSX was running happily ever after…

DTEXEC /FILE "S:\Data Files\dtsx\importjob.dtsx" /REPORTING EW /CONFIGFILE "S:\Data Files\dtsx\importjob.dtsConfig"

No comments: