<?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: Help running sas-viya batch job submissions in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/964132#M29852</link>
    <description>The CLI will make use of the refresh token to get a new access token so you wouldn't need to login each time, but login periodically (based on your configured refresh token validity, 14 days by default).&lt;BR /&gt;&lt;BR /&gt;The interactive SSO/authCode method is because authentication is not being performed by SAS but the SSO provider (OIDC/SAML). &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Apr 2025 17:48:21 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2025-04-11T17:48:21Z</dc:date>
    <item>
      <title>Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962822#M29797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to initiate a batch program run using the sas-viya CLI. Our POC environment has been integrated with OAuthv2 and LDAP (SSO). To run the program, I first ran the auth login command to generate a token and then tried submitting the program as follows. It gives me an error and the program does not get submitted. Has anyone encountered this error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Batch plugin version:&amp;nbsp;sas-batch-cli-40.2.13-20250307.1741305600&lt;/P&gt;&lt;P&gt;AUTH plugin version:&amp;nbsp;1.29.3&lt;/P&gt;&lt;P&gt;SAS Viya release:&amp;nbsp;&lt;SPAN&gt;20250211&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./sas-viya auth login&lt;BR /&gt;Enter credentials for &lt;A href="https://viya-poc.mycompany.com" target="_blank"&gt;https://viya-poc.mycompany.com&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;Userid&amp;gt; johndoe&lt;/P&gt;&lt;P&gt;Password&amp;gt; Login succeeded. Token saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;./sas-viya batch jobs submit-pgm --context default --pgm-path /home/johndoe/test.sas&lt;BR /&gt;&lt;STRONG&gt;Failed to create the file set.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;The request was not performed because of the following internal error: Folders.CreateFolder: parentURI must not be empty&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962822#M29797</guid>
      <dc:creator>kams</dc:creator>
      <dc:date>2025-03-28T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962829#M29798</link>
      <description>When using the CLI with --pgm-path, the CLI creates a "file set" with the batch service, then uploads the --pgm-path file into that file set. The file set is effectively a new folder in the path /Users/&amp;lt;userid&amp;gt;/Application Data/sas-batch/fileSets, for the userid running the batch server.&lt;BR /&gt;&lt;BR /&gt;This error appears to be from the folders service, saying when we tried to create that new folder we didn't specify that path. This is probably the result of the batch service call to the folders service requesting the URI for that path not returning a result, possibly due to a permissions issue on the user's folder (/Users/userid).&lt;BR /&gt;&lt;BR /&gt;Are you using reusable batch servers? Have you modified the default permissions to the SAS Content folders for users? The batch service log may have additional detail on the failure.</description>
      <pubDate>Fri, 28 Mar 2025 13:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962829#M29798</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-03-28T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962830#M29799</link>
      <description>&lt;P&gt;Look in the sas-batch-&amp;lt;hash&amp;gt; pod logs to see if there is a more detailed error.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/962830#M29799</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2025-03-28T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963621#M29825</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. For some reason I am unable to find 'sas-folders' deployment in my K8s cluster. I searched for the directory under&amp;nbsp;sas-bases/base/components and I couldn't find it there either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963621#M29825</guid>
      <dc:creator>kams</dc:creator>
      <dc:date>2025-04-07T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963622#M29826</link>
      <description>&lt;P&gt;sas-folders and sas-types are now merged into the sas-file-store service/pod.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963622#M29826</guid>
      <dc:creator>doug_sas</dc:creator>
      <dc:date>2025-04-07T19:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963710#M29833</link>
      <description>&lt;P&gt;My response was deleted?! I redacted information now .&lt;/P&gt;&lt;P&gt;{"level":"error","version":1,"source":"sas-batch","messageKey":"0xc000e7a5d0 The error returned by models/apis.getUsersAppDataFolderURI was caused by the following error: statusCode=404, errorCode=11500, message=&lt;STRONG&gt;No folder with the ID of \"\" was found&lt;/STRONG&gt;., details=[path: /folders/folders/@appDataFolder correlator:]","properties":{"logger":"service/batch/api/folders","req":"POST /batch/fileSets","tenant":"provider","caller":"logs/logs.go:117"},"timeStamp":"2025-04-07T19:33:12.054866+00:00","message":"0xc000e7a5d0 The error returned by models/apis.getUsersAppDataFolderURI was caused by the following error: &lt;STRONG&gt;statusCode=404, errorCode=11500, message=No folder with the ID of \"\" was found., details=[path: /folders/folders/@appDataFolder&lt;/STRONG&gt; }&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 13:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963710#M29833</guid>
      <dc:creator>kams</dc:creator>
      <dc:date>2025-04-08T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963790#M29836</link>
      <description>This seems to be saying the call to /folders/folders/@appDataFolder (which should resolve to the folder for the current user's application data directory, e.g. /Users/sasdemo/Application Data) is failing to do so.&lt;BR /&gt;&lt;BR /&gt;What happens when you call that endpoint in your browser? (&lt;A href="https://viya.example.com/folders/folders/@appDataFolder" target="_blank"&gt;https://viya.example.com/folders/folders/@appDataFolder&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;Does the folder /Users/userid/Application Data exist?&lt;BR /&gt;&lt;BR /&gt;I believe this call should create the folder if it's missing, suggesting that Application Data doesn't exist and the user does not have permission to create it. Do you have full permissions on your user folder?</description>
      <pubDate>Tue, 08 Apr 2025 20:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963790#M29836</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-04-08T20:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963798#M29837</link>
      <description>&lt;P&gt;Yes it does. As I pointed out in my initial query, we use OAuth. Does batch submission require a different method to authenticate if using OAuth (auth token for instance)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 22:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963798#M29837</guid>
      <dc:creator>kams</dc:creator>
      <dc:date>2025-04-08T22:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963882#M29841</link>
      <description>By "yes it does" are you saying that the folder /Users/userid/Application Data exists, or that you have full permissions on your user folder (/Users/userid), or both?&lt;BR /&gt;&lt;BR /&gt;When using Single-Sign On with OIDC or SAML, this is the authentication to SAS Logon Manager. SAS Logon Manager issues oauth tokens for use authenticating to the individual services, like batch.&lt;BR /&gt;&lt;BR /&gt;So, when you login to the CLI when using SSO/OIDC, you would use the command sas-viya auth loginCode. This would provide you with a link to access in your browser to get a code after having logged in using your SSO method. You provide the resulting code to the CLI, and it acquires an access-token and refresh-token from SAS Logon which it uses to call services through the various plugins. When not using SSO, you would use sas-viya auth login which would prompt for a user ID and password, and acquire a token using the supplied credentials. &lt;BR /&gt;&lt;BR /&gt;These authentication options are not specific to the batch plugin to the CLI or the batch service.</description>
      <pubDate>Wed, 09 Apr 2025 13:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/963882#M29841</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-04-09T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/964085#M29851</link>
      <description>&lt;P&gt;Wow!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked. Thank you so much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a mixed feeling about using this method for batch submissions as we used to have wrapper scripts for running batch programs in SAS 9.x We would simply ask users to append their programs with the wrapper script and internally it would execute the sas_en binary along with relevant parameters (queue name, Rlang option etc.). With SAS viya CLI, the process is now more complicated , as we'd have to generate the auth code by doing a SSO login on the browser, then come back and paste the code. I searched the community but I am not able to find an article that has steps to automate batch execution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thank you so much for your input. Appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 00:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/964085#M29851</guid>
      <dc:creator>kams</dc:creator>
      <dc:date>2025-04-11T00:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help running sas-viya batch job submissions</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/964132#M29852</link>
      <description>The CLI will make use of the refresh token to get a new access token so you wouldn't need to login each time, but login periodically (based on your configured refresh token validity, 14 days by default).&lt;BR /&gt;&lt;BR /&gt;The interactive SSO/authCode method is because authentication is not being performed by SAS but the SSO provider (OIDC/SAML). &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Apr 2025 17:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Help-running-sas-viya-batch-job-submissions/m-p/964132#M29852</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-04-11T17:48:21Z</dc:date>
    </item>
  </channel>
</rss>

