Validation error on Action List parameters

Hello,
I have created some .NEt custom FB6 custom actions that do also validate the parameters with "ValidateNonEmptyProperty" method calls on the action properties.
It works really well, but there is a behaviour I do not understand:
If the and action property contains an Action List Parameter, I allways get the error:
  "Error: Failed to Expand PropertyName: Invalid Expression: Variable: ActionListParameter - does not Exist!"
 

I then have to manually click on each of the errors and afterwards it works without any problems.
I am doing something wrong with validation? At a first glance it looks like a "bug", but I am not sure if I do something that is not supperted.
I am using FB 6.3.0.2026

 

Hi Quirrel,

Are you performing an expand expression on the property value within the validation logic? You should avoid expanding variables within the validation code as it’s possible the variables won’t exist or won’t have a value yet.

Regards,
Paul.

as stated above, I am using the ValidateNonEmptyProperty() Method, which is provided with the VSoft.CustomActionApi.BaseAction Namespace.
I think this method is doing an expand on contained variables and that is why the error comes, but I can not change this method an thought it is doing it right.

Here an Example how I use it:

[code]
using System;
using VSoft.CustomActionApi;
namespace MyFinalBuilderActions
{
public class CreateProductAction: StandardAction
{
string InternalProperty {get;set;}
public override bool Execute()
{
//do something here
}
public override void Validate()
{
ValidateNonEmptyProperty("CustomActionProperty"); return;
}
}
}
[/code]

Hope you understand the problem and can give me a hint how to use it correctly.

just to follow up: theb problem is solved, you were right I missed a function call that expands the expressions in the validate method, nothing wrong with the API.
Thanks for the help.
regards,
quirrel