<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to create object SASEGObjectModel using Jenkins in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/405238#M26041</link>
    <description>&lt;P&gt;Happy to help.&amp;nbsp; Glad you got it resolved!&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 14:44:46 GMT</pubDate>
    <dc:creator>CaseySmith</dc:creator>
    <dc:date>2017-10-18T14:44:46Z</dc:date>
    <item>
      <title>Unable to create object SASEGObjectModel using Jenkins</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/404586#M25979</link>
      <description>&lt;P&gt;I've been trying to automate a vbs script (generated by Enterprise Guide 7.1) using Jenkins and am not able to troubleshoot the error. I've read many similar post here on sas community and have tried all the solutions that were suggested, but still having the issue. Please find the detailed explanation of the error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run the below script using Jenkins' Windows batch execution :&lt;/P&gt;&lt;P&gt;%windir%\System32\cscript.exe "~dir\EGScript1.vbs"&lt;/P&gt;&lt;P&gt;and I'm getting the error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Microsoft (R) Windows Script Host Version 5.812&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;BR /&gt;~dir\EGScript1.vbs(7, 1) Microsoft VBScript runtime error: Object required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The vbs script works perfectly using command prompt and even with windows task scheduler.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After investigation, I found out that the issue is in creating this object Set app = CreateObject("SASEGObjectModel.Application.7.1"). For testing purpose I verified the line-- Set app = CreateObject("excel.application") which works perfectly fine (even in Jenkins).&lt;/P&gt;&lt;P&gt;I've tried all the options that were suggested including the links below:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/schedule-task-in-sas-eg/td-p/212052" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/schedule-task-in-sas-eg/td-p/212052&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/VBScript-error-could-not-locate-automation-class/td-p/103212" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/VBScript-error-could-not-locate-automation-class/td-p/103212&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using 64 bit machine and my EG is also 64 bit. I've also tried to run the below statement, but still getting the error of SASEGObjectModel.Application.7.1 using Jenkins.&lt;/P&gt;&lt;P&gt;C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm /codebase /tlb "C:\Program Files\SASHome\SASEnterpriseGuide\7.1\SASEGScripting.dll"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please suggest and let me know if anymore info is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/404586#M25979</guid>
      <dc:creator>diwakar_atwal</dc:creator>
      <dc:date>2017-10-16T20:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create object SASEGObjectModel using Jenkins</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/404603#M25983</link>
      <description>&lt;P&gt;A couple things to check...&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is Enterprise Guide&amp;nbsp;7.1 installed on the machine on which your Jenkins job is running?&lt;/LI&gt;
&lt;LI&gt;What user account is your Jenkins job running under?&amp;nbsp; (add "whoami" command to your Jenkins job to confirm)&amp;nbsp; Perhaps it is running as a different user than yourself (ex. service account)?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 21:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/404603#M25983</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-10-16T21:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create object SASEGObjectModel using Jenkins</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/405043#M26025</link>
      <description>&lt;P&gt;Thank you Casey for the lead. Issue is resolved now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked few things as you suggested:&lt;/P&gt;&lt;P&gt;Jenkins jobs were running under user- NT Authority\system&lt;BR /&gt;So I changed the LOG ON information in Jenkins service and restarted it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I got a different error:&lt;/P&gt;&lt;P&gt;Failed to open SAS.Shared.DNADecoder. Reason: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.&lt;BR /&gt;LibGit2Sharp&lt;BR /&gt;Int32 git_libgit2_init()&lt;BR /&gt;at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()&lt;BR /&gt;at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()&lt;BR /&gt;at LibGit2Sharp.Core.NativeMethods..cctor()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which I resolved using the below link :&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA-LibGit2Sharp-Core-NativeMethods/td-p/341435?nobounce" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Execute-SAS-Program-via-VBA-LibGit2Sharp-Core-NativeMethods/td-p/341435?nobounce&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since Jenkins' Windows batch command is invoked in "x86" (checked with 'whoami'). So I called my cscript using SYSNATIVE instead of SYSTEM32&lt;BR /&gt;%windir%\Sysnative\cscript.exe "~dir\EGScript1.vbs"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And now vbscript is able to create object SASEGObjectModel and entire program is running like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 22:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/405043#M26025</guid>
      <dc:creator>diwakar_atwal</dc:creator>
      <dc:date>2017-10-17T22:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create object SASEGObjectModel using Jenkins</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/405238#M26041</link>
      <description>&lt;P&gt;Happy to help.&amp;nbsp; Glad you got it resolved!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-create-object-SASEGObjectModel-using-Jenkins/m-p/405238#M26041</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-10-18T14:44:46Z</dc:date>
    </item>
  </channel>
</rss>

