Before you start
Confirm:- A saved reconciliation run exists, or you are ready to create one.
- The saved run has the correct source systems, schemas, and primary IDs.
- Source access is ready: SFTP servers for file inputs, or API sources such as Shopify and HotWax for date-range extraction.
- The schedule is known: hourly, daily, weekly, or monthly. You can also run an automation on demand, and pause it with its Active/Inactive status, unless it runs an audit’s checks.
- The remote file paths or API date window are known.
- The tenant timezone is set. A new automation takes the tenant’s zone when it is saved.
- Your user can edit tenant settings.
Automation choices
Steps
1
Open automations
Open Ask Darpan with
Cmd/Ctrl+K or by clicking Tara, the red panda in the corner. Search for Open Automations and open the result.2
Start the automation wizard
Choose Create Automation. Darpan asks What is this automation for?Choose Automate an existing reconciliation when the saved run already exists. Choose Create a new reconciliation and automate it when the run setup still needs to be created.
3
Choose the saved run
When Darpan asks Which saved run should this automation use?, select the saved reconciliation run.If the run is missing, go back to Set up a reconciliation run and create it first.
4
Choose the input mode
When Darpan asks How will Darpan get source data for …?, choose one input mode:
- SFTP scheduled file pickup for two remote file paths.
- API extraction for two API-backed sources and a date window.
5
Configure the sources
For SFTP scheduled file pickup, choose the SFTP server for the first file, enter the first remote path, choose the SFTP server for the second file, and enter the second remote path.For API extraction, choose the API source for each side when there is more than one, then answer How far back should each scheduled run reconcile? with a window: Previous day, Previous week, Previous month, Last N days, Last N weeks, Last N months, or Custom range. The Last N windows also ask for the number.
6
Choose the schedule
When Darpan asks When should Darpan run this automation?, choose Daily, Hourly, Weekly, or Monthly. Weekly adds a Day, Monthly adds a Date, and Daily, Weekly, and Monthly take a Time, which defaults to 06:00. Hourly takes a Minute.An automation whose schedule matches none of the presets, for example one saved through the API, shows Custom schedule and keeps that schedule until you pick a preset.The schedule shows the Timezone it runs in, and you can pick another. See Timezone below before relying on a specific hour.To run an automation on demand, use Run automation now on its dashboard. To stop scheduled runs without deleting the automation, switch the Active/Inactive toggle on its dashboard, so pausing one does not mean opening its edit form.
7
Choose where notifications go
When Darpan asks Where should Darpan send notifications for this automation?, choose My default space (<name>), Choose another space, Set up a new space, or No notifications. My default space appears only when you have set one in User Settings, and Choose another space only when the tenant has other active spaces. A new space asks for a name, the chat product (Google Chat or Slack), and a webhook URL or Slack channel. Only the active tenant’s own chat spaces are offered, and the backend refuses an automation pointed at another tenant’s space. Alerts name each failed rule that has a name; see Run-completion alerts.
8
Name and create the automation
Answer What should this automation be called? with a stable name that includes the compared systems and cadence. Choose Create Automation.
9
Validate the automation
Return to Open Automations and open the automation tile to view its dashboard. Confirm the Schedule, Window, and Next Run are as expected.Use the Run automation now action (the play icon) for a controlled test, then check Previous Runs for the execution status and differences.
Timezone
Each automation stores its own timezone, and its schedule and date window run in that zone. The schedule’s Timezone shows which one.- A new automation takes the tenant’s timezone when it is saved (UTC if the tenant has none), and keeps it.
- Changing the tenant timezone later does not move existing automations. They keep running in the zone they were saved with.
- A zone that does not match the tenant’s business day reconciles the wrong day: a daily window of “previous day” ends at midnight in the automation’s zone, not the tenant’s.
Automations behind an audit
An audit runs each check through an automation, and that automation runs on the audit’s schedule. Its dashboard shows Set by audit <name> under Schedule, linking to the audit’s settings. Such an automation is never scheduled, paused, or resumed on its own. Its Active/Inactive toggle is disabled, and saving a schedule change is refused with a message that names the audit; change the schedule in the audit’s settings instead. Run automation now still works.Watch a run, or stop it
An automation’s run opens on its result page while it is still going. Each stage appears as it starts, and a stage that is reading a source shows how many records it has read so far, so a long read shows its progress rather than looking stuck. Cancel run stops it. Confirm, and the button reads Stopping run… until the run reaches its next checkpoint, which can be in the middle of a read. The run ends cancelled, not failed.Delete an automation
The trash icon on an automation’s dashboard, Delete automation, archives the automation. It asks for confirmation, leaves the automation list, and never fires again, scheduled or otherwise. Nothing is deleted: its source setup and execution history stay. The app has no control to bring it back;facade.ReconciliationFacadeServices.restore#Automation restores it with its history intact.
To stop it running for a while and keep it on the list, set it Inactive instead.
Keep an automation in step with its run
An automation is a snapshot of a saved run, not a live pointer at one. It copies the compare scope, the input mode, both source definitions and each side’s filters at the moment you create it. Editing those on the run afterwards does not change the automation — which is deliberate, since a nightly job silently changing shape because someone edited a run during the day is worse than one that stays put. The cost of that choice is drift. So Darpan reports it: open an automation whose saved run has moved on and it names the fields that no longer match. Sync re-derives the snapshot from the saved run. It overwrites the compare scope, the input mode, both source definitions and the filters. It preserves everything the run cannot supply — the name, the schedule, the window, the chat space, the active status, and the SFTP server, path and pattern. Filters are part of the snapshot. A filter you add or remove on the run reaches the automation’s scheduled runs only after Sync. The automation names the side whose filters differ.Sync never re-points an automation at a different run. The saved run an automation was built from is fixed for its lifetime: an automation’s saved run cannot be changed — create a new automation for a different run. If the saved run has been deleted, sync refuses rather than guessing, and the automation has to be recreated.
darpan automation sync <automationId> does the same; see Set up the Darpan CLI.
Sync when the drift report names a field you care about. Ignore it when it names one you deliberately diverged from — the automation is allowed to differ from its run, and Darpan reports the difference rather than correcting it for you.
Troubleshooting
- If no saved runs appear, finish Set up a reconciliation run first.
- If an automation reports drift, compare the named fields against the saved run and use Sync only if you want the run’s version to win.
- If Sync is refused, the automation’s saved run no longer exists. Recreate the automation against a current run.
- If a schedule fires at an unexpected hour, or reconciles the wrong day, check the Timezone shown on the automation’s schedule. It is the zone the automation was saved with, which may no longer match the tenant’s. Correct it in the edit form. See Timezone.
- If an automation’s Active/Inactive toggle is disabled, or a schedule change is refused because it runs an audit’s checks, change the schedule in that audit’s settings. See Automations behind an audit.
- If saving or syncing is refused with a view-access message, your active tenant grants you view access only; automation changes need write access.
- If no SFTP source appears, create or reactivate the required SFTP server from Open SFTP Servers.
- If no API source appears, confirm the relevant system setup from Set up Shopify or Set up HotWax.
- If a scheduled automation produces no matches, check source date ranges, remote file paths, schemas, and primary IDs before changing the schedule.