Local Data

1. Overview

Topic

Description

Application

PAW Resource

Purpose

Viewing, editing, querying with SQL and transferring as a package the tables in the local database on the Resource machine

Storage

Encrypted SQLite database specific to this computer and Windows user

License

The company's license must include the Local Data extension

Local Data is used to store intermediate results of workflows on the Resource machine without needing an external database server. The Local Data window lets you inspect and manage this data interactively.

Note: Local Data uses the same database as the workflow activities (DataTable To Local Data, Local Data To DataTable, etc.). The Local Data window gives manual access to these tables through PAW Resource.


2. Who can use it?

Condition

Description

Application login

You must be signed in to PAW Resource in developer mode. When you sign in with the robot user (Api User, Production machine), that is, in production mode, the button is not shown (see PAW Resource).

License

The company's license must include the Local Data extension. The license is checked at sign-in; if the license changes, sign in again.

No license

The Local Data button in the header is not shown

Windows user

The database is in the Windows user's %AppData% folder. To see the tables a robot wrote, sign in on the robot's computer with the same Windows account, in developer mode.


3. When is it used?

Scenario

Description

Debugging

Checking the tables written by the workflow row by row

Operations

Inspecting or cleaning up data accumulated on a robot machine (signing in with the robot's Windows account, in developer mode)

Schema management

Adding, renaming, deleting tables / columns

SQL analysis

Filtering, joining, summarizing with custom queries

Cross-environment transfer

Moving data to another Resource machine with a .pawld package


4. Opening and closing

4.1. Opening

  1. Sign in to PAW Resource in developer mode.

  2. In the header, click the database icon next to the language and theme buttons (tooltip: Open Local Data Browser). The button has no text.

  3. The Local Data window opens and connects to the database; an empty query tab is ready.

  4. The status bar shows the number of loaded tables.

The window is single-instance: if it is already open, it is not created again but brought to the front; if it is minimized, it is restored. It is a separate window and appears on the taskbar.

4.2. Closing behavior

Action

Result

The window's X button (or Alt+F4)

The window is hidden; open tabs and the SQL you wrote are kept. When you open it again, the table list is not refreshed automatically; use Refresh Tables.

Sign Out, returning to the sign-in screen or exiting the application

The Local Data window closes. Tabs, SQL and unapplied Browse edits are lost; the data in the database stays.


5. Interface layout

Local Data Window

Local Data Window

Section

Content

Left panel: Tables

Tree of tables and columns (Name and Type columns) and the Filter box. Next to the filter box are the ⋮ (Actions: Export / Import / Delete All) and Refresh Tables icons. The panel can be auto-hidden.

Tab strip

Query and Browse tabs; + (New Query) on the right

Query tab

At the top, the SQL editor with line numbers and syntax highlighting; its header has the Copy to Clipboard and Execute (F5) icons. Below, the Results section: query results, change messages and errors appear here.

Browse tab

Editable grid; the Results header has the Add Row, Delete Row, Refresh, Apply Changes and Discard Changes icons

Status bar

Number of loaded tables and a summary of the last operation

All buttons in the window are icons without text; their names appear in the tooltip.


6. Schema panel (tables and columns)

The Tables tree on the left shows the user tables and columns in the database. Commands are in the menu that opens when you right-click a table or column.

6.1. Basic operations

Operation

How

Refresh tables

Refresh Tables icon (tooltip: Reload the table list from the database.)

Filter

Type in the Filter box; it searches table and column names and the column type, and matching tables are expanded. Clear filter (×) empties the box.

Browse a table

Right-click the table and select Browse

Rename a table

Right-click → Rename, or F2

Delete a table

Right-click → Delete, or the Delete key. Confirmation: Delete table "X"? This cannot be undone.

Add a column

Right-click the table → Add Column

Rename a column

Right-click the column → Rename, or F2

Delete a column

Right-click → Delete, or the Delete key. Confirmation: Delete column "C" from table "T"? The column of a single-column table cannot be deleted.

Copy name to clipboard

Ctrl+C on the selected table or column; the name is copied as [Name]

6.2. Supported column types (UI)

The Add Column window has the Name and Type fields. The Type list contains these values in this order; the default is Text:

Type

Description

Text

Text

Numeric

Numeric (general)

Real

Decimal number

Integer

Integer


7. Query tabs (SQL)

7.1. New query

  • + (New Query) on the right of the tab strip opens an empty SQL tab.

  • The tab title defaults to Query 1, Query 2, ….

  • To rename a tab, double-click or right-click its header; an empty name is not accepted.

  • To close a tab, click its X or middle-click the tab. If the tab contains SQL, Are you sure, you want to close? is asked.

  • Query tabs can be reordered by dragging. Tabs are kept only in memory; they are lost when PAW Resource restarts.

7.2. Running SQL

Method

Description

Execute (F5) icon (in the SQL header)

Runs the SQL in the active query tab

F5

Same action; only in a query tab

Ctrl+Space

Autocomplete: table and column names, alias.column and SQL keywords

Rule

Description

Text is selected

Only the selected SQL is run

No selection

All SQL in the tab is run

Multiple statements

Statements separated by semicolons are run in order; the result of each statement is shown in a separate Result N tab. If a statement fails, execution stops; changes made by the earlier statements are not rolled back.

SELECT, WITH, PRAGMA, EXPLAIN

Rows are shown in the result grid

INSERT / UPDATE / DELETE / DDL

A change or status message is shown in the Results section

CREATE, DROP, ALTER, RENAME

The Tables tree on the left is refreshed automatically; open Browse tabs are not refreshed

7.3. Results

Information

Example

Returned rows

Query returned 25 rows in 120 ms.

Duration

in milliseconds or seconds

INSERT / UPDATE / DELETE result

Applied 3 updates to "T". (the same pattern for inserts and deletes)

Other statements (CREATE, etc.)

Statement completed. Rows affected: 0.

The Copy to Clipboard icon in the SQL header copies the SQL text of the tab.


8. Browse tabs (table editing)

Browse mode lets you edit a table's rows directly in the grid.

8.1. Opening

  • In the Tables tree, right-click the table and select Browse.

  • Tab title: {TableName} - Browse

  • One Browse tab is kept per table. Selecting Browse again for the same table brings the existing tab to the front and reloads the data; unapplied edits are lost.

  • Browse tabs are shown before query tabs, in alphabetical order and in blue; they cannot be dragged.

8.2. Row operations

Operation

Description

Cell editing

Change the value in the grid (not yet written to the database)

Add Row

Adds a new row

Delete Row

Marks the selected rows for deletion; also in the menu that opens when you right-click a row

Apply Changes

Saves pending inserts / updates / deletes after a confirmation

Discard Changes

Reverts unapplied edits after a confirmation

Refresh

Reloads the table from the database; unapplied edits are lost

8.3. Saving rules

Rule

Description

Before Apply

Changes only wait in the grid

Apply / Discard

A confirmation is asked first: Apply {summary}? or Discard {summary}? (e.g. 3 updates, 1 insert)

Applying

The changes are saved in one go (deletes first); if one fails, none are saved

Button state

Apply Changes and Discard Changes are enabled only when there are pending changes

Closing the tab

Confirmation is requested if there are unsaved changes

8.4. Grid helpers

These commands are in the menu that opens when you right-click a column header; query result grids have them too. The first column of the grid (#) shows the row number.

Operation

Description

Size Column to Fit

Adjusts the column's width to its content

Size All Columns to Fit

Adjusts all columns to their content


9. Export, import and bulk delete

Accessed from the ⋮ icon in the Tables panel (tooltip: Export, import, or delete all tables.).

9.1. Export (.pawld)

Step

Description

1

Select Export

2

Specify the target file; the default name is paw.extension.localdata.export.pawld

3

Enter a password to encrypt the package; the password cannot be empty (Password is required.)

4

When the operation completes, the Export completed. message appears

Package content

Description

Database copy

Copy encrypted with the package password

Manifest

The names and SQL of the open query tabs; Browse tabs are not included in the package

Copying the raw .db file to another machine does not work. Always use Export / Import to move data.

9.2. Import

Step

Description

1

Select Import

2

Select the .pawld file

3

Confirmation: Import will replace the current Local Data database. Continue?

4

Enter the package password. If the password is wrong, the window stays open and shows Unable to open the file with the provided password.

5

If successful, Import completed.

Warning

Description

Existing data

Import replaces the existing local data with the package content

Open tabs

All open query and Browse tabs close; the query tabs from the package open instead

Validation

If the package cannot be validated, the previous database is restored

Empty password

Password is required.

9.3. Delete All

Step

Description

1

Delete All

2

Confirmation: Are you sure you want to delete all Local Data tables?

3

All user tables are deleted in one operation and the database file is compacted; open Browse tabs close and query results are cleared

4

All local data tables were deleted.


10. Storage and security

Topic

Description

Location

%AppData%\RPA WORK\PAW Resource\Extension Local Data\ (specific to the Windows user)

File name

paw.extension.localdata.db; -wal and -shm files are created next to it

Encryption

SQLite3 Multiple Ciphers (SQLCipher 4 compatible); the key is derived from this computer's machine key

Portability

The raw DB file cannot be opened on another PC; .pawld + password are required

Purpose

Protecting the local tables on disk against unauthorized reading

Old database

An old unencrypted database is encrypted automatically when it is first opened

The encryption key is derived from the machine identity. Therefore, use only password-protected Export packages for backup / transfer. If Set Machine Key is used in PAW Resource, the database can no longer be read; export first.


11. Relation to workflow activities

The Local Data window and workflow activities share the same Resource local database. PAW Robot and UiPath activities access the database through PAW Resource on the computer; there is no other database path.

Activity group (example)

What it does

DataTable ↔ Local Data, Create Distinct Local Data

Creating / reading tables

Complex Local Data …

Reading or operations with free-form SQL

Get Local Data Names / Get Column Names / Get Row Count

Metadata

Local Data Exists / Column Exists

Checking whether a table or column exists

Rename Local Data / Rename Column / Add Column / Drop Column

Schema management

Delete Local Data / Delete All Local Data

Deleting tables

Excel / CSV / MsSql / MySql / Oracle ↔ Local Data

Transfer with external sources (the MySql and Oracle activities write To LocalData as one word)

Ftp Get Folder Contents

Writes the content list of an FTP folder to a Local Data table

Usage tip

Description

Naming

The Local Data name you give in the activity = the table name shown in the Local Data window

Append

When appending to an existing table, the column names must be exactly the same, including case; otherwise Column names does not match with local data. With Append off, an existing table is deleted and recreated.

Debugging order

Run the workflow → open the Local Data window → Refresh Tables → verify the table with Browse or with SQL


12. Common SQL examples

-- Get all rows
SELECT * FROM "CustomerList";

-- Filter
SELECT * FROM "CustomerList" WHERE "Status" = 'Active';

-- Row count
SELECT COUNT(*) AS Count FROM "CustomerList";

-- Specific columns
SELECT "CustomerNo", "FullName" FROM "CustomerList";

If table or column names contain spaces, special characters or SQL keywords, enclose the name in double quotes or square brackets: "Table Name", [Table Name]. The Local Data window uses the [Name] form when it copies names and in autocomplete.


13. Tips and limits

Topic

Description

License

The Local Data button appears only in developer mode and for companies whose license includes the Local Data extension

Machine-bound encryption

Do not copy the .db file directly; use .pawld

Closing with X

Tabs are kept; they are lost on Sign Out or when the application exits

Saving in Browse

Grid changes are not persisted until you Apply them

Import

Replaces all existing local data; consider exporting first

Delete All

Cannot be undone; take a backup first in a critical environment


14. Troubleshooting

Symptom

Possible cause

What to do

No Local Data button

Signed in in production mode, or the company's license does not include Local Data

Sign in in developer mode; check the license. If the license was just added, sign in again

The window does not open

Unexpected application error

The error is shown at the top of the PAW Resource window. Restart Resource; if it still fails, report it to the support team

The window opens but cannot be used

The database could not be opened (e.g. the machine key changed)

The error appears in the status bar. Restart Resource; if it still fails, report it to the support team

Tables appear empty

No data written yet, the list was not refreshed, or you signed in with a different Windows account

Use Refresh Tables; sign in with the Windows account the robot runs under; verify the workflow's Local Data activities and the table name

Import fails

Wrong password / corrupt package

Check the password; export the package again

The DB does not open on another machine

The raw file is encrypted with the machine key

Export/import with .pawld

Browse changes are lost

Refresh, closing the tab, reopening Browse, renaming a table or column, adding or deleting a column, Delete All or exiting before the changes are applied

Apply Changes first


15. Quick reference — commands

Command / action

Description

Refresh Tables

Reloads the schema from the DB

New Query (+)

Opens an empty SQL tab

Execute / F5

Runs SQL (F5 only in a query tab)

Ctrl+Space

Autocomplete

F2 / Delete / Ctrl+C

Renames / deletes / copies the name of the selected table or column

Browse

Opens the table in an editable grid (right-click the table)

Apply Changes

Saves Browse edits

Discard Changes

Reverts Browse edits

Export

Produces a .pawld package

Import

Replaces the existing data with a .pawld package

Delete All

Deletes all tables