<?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: Calling Macro %irm_rest_manage_instance failed in SAS Risk Management</title>
    <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/683936#M382</link>
    <description>&lt;P&gt;Yep, that's for sure the reason. I also faced such issues and just then explicitely used the macros which were shipped with IRM 3.6 instead of the ones from the RRM content package.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 12:06:27 GMT</pubDate>
    <dc:creator>ArnoldP</dc:creator>
    <dc:date>2020-09-15T12:06:27Z</dc:date>
    <item>
      <title>Calling Macro %irm_rest_manage_instance failed</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654223#M367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with RRM 6.1 / IRM 3.6 and I would like to create a job flow instance in batch using SAS Enterprise Guide.&lt;/P&gt;&lt;P&gt;Therefore I run the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "&amp;amp;fa./source/sas/ucmacros/*.sas";
%irm_setup(source_path = &amp;amp;irm_home./, fa_id = &amp;amp;fa_id.);

%let irm_host=http://myserver.net;
%let irm_port=7980;
%let instance_Key=;

%irm_rest_create_jobflow_instance(
                  instance_name     = myInstance
                  , description     = myInstance-Description
                  , entityID        = myEntity
                  , entityRoleKey   = 2 /* 1=solo, 2=group */
                  , category        = regulatory_risk_management
                  , jobflowFile     = rrm_capital_calculation.bpmn
                  , baseDate        = &amp;amp;my_month.
                  , configSetId     = crd4
                  , federatedAreaID = &amp;amp;fa_id.
                  , host            = &amp;amp;irm_host. 
                  , port            = &amp;amp;irm_port.
                  , debug           = false
                  , outvar          = instance_Key
               );

%put instance_Key = &amp;amp;instance_Key.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That works perfectly fine:&lt;BR /&gt;The instance will be created and started automatically and in the macro variable &amp;amp;instance_Key I get the instance ID of the new instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I would like to share the instance by running the following macro call:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%irm_rest_manage_instance (instanceKey = &amp;amp;instance_Key.
                          , host      = &amp;amp;irm_host. 
                          , port      = &amp;amp;irm_port.
                          , outds     = status_share
                          , action    = Share
                          );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately that does not work as expected.&lt;/P&gt;&lt;P&gt;When executing the code, an error occurs and the script aborts:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;...
NOTE: PROCEDURE HTTP used (Total process time):
4                                                          The SAS System                          Monday, June  8, 2020 08:32:00 AM

      real time           0.42 seconds
      cpu time            0.00 seconds
      

NOTE: restartLUA was set to Y
NOTE: _RISKEXEC_RC_ (before lua call) is -2

NOTE: TKLua terminated.
NOTE: Previous Lua state destroyed.
NOTE: Lua initialized.
1                                                          The SAS System                          Monday, June  8, 2020 08:38:00 AM

ERROR: module 'entry_point_caller' not found:
	no field package.preload['entry_point_caller']
	no file '/opt/sas/config/Lev1/AppData/SASIRM//rrm.v201909/source/lua/entry_point_caller.lua'
	no file '/opt/sas/config/Lev1/AppData/SASIRM//rrm.v201909/source/lua/entry_point_caller.luc'
	no file '/usr/local/lib/lua/5.2/entry_point_caller.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './entry_point_caller.so'
