Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Bizarre run time error from DTS ActiveX Task

From: "Jeff Block" <jblock@--------------------------------.---.------->
To: NULL
Date: 4/1/2004 6:02:00 PM
Also ---  the runtime error occurs on OS: Server 2003. But does not happen
on 2000 or XP.

"Jeff Block" <jblock@R...> wrote in
message news:O2w%23JQEGEHA.3080@t......
> This code errors out, runtime error stating Object does not support the
> property or method from the 2ND write(transform...). If I run this script
> from the command line, it works fine. But from DTS, the error.
>
> And ideas ?
>
> ================== ================= ============
> Set xml = CreateObject("MSXML2.DOMDocument.4.0")
>  Set xsl = CreateObject("MSXML2.DOMDocument.4.0")
>
>  xml.async = false
>  xsl.async = false
>
>  xml.validateOnParse=False
>
>  xml.load(strSourceInvFile)
>  xsl.load(strINVXSLT)
>
>  'If xml.parseError.errorcode = <> 0
>
>  'set myErr = xml.parseError
>     'msgbox  myErr.reason
>
>  set fso = CreateObject("Scripting.FileSystemObject")
>  set MyFile = fso.CreateTextFile(strINVTransformed, true)
>
>  MyFile.Write(xml.transformNode(xsl))
>  MyFile.Close
>
>  xml.load(strSourceSalesFile)
>  xsl.load(strSALESXSLT)
>
>  set MyFile = fso.CreateTextFile(strSalesTransformed, true)
>
>  MyFile.Write(xml.transformNode(xsl))
>  MyFile.Close()
>
>  set xml = nothing
>  set xsl = nothing
>
>




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent