SAP Knowledge Base Article - Public

3037631 - Error "value is an unused property" when use getVariableValues in the script in Analytics Application Designer

Symptom

Error "value is an unused property" occurs when use getVariableValues in the script.

For example:

var data = Table_1.getDataSource().getVariableValues("dimension")[0].value;

Environment

SAP Analytics Cloud 1.0

Reproducing the Issue

Use getVariableValues in the script.

Cause

Type mismatch.

Resolution

Change the code like below:

var data = Table_1.getDataSource().getVariableValues("dimension")[0];

var data1 = cast(Type.SingleVariableValue, data).value;

Keywords

SAC, SAP Analytics Cloud, Analytics Application Designer, API, Analytics Designer, Analytic Designer , KBA , LOD-ANA-AD-COR , SAC Application Designer , LOD-ANA-AD , Analytics Designer , How To

Product

SAP Analytics Cloud 1.0