UiPath Documentation
marketplace
latest
false
UiPath logo, featuring letters U and I in white

Marketplace user guide

Last updated Apr 1, 2026

Required

Activity Creator

Activity Creator interface showing required property settings

Generated Code

Design-time validations are generated in CacheMetadata for all required properties. This means a workflow will not run unless values are provided for these fields.

...

 #region Protected Methods
protected override void CacheMetadata(CodeActivityMetadata metadata)
{
  if (FirstNumber == null) metadata.AddValidationError(string.Format(Resources.ValidationValue_Error, nameof(FirstNumber)));
  if (SecondNumber == null) metadata.AddValidationError(string.Format(Resources.ValidationValue_Error, nameof(SecondNumber)));
  base.CacheMetadata(metadata);
}
...
...

 #region Protected Methods
protected override void CacheMetadata(CodeActivityMetadata metadata)
{
  if (FirstNumber == null) metadata.AddValidationError(string.Format(Resources.ValidationValue_Error, nameof(FirstNumber)));
  if (SecondNumber == null) metadata.AddValidationError(string.Format(Resources.ValidationValue_Error, nameof(SecondNumber)));
  base.CacheMetadata(metadata);
}
...

Effect in UiPath Studio

All required input properties are added to the designer automatically. If any are left empty, a validation error is shown in the top-right corner of the activity.

UiPath Studio activity designer showing required input properties and validation error

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated