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

Marketplace user guide

Last updated Apr 1, 2026

Train model

Using the source form documents stored in your specified blob storage container (Azure Storage Blob Uri), the Train Model activity calls the Form Recognizer Train Custom Model API to create and train a new custom model.

After completing the train model operation, the activity outputs the identifier assigned to the model as a String (Model Id) that you can use as an input variable in subsequent activities (e.g., Get Model Info).

How it works

The following steps and message sequence diagram is an example of how the activity works from design time (that is, the activity dependencies and input/output properties) to run time.

  1. Complete the Setup steps.
  2. Add the Azure Form Recognizer Scope activity to your project.
  3. Add the Train Model activity inside the Azure Form Recognizer Scope activity.
  4. Enter values for the Input properties.
  5. Create and enter a String variables for the Output properties.
  6. Run the activity.
    • Your input properties are sent to the Train Model API.

    • The API returns the String value to your output property variables.

      docs image

Properties

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common

DisplayName

The display name of the activity.

AttributesDetails
TypeString
RequiredYes
Default valueTrain Model
Allowed valuesEnter a String or String variable.
NotesN/A

Input

Azure Storage Blob Uri

The shared access signature (SAS) URI of the Azure blob storage container that contains the source form documents to use in the training model.

AttributesDetails
TypeString
RequiredYes
Default valueEmpty
Allowed valuesEnter a String or String variable.
NotesTo get the URI value, follow the Get shared access signature steps in the Setup guide (for quick reference, see image below). Supported form document formats: PNG, JPEG, and PDF (all other format types are ignored).

docs image

Options

Include Subfolders

Indicates the source form documents are stored in a subfolder in the Azure blob storage container.

AttributesDetails
TypeCheckbox
RequiredNo
Default valueNot Selected
Allowed valuesSelected or Not Selected
NotesBy default, the train model operation only uses form documents located in the root of your Azure blob storage container. If your form documents are stored in a subfolder, select this option.
Source Filter Prefix

Limits the training data set to form documents that have a name beginning with the specified value.

AttributesDetails
TypeString
RequiredNo
Default valueEmpty
Allowed valuesEnter a String or String variable.
NotesIf your Azure blob storage container contains various form documents, you can specify which ones to include in this training model by entering the shared portion of the document names. For example, if you enter "Invoice", only the form documents with a name beginning with "Invoice" are used.
Use Label File

If selected, the model uses label files.

AttributesDetails
TypeCheckbox
RequiredNo
Default valueNot Selected
Allowed valuesSelected or Not Selected
NotesN/A

Misc

Private

If selected, the values of variables and arguments are no longer logged at Verbose level.

AttributesDetails
TypeCheckbox
RequiredNo
Default valueNot Selected
Allowed valuesSelected or Not Selected
NotesN/A

Output

Model Id

The identifier assigned to the training model.

AttributesDetails
TypeString
RequiredNo (required to use the output data in subsequent activities)
Default valueEmpty
Allowed valuesEnter a String variable
NotesThe variable you create for this property can be used as an input variable in other Azure Form Recognizer activities (e.g., Get Model Keys, Get Model Info).
  • How it works
  • Properties
  • Common
  • Input
  • Options
  • Misc
  • Output

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated