Highlighted
Respected Contributor.
Respected Contributor.
325 views

Getting "incorrect format for type Int32 in path" Error!

I am getting Following Error when trying to pass a variable defined as Integer

Please note that Variable is extracted from VTS and when printed, it prints right Integer value = 33 in this case 

 

int VariableValueFromVTS ;

int intValiableforWS ;

VariableValueFromVTS  = lrvtc_increment("VTSColumnName",1,1);

...

 BEGIN_ARGUMENTS,
   "intValiableforWS={VariableValueFromVTS }",

.....

 

Getting following Error 

Error: InvokeMethod failure: Input string "{VariableValueFromVTS }" has an incorrect format for type Int32 in path ''.

Error: ExtractResultArg failure: Object reference not set to an instance of an object.

0 Likes
2 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Getting "incorrect format for type Int32 in path" Error!

Hi,

Sounds like the value is not an integer. Did you try casting it to validate?

Thanks,

Shlomi

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: Getting "incorrect format for type Int32 in path" Error!

please try below:

VariableValueFromVTS  = lrvtc_increment("VTSColumnName",1,1);

lr_save_int(VariableValueFromVTS, "paramInt");

...

 BEGIN_ARGUMENTS,
   "intValiableforWS={paramInt }",

.....

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.