NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Failed to evaluate resource selector. Illegal expression: resizeVolume.size_mb + 100

AdaikkappanArumugam
5,713 Views

I have a simple workflow that does calculation to determine the increment size of the volume to be resized.

I get the following error when every I have a expression of reference except for a numeric value. Any ideas on what I am missing ?

This is a custom filter at cm_volume dictionary level.

This is for cDOT/cMODE

 

Failed to evaluate resource selector. Illegal expression: resizeVolume.size_mb + 100
At command 'Resize volume', tab 'Volume', variable 'resizeVolume', property 'vserver'

 

Failed to evaluate resource selector. Illegal expression: resizeVolume.used_size_mb/TargetVolumeUsed - resizeVolume.size_mb
At command 'Resize volume', tab 'Volume', variable 'resizeVolume', property 'vserver'

 

The attached dar is from WFA 2.2

 

1 ACCEPTED SOLUTION

shailaja
5,689 Views

Yes, it is not possible to refer to the attributes of a variable (object) in the filter parameters/resource_selector that is tryign to load the variable/object itself.

You would need to modify the logic of the filter query so that the data you needed is obtained from the volume table directly in the filter

 

Thanks,

Shailaja

View solution in original post

3 REPLIES 3

AdaikkappanArumugam
5,700 Views

Is it becasue I reference the variable resizeVolume in the same command where the variable is being instanciated ? 

Some times it works and some times it doesnt ? 

For example when I have this expression  "resizeVolume.size_mb + 100" in the resource selection filter it doesnt work, where as the same in the other parameters tab of the command works.

Here is the screen shot of the same.

 

ResourceSelection.jpg

OtherParameters.jpg

 

Regards

Adai

shailaja
5,690 Views

Yes, it is not possible to refer to the attributes of a variable (object) in the filter parameters/resource_selector that is tryign to load the variable/object itself.

You would need to modify the logic of the filter query so that the data you needed is obtained from the volume table directly in the filter

 

Thanks,

Shailaja

AdaikkappanArumugam
5,675 Views

Thanks Shailaja, I baked the MVEL expression equivalent  into the filter itself by getting it from the Volume table in the WFA cache db and it works like a charm.

Thanks for the suggestion.

 

Regards

Adai

Public