stack traceback:
	[C]: in function '_G.require'
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE LUA used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      
NOTE: _RISKEXEC_RC_ (after lua call) is -2
ERROR: Calling Lua functions "irmRestManageInstance" in module "sas.risk.irm.irm_rest_parser".
ERROR: A system fatal error has occurred. No further processing will be executed.
&amp;gt;&amp;gt;&amp;gt;--------------------------------------------------------------------------
&amp;gt;&amp;gt;&amp;gt; Abending at macro call stack.
&amp;gt;&amp;gt;&amp;gt; irm_rest_manage_instance-&amp;gt; rsk_call_riskexec-&amp;gt; irmfw_terminate
&amp;gt;&amp;gt;&amp;gt;--------------------------------------------------------------------------
ERROR: Execution canceled by an %ABORT CANCEL statement.
NOTE: The SAS System stopped processing due to receiving a CANCEL request.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What is strange - nevertheless the error message, the instance will get shared.&lt;BR /&gt;So the problem is actually just the error message (and the abortion of the script).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know - what is the reason for that error message and what do I do wrong?&lt;BR /&gt;And how can I do to avoid the above error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Helmut&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 06:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654223#M367</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-06-08T06:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Macro %irm_rest_manage_instance failed</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654507#M368</link>
      <description>&lt;P&gt;Possible reasons for failure&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The instance has some code running from personal FA. Such instances cannot be shared.
