Registering variables in SAS® Market Risk Solutions returns "ERROR: The name ... that was read from portfolio data ... is not the name . . . "


During the environment creation process in SAS Market Risk solutions, you might occasionally encounter errors, specifically when registering variables from position data. This issue typically occurs in SAS® 9.4M7 (TS1M7) and only on Microsoft Windows platforms, which affects certain releases of SAS® Risk Dimensions®.

In this scenario, the error messages typically resemble the following:

ERROR: The name "N_BETA" that was read from portfolio data source "PORTFOLIO_xxxx" for instrument "RMOI003T_xxxx" is not the name of an instrument variable of instrument type "xxxx_STOCK".

 

ERROR: The name "N_BETA_YN" that was read from portfolio data source "PORTFOLIO_xxxx" for instrument "RMOI003T_xxxx" is not the name of an instrument variable of instrument type "xxxx_STOCK".

Cause

The investigation revealed that the issue was not related to the portfolio data or the variable definitions. Instead, the issue arose because the variables from the ms_types.sas7bdat data set were not being correctly registered in SAS Risk Dimensions before the portfolio data was processed. As a result, the system failed to recognize these variables during the portfolio data registration.

You can verify that the required variables exist by examining the ms_types.sas7bdat data set, which is located in the configuration folder. For example, for INSTTYPE='xxxx_STOCK', the data set contains the variables: N_BETA, N_BETA_YN, and N_CLPR.

Also, this issue appears to be specific to Windows and is linked to how SAS Risk Dimensions handles multiple instrument types within a single READTYPES statement. An internal conflict might occur when reading different instrument types together.

Workaround