Sync records with scheduled jobs 

Sync records with scheduled jobs 

SFX/Xero syncin Salesforce runs under aspecific user assignedto scheduled jobs. If this user is deactivated, the scheduled jobs willstop working, causing sync failures. 

This article explains thesteps to ensure sync continues smoothlywhen a user assigned to scheduled jobs is deactivated. 

 

Issue 

  • If the user assigned to SFX/Xero scheduled jobs isdeactivated, the sync willnot run. 

  • Existing scheduled jobscannot be reassignedto another user. 


Steps to Resolve the Issue 


Step 1:DeleteScheduled Jobs Assigned to the Deactivated User 

  1. Go toSetup → Scheduled Jobs. 

  1. Locate the scheduled jobs assigned to the deactivated user( SFXSync 1, SFX Sync 2, SFX Sync 3, SFX Sync 4). 

  1. ClickDeltodeletethe jobs . 
     

Grouped object 
 

 

Step 2: Login as an Active User with Permissions 

  • Ensure there is anactive Salesforce userwith thenecessary permissions. 

  • This user will take over the SFX/Xero sync responsibilities. 

 

Step 3: Reconnect the Active User to Xero 

  1. Log in to Salesforce using the active user account. 

  1. Navigate to theSFX Setup page. 

  1. Click theReconnect to Xerobutton. 

  1. You will be redirected to the Xero login page – log in with your Xero credentials. 

  1. After logging in, select theappropriate Xeroorganization. 

      Click Save to complete the connection. 

      After successfully connecting , click "Sync Xero Invoices" button – After successfully connecting, sync Invoices, which will recreate jobs with his login userid 

 

Grouped object 

 
 

Note:Once this is done, the system will automatically create scheduled jobs under the active user’s profile. 

 

 

 

Step 4: Verify Scheduled Jobs 

  1. Go toSetup → Scheduled Jobs. 

  1. Confirm that new scheduled jobs are automatically created under theactive user. 

  1. Check that theNext Run Timeand job status are correct. 

 

Step 5: Test the Sync 

  • Perform amanual SFX/Xero syncto ensure everything works as expected. 

  • Check logs or sync results to confirm no errors occur. 

 

 

 

    • Related Articles

    • Product Sync

      1. Introduction This document provides a step-by-step guide on how to sync products from Salesforce to Xero using the SFX - Product Sync feature. The process is a one-way sync, where Salesforce acts as the master system, pushing product data to Xero. ...
    • When and how does data sync occur?

      Upon creating invoice or updating an invoice in Salesforce, the data is immediately synced with Xero automatically on real time basis. Any payment updates in Xero is automatically synced to Salesforce, however the interval between Xero to Salesforce ...
    • Manual Journal sync from Xero to Salesforce

      Overview The Manual Journal sync allows journals created in Xero to be automatically reflected in Salesforce. This ensures financial data stays consistent across both platforms without the need for manual updates. How it works 1. Create a Manual ...
    • Sync Configuration

      Sync Configuration enables users to control synchronisation of Invoices/Bills, Purchase Orders, Quotes, Credit Notes, and Pre-payments on a global level and also on account level. The [ Flush/Delete all config ] button allows to clear current config ...
    • Salesforce to Xero – Invoice History Notes Sync

      This article explains how Notes or History records created in Salesforce can be synced and displayed in Xero against an invoice. Flow Configuration Steps Step 1: Create Record Triggered Flow Navigate to Setup → Flows Click New Flow Select Record ...