
Prerequisites
- A General Validation Environment that is set up.
- A test set with the Tests you want to run.
- A Microsoft Entra administrator, to approve one permission in step 2.
Step 1: Register an application
Your pipeline signs in to General Validation as an application you own.-
In the Microsoft Entra admin center, go to
Entra ID > App registrations and select New registration.

-
Enter a name and select Register.

-
On the Overview page, copy the Application (client) ID and the
Directory (tenant) ID. You need both in step 4.

Step 2: Give the application access to General Validation
-
In the application’s menu, select API permissions, then Add a
permission.

-
Select APIs my organization uses, search for
General Validation, and select General Validation Cloud API.
-
Select Application permissions, tick GV.APIContributor, and select
Add permissions.

-
Select Grant admin consent, next to Add a permission, and confirm.
The status changes to Granted.

Step 3: Create a client secret
-
In the application’s menu, select Certificates & secrets.

- Select New client secret, enter a description, and select Add.
- Copy the secret’s Value. Entra shows it only once.
The secret goes into your Fabric connection in the next step and nowhere
else. General Validation never receives it.
Step 4: Create the connection to General Validation
-
In Fabric, select the gear icon, then Manage connections and gateways.

-
Select New.

-
Select Cloud and fill in the form.

- Select Create.
Step 5: Create the connection that runs validation
-
Select New again, then Cloud, and fill in the form.

- Select Create.
Step 6: Allow your pipeline’s workspace to run validation
-
Open the workspace with your pipeline and select Workspace
settings.

-
Select Workspace identity. If the workspace has no identity yet,
select + Workspace identity to create one.

-
Open your General Validation workspace, the one whose name starts with
General Validation, and select Manage access.

-
Select Add people or groups. Search for the name of your pipeline’s
workspace, choose Contributor, and select Add.

Contributor on the General Validation workspace can also read the Results
Lakehouse, so grant it only to pipeline workspaces you trust with those
Results. Allow a few minutes after granting the role before your first run
while Fabric applies it.
Step 7: Copy the request for your test set
-
In General Validation, select Tests and open your test set.

-
Under Run from your pipeline, select Copy. The request already
includes your test set’s ID.

Step 8: Add the two activities to your pipeline
Add them after the activity that finishes loading your target Table.-
Open your pipeline. On the Activities tab, select Web and name the
activity
Prepare validation.
-
On the activity’s Settings tab, fill in the fields.
In the body, use

@{guid()}as theid, and give each Table’s workspace ID, Lakehouse ID, and path. Both IDs are in the Lakehouse’s address in Fabric. -
On the General tab, expand Advanced and tick Secure output.

-
On the Home tab, select Invoke pipeline. Name the activity
Run validationand connect it to run afterPrepare validation.
-
On its Settings tab, choose Fabric, the
Run General Validationconnection, your General Validation workspace, and the pipeline named General Validation. Then set the parameters.
-
On the General tab of
Run validation, expand Advanced, tick Secure input (soreport_tokenis not logged), and set an activity timeout. Keep Retry at0on bothPrepare validationandRun validation.
Step 9: Run your pipeline
Run your pipeline. When the Tables match,Run validation succeeds and your
pipeline continues. When they don’t, Run validation fails with the verdict
and a link to the Run, and the activities after it don’t run.
Open Results in General Validation to see each Run.

General Validation needs read access to each Table it compares. If a Run
ends with Could not read a Table, open the Table Pair in General
Validation, copy the snippet from Access for validation and run it in a
Fabric notebook as a workspace Admin (or send the request it shows), and run
your pipeline again.
Step 10: Run your pipeline on a schedule
This step is optional. Fabric starts your pipeline at the times you choose.- Open your pipeline. On the Home tab, select Schedule, then Add Schedule.
- Choose how often it runs, its start and end dates, and your time zone, then select Save.
- To get Fabric’s email when a scheduled run fails, add people or groups under Failure notifications.
Run validation
fails whenever the Tables don’t match. Set up
Monitoring and alerts
so General Validation tells you about the first failure. See
Scheduled pipeline runs
on Microsoft Learn.
Troubleshooting
- First run fails with “unable to acquire user token”. The first time your
pipeline workspace’s identity invokes the validation pipeline, Fabric can
fail to start it with the message
"Job failed to start: unable to acquire user token". The Invoke pipeline activity can take about half an hour to report this. Validation did not run, and the Run stays Prepared until it ends in Error. Run your pipeline again, which prepares new Runs. - Keep Retry at
0on both activities. A retried Web activity prepares a second Run, and a Run that has already started cannot be run again. - Sequential
ForEachbehavior. Inside a sequentialForEach, items after a failed validation still run, and theForEachactivity then fails with the first failure’s message.