&lt;UL&gt;
&lt;LI&gt;This does not seem to be the reason since the log shows a registered FA.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;The FA path registered in SMC has some issue.
&lt;UL&gt;
&lt;LI&gt;The log shows double forward slash (//). Please verify that this does not pose problem.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Some authentication issue while getting ticket.
&lt;UL&gt;
&lt;LI&gt;The complete log is not shown. Please see to it that the result of PROC HTTP does not show any problem.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none of the above reasons are applicable, I will suggest that you wait for the instance to finish execution or at least let it run for some time before calling the manage-instance REST API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not worked much in the IRM REST API Lua code so the above are the only points that I can suggest for you to look into. Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Himanshu&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 12:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654507#M368</guid>
      <dc:creator>himanshucb</dc:creator>
      <dc:date>2020-06-08T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Macro %irm_rest_manage_instance failed</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654995#M369</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Himanshu,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your feedback.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The instance has some code running from personal FA. Such instances cannot be shared.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This does not seem to be the reason since the log shows a registered FA.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You are right - that is not the case. The FA I am using is &lt;STRONG&gt;not a personal FA&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;The FA path registered in SMC has some issue.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The log shows double forward slash (//). Please verify that this does not pose problem.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I fixed the path specification so that the double quote disappears, but unfortunately still the same problem occurs:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;...&lt;BR /&gt;ERROR: module 'entry_point_caller' not found:
	no field package.preload['entry_point_caller']
&lt;FONT color="#000080"&gt;&lt;STRONG&gt;	no file '/opt/sas/config/Lev1/AppData/SASIRM/rrm.v201909/source/lua/entry_point_caller.lua'
	no file '/opt/sas/config/Lev1/AppData/SASIRM/rrm.v201909/source/lua/entry_point_caller.luc'&lt;/STRONG&gt;&lt;/FONT&gt;	no file '/usr/local/lib/lua/5.2/entry_point_caller.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './entry_point_caller.so'&lt;BR /&gt;...&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;Some authentication issue while getting ticket.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;The complete log is not shown. Please see to it that the result of PROC HTTP does not show any problem.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately the log of PROC HTTP does not show any problem.&lt;BR /&gt;Here is the complete log:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;23 %irm_rest_manage_instance (instanceKey = &amp;amp;instance_Key.&lt;BR /&gt;24 , host = &amp;amp;irm_host.&lt;BR /&gt;25 , port = &amp;amp;irm_port.&lt;BR /&gt;26 , outds = status_share&lt;BR /&gt;27 , action = Share&lt;BR /&gt;28 );NOTE: The file IN is:
      Filename=/opt/sas/rrm/work/SAS_work21AF0000CCB0_xlsast120/#LN00070,
      Owner Name=sassrv,Group Name=sassrv,
      Access Permission=-rw-r--r--,
      Last Modified=09Jun2020:08:26:32

NOTE: 1 record was written to the file IN.
      The minimum record length was 14.
      The maximum record length was 14.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      


&lt;FONT color="#000080"&gt;&lt;STRONG&gt;NOTE: PROCEDURE HTTP used (Total process time):
      real time           0.33 seconds
      cpu time            0.00 seconds
     &lt;/STRONG&gt; &lt;/FONT&gt;

NOTE: restartLUA was set to Y
NOTE: _RISKEXEC_RC_ (before lua call) is -2

NOTE: TKLua terminated.
NOTE: Previous Lua state destroyed.
NOTE: Lua initialized.
1                                                          The SAS System                         Tuesday, June  9, 2020 08:26:00 AM

ERROR: module 'entry_point_caller' not found:
	no field package.preload['entry_point_caller']
	no file '/opt/sas/config/Lev1/AppData/SASIRM/rrm.v201909/source/lua/entry_point_caller.lua'
	no file '/opt/sas/config/Lev1/AppData/SASIRM/rrm.v201909/source/lua/entry_point_caller.luc'
	no file '/usr/local/lib/lua/5.2/entry_point_caller.so'
	no file '/usr/local/lib/lua/5.2/loadall.so'
	no file './entry_point_caller.so'
stack traceback:
	[C]: in function 'require'
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE LUA used (Total process time):
2                                                          The SAS System                         Tuesday, June  9, 2020 08:01:00 AM

      real time           0.00 seconds
      cpu time            0.01 seconds
      
NOTE: _RISKEXEC_RC_ (after lua call) is -2
ERROR: Calling Lua functions "irmRestManageInstance" in module "sas.risk.irm.irm_rest_parser".
ERROR: A system fatal error has occurred. No further processing will be executed.
&amp;gt;&amp;gt;&amp;gt;--------------------------------------------------------------------------
&amp;gt;&amp;gt;&amp;gt; Abending at macro call stack.
&amp;gt;&amp;gt;&amp;gt; irm_rest_manage_instance-&amp;gt; rsk_call_riskexec-&amp;gt; irmfw_terminate
&amp;gt;&amp;gt;&amp;gt;--------------------------------------------------------------------------
ERROR: Execution canceled by an %ABORT CANCEL statement.
NOTE: The SAS System stopped processing due to receiving a CANCEL request.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;If none of the above reasons are applicable, I will suggest that you wait for the instance to finish execution or at least let it run for some time before calling the manage-instance REST API call.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately my problem is independent of how long the instance is/was running.&lt;BR /&gt;The problem occurs also for an instance that has been successfully calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I already mentioned before - the weired thing is, that the sharing works.&lt;/P&gt;&lt;P&gt;After running my code, the instance is shared in SAS IRM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nevertheless I get an error an the SAS script aborts...&lt;/P&gt;&lt;P&gt;And I don't know how to avoid just the error message and the abortion of the script....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Helmut&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 06:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/654995#M369</guid>
      <dc:creator>H-elmu-t</dc:creator>
      <dc:date>2020-06-09T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Macro %irm_rest_manage_instance failed</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/655413#M370</link>
      <description>&lt;P&gt;Thanks, Helmut.&lt;/P&gt;
&lt;P&gt;I believe that the IRM REST API scripts delivered with RRM content package that you are using might be old or some part of it might be incompatible with IRM 3.6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IRM 3.6 comes with latest REST API scripts. You have the option to use them or you can raise a ticket on support site if you want to dig it further.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 09:36:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/655413#M370</guid>
      <dc:creator>himanshucb</dc:creator>
      <dc:date>2020-06-09T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Macro %irm_rest_manage_instance failed</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/683936#M382</link>
      <description>&lt;P&gt;Yep, that's for sure the reason. I also faced such issues and just then explicitely used the macros which were shipped with IRM 3.6 instead of the ones from the RRM content package.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/Calling-Macro-irm-rest-manage-instance-failed/m-p/683936#M382</guid>
      <dc:creator>ArnoldP</dc:creator>
      <dc:date>2020-09-15T12:06:27Z</dc:date>
    </item>
  </channel>
</rss>

