SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 65989: An error occurs when you use a model from SAS® Model Manager with SAS® Event Stream Processing

DetailsHotfixAboutRate It

When you use SAS® Event Stream Processing Studio, you might encounter the following error when it deals with a model from SAS Model Manager.

[5037] The SAS Model Manager ASTORE code could not be loaded onto the ESP server because the ESP server was not able to add object to the SAS Micro Analytic Service store

This issue is caused by the corresponding champion model in a model repository that does not have its ASTORE code copied to a preconfigured directory. Typically, that directory  is at  /opt/sas/viya/config/data/modelsvr/astore.

You can examine this champion model by following these steps:

  1. Open the model.

  2. Click the Files tab.

  3. Open the AstoreMetadata.json file, which contains code similar to the following:
    [
      {
        "name": "_1LA3UXOR00CO31HZUKMS9RF673",
        "caslib": "ModelStore",
        "uri":
    "/dataTables/dataSources/cas~fs~cas-shared-default~fs~ModelStore/tables/_1LA3UXO
    R00CO31HZUKMS9RF673",
        "key": "FE93CC8BD5CEA0FBD1C2D4763785B9FC403DBB83"
      }
    ]

    Instead, it should code that looks similar to this:

    [
      {
        "name": "_1LA3UXOR00CO31HZUKMS9RF673",
        "uri":
    "/dataTables/dataSources/cas~fs~cas-shared-default~fs~ModelStore/tables/_1LA3UXO
    R00CO31HZUKMS9RF673",
        "key": "FE93CC8BD5CEA0FBD1C2D4763785B9FC403DBB83",
        "caslib": "ModelStore",
        "location":
    "file:///models/astores/viya/_1LA3UXOR00CO31HZUKMS9RF673.astore",
        "host": "fall.edmt.sashq-d.openstack.sas.com",
        "fullPath":
    "/opt/sas/viya/config/data/modelsvr/astore/_1LA3UXOR00CO31HZUKMS9RF673.astore",
        "state": "success"

      }
    ]

To work around this issue, return to SAS Model Manager, manually clear the champion model flag, and reset that model as a champion model.

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 Manager (on SAS Viya)Linux for x6415.3Viya
* 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.