Page 1 of 1

Could not initialize process : Incorrect type for parameter

Posted: Fri Mar 18, 2022 11:56 am
by vasek1192
Hi,

I got stuck with this little problem and would appreciate any kind of help or advice.

I am executing a subprocess through another process. The master process supplies the subprocess with parameters from data source (cube) variables.
The subprocess then executes CellInctrementN function into different cube.

ExecuteProcessLine:

Code: Select all

ExecuteProcess('L_OO_JN_6MK_zadavaci_JN_6MK_Vkladaci', 'psVerze', psVerze, 'psMaska', sMaska, 'psRozlozenost', sRozlozenost, 'psZavod', sZavod, 'psDruhyVozu', sDruhy_Vozu, 'psTemata', sTemata, 'psMesic', vsMetrika, 'psMetrika', vsG_OO_JN_6MK, 'pnValue', vnValue);

CellIncremenetN line

Code: Select all

CellIncrementN(pnValue, sTargetCube, vsH_Zeme, vsH_Rozlozenost, vsH_Vozy_6MK, vsG_Zavod, vsG_Druhy_Vozu, vsG_Temata, psMesic, psverze, vsMetrika);
I am getting this error:

"Could not initialize process : Incorrect type for parameter 9 ("pnValue") of process "L_OO_JN_6MK_zadavaci_JN_6MK_Vkladaci", string expected"

All the measure elements in TargetCube are numeric. The data source value from the first cube is set as numeric (viz pic1). The parameter in the second cube is set as numeric (viz pic1). I am using CellIncrementN. I have no idea why he would require string value?

Any help or advice?

Data source (First cube, first process):
Source 1 problem.jpg
Source 1 problem.jpg (72.61 KiB) Viewed 1207 times
Parameters in subprocess:
parameters.jpg
parameters.jpg (46.04 KiB) Viewed 1207 times

Re: Could not initialize process : Incorrect type for parameter

Posted: Fri Mar 18, 2022 12:36 pm
by gtonkin
What is vnValue set to in the parent process? Could be that it is being set to a string.

Re: Could not initialize process : Incorrect type for parameter

Posted: Fri Mar 18, 2022 12:39 pm
by vasek1192
Hi, vnValue is set as numeric in the datasource (viz first picture in original post). Some of the measure elements are string but they are filtered off from the sourceview.