<?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: execute job not stored in a Folder in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755033#M1023</link>
    <description>What is the error returned to your browser when you try to execute using &lt;A href="https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340" target="_blank"&gt;https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340&lt;/A&gt;</description>
    <pubDate>Mon, 19 Jul 2021 16:06:23 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2021-07-19T16:06:23Z</dc:date>
    <item>
      <title>execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754595#M1014</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am trying to use SAS JobExecution on Viya to launch jobs that are not stored in a folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I write a SAS program and create a job from it I can run the job using both of these syntaxes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;s1)&lt;A href="https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340" target="_blank"&gt;&amp;nbsp;https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;s2) &lt;A href="https://viya.xxxx.it/SASJobExecution/?_program=/Users/yyyyy/My%20Folder/test_job_print" target="_blank"&gt;https://viya.xxxx.it/SASJobExecution/?_program=/Users/yyyyy/My%20Folder/test_job_print&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and everything is ok, but if I create a job from an interactive import in ‘Manage environment” this job does not reside in a folder so I can't use syntax s2.....&lt;/P&gt;&lt;P&gt;By the way its definition can be found in Environment Manager &amp;gt; Jobs and inside the job properties we can find the jobdefuri (&lt;EM&gt;es. &lt;A href="https://viya.sister.it/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0" target="_blank"&gt;90b5e740-85b0-4411-a47f-68a16152ddc0&lt;/A&gt;).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If I execute: &lt;EM&gt;&amp;nbsp;&lt;A href="https://viya.xxxx.it/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0" target="_blank"&gt;https://viya.xxxx.it/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I correctly obtain the job definition, so the definition is correct,&amp;nbsp; but if I try to execute the job using :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340" target="_blank"&gt;https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;SAS returns error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anybody can help me to launch SAS Viya Jobs that are not stored in folder?&lt;/P&gt;&lt;P&gt;Thanks in advance for any tips!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Federica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754595#M1014</guid>
      <dc:creator>federicasbrana</dc:creator>
      <dc:date>2021-07-16T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754639#M1015</link>
      <description>I was able to reproduce this by creating a job definition with only code (no name, parentFolderUri, etc). Doing the same adding a parentFolderUri did not resolve the issue, but when I patched my original adding a "type" of "Compute" it was able to complete.&lt;BR /&gt;&lt;BR /&gt;Does your job failing job definition have a type defined?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2021 17:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754639#M1015</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-07-16T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754953#M1020</link>
      <description>&lt;P&gt;Thank you very much Greg for you answer.&lt;BR /&gt;My job type (the job is created automatically from Data Explore by importing a data) is: "EXPLORER-PROXY" and I can't modify it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="federicasbrana_0-1626689401063.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61349iC75F08BF1A1346F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="federicasbrana_0-1626689401063.png" alt="federicasbrana_0-1626689401063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried to pass in the url a different job arguments as:&lt;/P&gt;&lt;P&gt;&lt;A href="https://xxxxx/SASJobExecution/?_job=/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0&amp;amp;jobDefType=compute" target="_blank"&gt;https://xxxxx/SASJobExecution/?_job=/jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0&amp;amp;jobDefType=compute&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it doesn't work&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="federicasbrana_1-1626689680879.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61350iD24B652F3822A9FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="federicasbrana_1-1626689680879.png" alt="federicasbrana_1-1626689680879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the property tab contains this information:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="federicasbrana_2-1626690754242.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61351iD3A1E71839594704/image-size/medium?v=v2&amp;amp;px=400" role="button" title="federicasbrana_2-1626690754242.png" alt="federicasbrana_2-1626690754242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the launch with this id returns "job not found".&lt;/P&gt;&lt;P&gt;Thank you very much for any suggestions.&lt;/P&gt;&lt;P&gt;federica&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 10:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/754953#M1020</guid>
      <dc:creator>federicasbrana</dc:creator>
      <dc:date>2021-07-19T10:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755006#M1021</link>
      <description>Do you see any errors in the jobexecapp or jobexecution logs that might indicate the issue?</description>
      <pubDate>Mon, 19 Jul 2021 14:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755006#M1021</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-07-19T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755031#M1022</link>
      <description>&lt;P&gt;unfortunately not&lt;/P&gt;&lt;P&gt;the jobexecapp log is ok&lt;BR /&gt;2021-07-19 17:57:11.399 INFO 4934 --- [0-auto-1-exec-6] com.sas.jobexec.AppController : f.sbrana(xxx) [xxx] Avvio dellâ€™esecuzione - Programma: /jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0 Utente: f.sbrana&lt;BR /&gt;2021-07-19 17:57:13.818 INFO 4934 --- [0-auto-1-exec-6] com.sas.jobexec.AppController : f.sbrana(xxx) [xxx] Esecuzione completata - Programma: /jobDefinitions/definitions/90b5e740-85b0-4411-a47f-68a16152ddc0 Utente: f.sbrana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in jobexecution log I don't find anything&amp;nbsp; about the executions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that the job execution WebApp can't execute this kind of job becouse the code is not standard sas....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 16:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755031#M1022</guid>
      <dc:creator>federicasbrana</dc:creator>
      <dc:date>2021-07-19T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755033#M1023</link>
      <description>What is the error returned to your browser when you try to execute using &lt;A href="https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340" target="_blank"&gt;https://viya.xxxx.it/SASJobExecution/?_job=/jobDefinitions/definitions/f2ac3f78-9189-45de-9f7d-d4e6ec5c4340&lt;/A&gt;</description>
      <pubDate>Mon, 19 Jul 2021 16:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755033#M1023</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-07-19T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755239#M1024</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61397i87EDD758FB75F406/image-size/medium?v=v2&amp;amp;px=400" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's a generic error . The job definition is found but it's not able to execute it...&lt;/P&gt;&lt;P&gt;Does it work in your platform?&lt;/P&gt;&lt;P&gt;I've created the job from import frame in SAS Data Explorer clicking on "New job" icon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="federicasbrana_0-1626763355883.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61398iDF7A24A849D7819C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="federicasbrana_0-1626763355883.png" alt="federicasbrana_0-1626763355883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 06:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755239#M1024</guid>
      <dc:creator>federicasbrana</dc:creator>
      <dc:date>2021-07-20T06:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755329#M1025</link>
      <description>I created my test job definitions using the REST APIs rather than a particular front-end. When I created a job definition without a type I got a similar error to yours (the screen just says "System Error" and then "null"). When I then updated the type (also using the REST API) it was successful.&lt;BR /&gt;In looking at the jobexecapp log I see a java NullPointerException after the log indicates successful execution (presumably because it's looking for that missing type object), it sounds like yours does not have this message though:&lt;BR /&gt;2021-07-20 08:22:09.766  INFO 21766 --- [0-auto-1-exec-9] com.sas.jobexec.AppController            : grwoot(9d6c3748) [ae798643b0b14346] Starting execution - Program: /jobDefinitions/definitions/9ace2522-212b-4962-9d3b-7f97fef09c63  User: grwoot&lt;BR /&gt;2021-07-20 08:22:13.665  INFO 21766 --- [0-auto-1-exec-9] com.sas.jobexec.AppController            : grwoot(9d6c3748) [ae798643b0b14346] Completed execution - Program: /jobDefinitions/definitions/9ace2522-212b-4962-9d3b-7f97fef09c63  User: grwoot&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;...&lt;BR /&gt;You may wish to engage SAS Technical Support on this one.</description>
      <pubDate>Tue, 20 Jul 2021 12:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755329#M1025</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-07-20T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: execute job not stored in a Folder</title>
      <link>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755396#M1026</link>
      <description>&lt;P&gt;thank you i'll try with the support&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/execute-job-not-stored-in-a-Folder/m-p/755396#M1026</guid>
      <dc:creator>federicasbrana</dc:creator>
      <dc:date>2021-07-20T15:33:54Z</dc:date>
    </item>
  </channel>
</rss>

