Skip to main content

Get data count

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

This command retrieves the cloud data count of an Octoparse task. It allows you to check how many data records have been extracted for specific Octoparse tasks and store this count in a variable for further use in your workflow.


Parameter Values

Input parameters

Parameter

Description

Required

Options / Notes

Octoparse account

Select an access token obtained by "Log in to Octoparse"

Yes

Must be authenticated before using this command

Task ID

Enter Octoparse task ID(s) to check (separate multiple IDs with ";")

Yes

Multiple task IDs can be provided by separating them with semicolons

Store data count into

Store the data count into a new variable

Yes

This will create a variable containing the number of data records

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action produces a variable containing the count of cloud data records for the specified Octoparse task(s).


Using Variables in Conditions

You can use the {x} notation to insert previously created variables into parameter fields. This is particularly useful when you need to dynamically specify Task IDs based on previous operations or when you want to use the data count result in conditional logic for your workflow.


Notes

  • You must first authenticate with Octoparse using the "Log in to Octoparse" command before using this command.

  • Ensure the Task IDs provided are valid and exist in your Octoparse account.

  • For multiple tasks, the command will return the total count across all specified tasks.

  • The data count reflects only the cloud data in Octoparse, not local data.

Did this answer your question?