<?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 SAS Viya Connection failed and Error invoking action in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-Connection-failed-and-Error-invoking-action/m-p/616681#M8126</link>
    <description>&lt;P&gt;I am trying to run autotune on some datasets for evaluation, but for some reason, on one small dataset it runs fine, but on a larger one, I get a bunch of errors. I run the online version of SAS Viya, I haven't downloaded anything.&lt;/P&gt;&lt;P&gt;The errors I get with the bigger dataset are "Error invoking action" and "Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied"&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mysess sessopts=(nworkers=1);

libname mycaslib cas casref=mysess;

filename myfldr filesrvc folderPath = '/Public/Projects/';
%include myfldr ('SAS2017-0514_benchmark_datasets.sas'); /*source2;*/


/* Tune a Decision Tree to each benchmark problem */
/* -----------------------------Diabetes -------------------------------- */
proc cas noqueue;
    print "---TWONORM / TUNE DECISION TREE ---";
    autotune.tuneDecisionTree result=r /
        trainOptions={
            table={name='Twonorm', vars={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, 
                                                {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'},{name="Y"}}}, 
			inputs={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, 
                                                {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'}},
            target='Y', 
            nominals={'Y'}, 
            casOut={name='dt_twonorm_model', replace=true}, 
            nbins=20, maxlevel=11, crit='GAINRATIO', maxbranch=2, leafsize=5, 
            missing='USEINSEARCH', minuseinsearch=1, 
            binorder=true, varimp=true, mergebin=true, encodeName=true
        }
	tunerOptions={nsubsessionworkers=1, nparallel=10, popsize=31, maxTime=300}
    ;
    print r;
run;
quit;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Session option NWORKERS can only be set at session startup.

ERROR: The action stopped due to errors.

ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Insufficient resources to perform the analytic operation.

ERROR: The action stopped due to errors.

ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error in the tuneDecisionTree action.

ERROR: The action stopped due to errors.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Objective evaluation 2 was terminated.

NOTE: The CAS statement request to update one or more session options for session MYSESS completed.

NOTE: Libref MYCASLIB was successfully assigned as follows:

NOTE: The infile IN is:

NOTE: Invalid data for Y in line 1 1-4.

NOTE: Invalid data for X1 in line 1 6-9.

NOTE: Invalid data for X2 in line 1 11-17.

NOTE: 5301 records were read from the infile IN.

NOTE: The data set MYCASLIB.BANANA has 5301 observations and 3 variables.

NOTE: DATA statement used (Total process time):

NOTE: The infile IN is:

NOTE: Invalid data for X1 in line 1 7-17.

NOTE: Invalid data for X2 in line 1 19-30.



NOTE: 5002 records were read from the infile IN.

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.

NOTE: The data set MYCASLIB.WAVEFORM has 5001 observations and 41 variables.

NOTE: DATA statement used (Total process time):

NOTE: Active Session now MYSESS.

NOTE: Autotune is started for 'Decision Tree' model.

NOTE: Autotune option SEARCHMETHOD='GA'.

NOTE: Autotune option MAXTIME=300 (sec.).

NOTE: Autotune option SEED=458531802.

NOTE: Autotune objective is 'Misclassification Error Percentage'.

NOTE: Autotune number of parallel evaluations is set to 10, each using 0 worker nodes.

NOTE: Added action set 'decisionTree'.

NOTE: Added action set 'decisionTree'.

NOTE: Action 'dtreeTrain' failed due to insufficient resources.

NOTE: PROCEDURE CAS used (Total process time):





1     OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75    
76    cas mysess sessopts=(nworkers=2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2020 14:26:23 GMT</pubDate>
    <dc:creator>paulaxa1</dc:creator>
    <dc:date>2020-01-11T14:26:23Z</dc:date>
    <item>
      <title>SAS Viya Connection failed and Error invoking action</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-Connection-failed-and-Error-invoking-action/m-p/616681#M8126</link>
      <description>&lt;P&gt;I am trying to run autotune on some datasets for evaluation, but for some reason, on one small dataset it runs fine, but on a larger one, I get a bunch of errors. I run the online version of SAS Viya, I haven't downloaded anything.&lt;/P&gt;&lt;P&gt;The errors I get with the bigger dataset are "Error invoking action" and "Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied"&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mysess sessopts=(nworkers=1);

libname mycaslib cas casref=mysess;

filename myfldr filesrvc folderPath = '/Public/Projects/';
%include myfldr ('SAS2017-0514_benchmark_datasets.sas'); /*source2;*/


/* Tune a Decision Tree to each benchmark problem */
/* -----------------------------Diabetes -------------------------------- */
proc cas noqueue;
    print "---TWONORM / TUNE DECISION TREE ---";
    autotune.tuneDecisionTree result=r /
        trainOptions={
            table={name='Twonorm', vars={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, 
                                                {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'},{name="Y"}}}, 
			inputs={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, 
                                                {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'}},
            target='Y', 
            nominals={'Y'}, 
            casOut={name='dt_twonorm_model', replace=true}, 
            nbins=20, maxlevel=11, crit='GAINRATIO', maxbranch=2, leafsize=5, 
            missing='USEINSEARCH', minuseinsearch=1, 
            binorder=true, varimp=true, mergebin=true, encodeName=true
        }
	tunerOptions={nsubsessionworkers=1, nparallel=10, popsize=31, maxTime=300}
    ;
    print r;
run;
quit;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Session option NWORKERS can only be set at session startup.

ERROR: The action stopped due to errors.

ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Insufficient resources to perform the analytic operation.

ERROR: The action stopped due to errors.

ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.

ERROR: Error invoking action 'dtreeTrain'.

ERROR: Error in the tuneDecisionTree action.

ERROR: The action stopped due to errors.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.

WARNING: Objective evaluation 2 was terminated.

NOTE: The CAS statement request to update one or more session options for session MYSESS completed.

NOTE: Libref MYCASLIB was successfully assigned as follows:

NOTE: The infile IN is:

NOTE: Invalid data for Y in line 1 1-4.

NOTE: Invalid data for X1 in line 1 6-9.

NOTE: Invalid data for X2 in line 1 11-17.

NOTE: 5301 records were read from the infile IN.

NOTE: The data set MYCASLIB.BANANA has 5301 observations and 3 variables.

NOTE: DATA statement used (Total process time):

NOTE: The infile IN is:

NOTE: Invalid data for X1 in line 1 7-17.

NOTE: Invalid data for X2 in line 1 19-30.



NOTE: 5002 records were read from the infile IN.

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.

NOTE: The data set MYCASLIB.WAVEFORM has 5001 observations and 41 variables.

NOTE: DATA statement used (Total process time):

NOTE: Active Session now MYSESS.

NOTE: Autotune is started for 'Decision Tree' model.

NOTE: Autotune option SEARCHMETHOD='GA'.

NOTE: Autotune option MAXTIME=300 (sec.).

NOTE: Autotune option SEED=458531802.

NOTE: Autotune objective is 'Misclassification Error Percentage'.

NOTE: Autotune number of parallel evaluations is set to 10, each using 0 worker nodes.

NOTE: Added action set 'decisionTree'.

NOTE: Added action set 'decisionTree'.

NOTE: Action 'dtreeTrain' failed due to insufficient resources.

NOTE: PROCEDURE CAS used (Total process time):





1     OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75    
76    cas mysess sessopts=(nworkers=2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 14:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-Viya-Connection-failed-and-Error-invoking-action/m-p/616681#M8126</guid>
      <dc:creator>paulaxa1</dc:creator>
      <dc:date>2020-01-11T14:26:23Z</dc:date>
    </item>
  </channel>
</rss>

