SAP Knowledge Base Article - Public

3494198 - New version is not read when executing DataSource.getMembers function

Symptom

  • You manually create a new version using the standard Version Management.
  • You expect the newly created version can be read when executing DataSource.getMembers function for the Version dimension.
  • But when you execute the DataSource.getMembers function, the new version is not available..
     

Environment

SAP ANALYTICS CLOUD 1.0;

Cause

This is caused by a known limitation.

Resolution

Please try the solution below:

Before invoking the table's getResultSet, secure all the dimension members via the table's getMembers, then filter these members based on specific conditions before resetting the table's filters using these filtered members.

var versions = Table_1.getDataSource().getMembers("Version", 99999);
// Cycle through versions to narrow down the required versions before setting dimensions on table
Table_1.getDataSource().setDimensionFilter("Version", versions);

See Also

KB 3393906 GetMember script function on PlanningModel Type library returns error for non-generic dimensions 

Keywords

KBA , LOD-ANA-UNS-DVP , Unified Story Developer Issues , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud all versions