Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Error script on BI Platform, not in local mode

$
0
0

Hello community,

 

I have a problem with one function in BI Platform mode.

 

This is the head of my function for a comparison between 2 tables:

 

GLOBAL_SCRIPTS_1.compareWithMargin(element.internalKey, DS_1, "53R9E2Y87NR4ELGWD6Y0OUGA6", DS_2, "53RJMINFDV5V82GTZVK6LWSMM", 1)

 

FYI, parameters :

- Internal key of a dimension (for a loop)

- DS_1 : datasource alias #1 (table1)

- String : Technical name of measure #1

- DS_2 : datasource alias #2 (table2)

- String : Technical name of measure #2

- Int : margin of error (convert in % in function body)

 

My problem is my last parameter. This method is working in local mode but not on BI Platform. I'm sure of this because i have another function (the same, but without margin of error) and i have no problem.

 

I think maybe the problem is a format error (i tried int (1) or float (1.00) but without success).

 

When i launch the application, i have an error application but i'm don't know how i can see the log when the application is started from BI Platform.

 

Any idea for this problem ? I found nothing compares in SCN

 

 

This is my method (if it can helps..) :

 

var value1 = 0.00;

var value2 = 0.00;

var valueMIN = 0.00;

var valueMAX = 0.00;

 

 

value1 = table1.getData(measure1, { "ZCUSTAREA": Dimension}).value;

if (value1 == 0)

{

  value1 = 0;

}

// Get value for the same keyfigure and the same custom area in the second table

value2 = table2.getData(measure2, { "ZCUSTAREA": Dimension}).value;

// If custom area selected is missing in the second table, display "no value"

if (value2 == 0)

{

  value2 = 0;

}

 

 

// Calcul mininum and maximum value accepted according the margin of error

valueMIN = value2 * (1-errorMargin/100);

valueMAX = value2 * (1+errorMargin/100);


Viewing all articles
Browse latest Browse all 9069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>