SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 70403: A SAS® Model Implementation Platform API call returns the error “Internal error ... “” could not be updated”

DetailsHotfixAboutRate It

The SAS Model Implementation Platform Application Programming Interface (API) %mip_rest_replace_mdls_in_mdlgrp call returns the following error:

ERROR: Internal error
ERROR: The model group “<ModelGroupName>” could not be updated. 
ERROR: !SASROOT/lua/modimpsvr/sas/risk/modimp/rskmimpl_utils.lua:38: Expecting argument 1 to function set_rest_error to be one of table: 0x7f922c42a5a0=
{
  [1]="number"
} but found nil.
stack traceback:
[C]: in function 'assert'
...

Workaround

To circumvent this issue, complete the following steps:

  1. Take a backup (copy) of the following file:
    SASHome/SASFoundation/9.4/lua/modimpsvr/sas/risk/modimp/rskmimpl_rest_api.lua
  2. Edit the file above and locate the following line (line number 669):
    local ETag = string.match(header_string, 'ETag: (W/".+?")')
  3. Replace the line above with the following:
    local ETag = string.match(header_string, 'ETag: (W/"[^"]+")'

Note: If you have customized Lua files in SASCustomCode/, then that file needs to be modified instead of the file in SASFoundation.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Model Implementation Platform ServerMicrosoft® Windows® for x643.2
Microsoft Windows 8 Enterprise 32-bit3.2
Microsoft Windows 8 Enterprise x643.2
Microsoft Windows 8 Pro 32-bit3.2
Microsoft Windows 8 Pro x643.2
Microsoft Windows 8.1 Enterprise 32-bit3.2
Microsoft Windows 8.1 Enterprise x643.2
Microsoft Windows 8.1 Pro 32-bit3.2
Microsoft Windows 8.1 Pro x643.2
Microsoft Windows 103.2
Microsoft Windows 113.2
Microsoft Windows 95/983.2
Microsoft Windows 2000 Advanced Server3.2
Microsoft Windows 2000 Datacenter Server3.2
Microsoft Windows 2000 Server3.2
Microsoft Windows 2000 Professional3.2
Microsoft Windows NT Workstation3.2
Microsoft Windows Server 2003 Datacenter Edition3.2
Microsoft Windows Server 2003 Enterprise Edition3.2
Microsoft Windows Server 2003 Standard Edition3.2
Microsoft Windows Server 2003 for x643.2
Microsoft Windows Server 20083.2
Microsoft Windows Server 2008 R23.2
Microsoft Windows Server 2008 for x643.2
Microsoft Windows Server 2012 Datacenter3.2
Microsoft Windows Server 2012 R2 Datacenter3.2
Microsoft Windows Server 2012 R2 Std3.2
Microsoft Windows Server 2012 Std3.2
Microsoft Windows Server 20163.2
Microsoft Windows Server 20193.2
Microsoft Windows Server 20223.2
Microsoft Windows XP Professional3.2
Windows 7 Enterprise 32 bit3.2
Windows 7 Enterprise x643.2
Windows 7 Home Premium 32 bit3.2
Windows 7 Home Premium x643.2
Windows 7 Professional 32 bit3.2
Windows 7 Professional x643.2
Windows 7 Ultimate 32 bit3.2
Windows 7 Ultimate x643.2
Windows Millennium Edition (Me)3.2
Windows Vista3.2
Windows Vista for x643.2
Linux for x643.2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.