Skip to main content

Use Flair Doctor

Use the Doctor tools to find and repair patterned data or configuration problems in your Salesforce organization. Each tool targets one flair data area.

Who can use this?

Salesforce Admins and HR Admins in the flair HR app in Salesforce. The Doctor tab requires the Use Doctor Tools custom permission, and most tools also require the Flair Doctor permission set.

Before you begin​

  • Make sure the user has the Use Doctor Tools custom permission. Flair Manager and Flair Employee Management include it.
  • Assign the Flair Doctor permission set to the user who runs the tools. It grants access to every tool except TimeSheet Doctor and Accrual Scheduler, which Flair Manager grants.
  • Identify the affected records and the problem that you expect the tool to repair.
  • When a scan is available, review its results before running a repair.
  • For a large production repair, back up the affected data and test the tool in a Sandbox first.

Open the Doctor tab​

  1. In Salesforce, open the flair HR app.
  2. Open HR Admin.
  3. Click the Doctor tab. Each tool appears as a tile with its name and a short description.

The Doctor tab of HR Admin with a tile for each repair tool

If the Doctor tab is missing, the user doesn't have the Use Doctor Tools custom permission.

Choose a tool​

Select the tool that matches the affected data:

ToolWhat it checks or repairs
Salary object accessLists the Salesforce users who can view the Amount fields for salaries, one-time compensation, additional compensation, and payroll items.
Company Structure CheckChecks the positions hierarchy for reporting loops. Positions in a loop can't be displayed correctly on the Company Structure tab.
Workload DoctorFinds and repairs time sheet days that reference the wrong workload, typically after a time zone change or a transition between calendar years.
TimeSheet DoctorFinds and repairs time sheet days with missing time zone information, which can break time calculations and reporting.
Duplicate Absence Allowances RemovalFinds and removes duplicate absence allowances, keeping the ones that come from a time balance withdrawal.
Re-run migrationsRe-runs a migration from the post-installation script in the context of the current user.
Auto Breaks Deduction DoctorFinds and fixes time entries whose break deductions don't match the time framework rules.
Time Entry Range Violations DoctorLists time entries outside the employee's workload range or employment term range.
Employment DoctorSynchronizes every employment record with employee data.
Accrual SchedulerRe-runs the absence accrual scheduler for a specific day.
Recovered Position Structure HistoryDownloads the report of positions whose parent position was reconstructed during package installation.

The available actions differ by tool. Review the displayed issues, and apply a fix only when the tool offers one for the problem.

Synchronize employments with employee data​

Employment Doctor processes every employment record in the background. For each one, it updates the employee's start date, end date, and position from their employments, and recalculates the employee's manager from the position hierarchy.

  1. On the Doctor tab, click Employment Doctor.
  2. Click Fix Employments. A progress indicator shows the background job.
  3. When the job finishes, open an affected employee record and confirm that the Manager field is correct.

Remove duplicate absence allowances​

Duplicate Absence Allowances Removal groups each employee's absence allowances by absence category, start date, end date, and amount. In a group that contains an allowance from a time balance withdrawal, it keeps the time balance withdrawal allowances and removes the others. A group without a time balance withdrawal allowance stays untouched.

danger

The repair deletes allowance records. Run a scan and review the count before you run the repair.

  1. On the Doctor tab, click Duplicate Absence Allowances Removal.
  2. Optional: To ignore the amount when the tool compares allowances, select Delete allowances even with different amounts.
  3. Click Scan. The result shows the number of duplicate absence allowances found.
  4. Review the count.
  5. To delete the duplicates, click Fix. The result shows the number removed.
  6. Click Close.

The Duplicate Absence Allowances Removal modal with the Scan and Fix buttons and a scan result

The scan can take a while in a large Salesforce organization.

Repair time sheet days with a missing time zone​

  1. On the Doctor tab, click TimeSheet Doctor.
  2. Click Scan. The result shows the time sheet days with missing time zone information.
  3. Click Fix to repair them.
  4. Click Close.

The TimeSheet Doctor modal with the Scan and Fix buttons and a scan result

Find time entries outside a workload or employment range​

Time Entry Range Violations Doctor is read-only. It lists time entries for one month that fall outside the employee's workload or employment term.

  1. On the Doctor tab, click Time Entry Range Violations Doctor.
  2. Select the month to analyze.
  3. Optional: To narrow the results, enter an employee name in the search field.
  4. Review the Warnings column. Each entry shows Not inside workload range, Not inside employment term range, or both.
  5. To correct an entry, click its time entry or time sheet link. The record opens in a new tab.

The Time Entry Range Violations Doctor modal listing time entries with a Not inside workload range warning

Re-run the accrual scheduler for a day​

Use Accrual Scheduler when absence allowances didn't accrue on a specific day. The tool creates a scheduled task for each employee accrual policy that matches the day.

  1. On the Doctor tab, click Accrual Scheduler.
  2. In Date, select the day to re-run.
  3. Click Run. A confirmation appears. The background jobs take a few minutes to process.

The Accrual Scheduler modal with a date selected and the Run button enabled

Download the recovered position structure report​

When flair was installed or updated, a one-time recovery batch reconstructed each position's parent position from the employee's manager. Recovered Position Structure History gives you the report of that recovery. Auto-fixed rows include the previous parent position so you can revert the change. Ambiguous rows were left untouched and need manual review.

  1. On the Doctor tab, click Recovered Position Structure History.
  2. Click Download report. The CSV report downloads.
  3. Review the ambiguous rows, and correct those positions on the Company Structure tab.

If no report exists, the modal shows No recovery report has been generated for this org.

The Recovered Position Structure History modal with the report title, its Generated on date, and the Download report button

Run another tool​

For Salary object access, Company Structure Check, Workload Doctor, Re-run migrations, or Auto Breaks Deduction Doctor:

  1. On the Doctor tab, click the tool that matches the affected data.
  2. Run the available check or scan.
  3. Review every reported issue.
  4. Apply an available fix only when it matches the problem.
  5. Refresh the affected records, and verify the result.

Use the Doctor tools for patterned problems across multiple records. Use a manual correction when one record requires business judgment.

Troubleshooting​

The Doctor tab is not available​

  1. Confirm that the user has the Use Doctor Tools custom permission, for example through Flair Manager or Flair Employee Management.
  2. Ask a Salesforce Admin to review the user's access.

A tool shows an error when it runs​

Confirm that the user has the Flair Doctor permission set. For TimeSheet Doctor and Accrual Scheduler, confirm that the user has Flair Manager.

A tool does not fix the issue​

  1. Compare the problem with the tool's behavior in Choose a tool.
  2. Check the affected records for another underlying issue.
  3. Use a manual correction for an isolated edge case.
  4. If the issue persists, contact flair Support.

A repair produces an unexpected result​

  1. Review the records changed by the tool.
  2. Compare the changes with the tool's documented behavior.
  3. Verify related employee, absence, position, salary, or workload records.
  4. If your backup supports it, restore the affected data.