Print Friendly and PDF
Follow

Leadspace for Salesforce: FAQs

Index

  • Sync Activity/Bulk/Record stuck “In Progress”
  • Exception when creating a new Sync Definition
  • Permission set wasn’t created on fresh install
  • Job didn't create Sync Activity Bulks
  • Job takes too long, is it stuck?
  • A Sync Activity got stuck in “In Progress” and after 24 hours from start time status isn’t updated
  • Leadspacesync:DML currently not allowed
  • After creating sync definition and the activity is running, it shows 0 records
  • How do I know if an activity reached the polling phase?
  • Can’t find ApexjobId on apex job list
  • Sync Activity is stuck on In Progress and an Error log was created: “List has no rows for assignment to SObject”

Sync Activity/Bulk/Record stuck “In Progress”

Option 1) Check if Sync Activity is still running

  1. Go to Setup → Apex Jobs

  2. Check for your activity process step:

  • Can be i the n Retry phase, because of LS “bad” status response (such as http 5xx). Retry logic depends on returned status code from LS, up to 10 times before finally failing the activity and its children.

  • If it’s in the Polling results phase, it’s because LS didn’t complete the enrichment process and returned http 204 “No content”. After 24 hours there’s a “finalize” job that is responsible to update activity status and its children (bulks, records).

  • If it’s in the Finalize phase, then it most likely finished its processing and the Activity and its children should have been updated.

  • If an exception has stopped the job for some reason, you will see error message on “Status Detail” column (ex. CPU time limit).

527711fe-eb8e-4411-8175-1fc01ed9913e.png

Option 2) Check Sync Activity and Bulks for LS Logs

  1. Go to the Sync Activity and check if LS Logs were created that are of Error type and check if it explains what went wrong

  2. Go to the Sync Activity Bulks that are still in “In Progress” and check if they have new LS Logs of type “Error” that explains the issue

  3. Go to LS Logs tab (some LS Logs failed in internal processes and therefore were not linked to their jobs) and Check the latest LS Logs of type Error

Exception when creating a new Sync Definition

Option 1) if null Exception -> Check if you didn't map input field mapping

  1. Go in Tabs → Input Field Mapping

  2. Check if you see a message where it says “Map NOT saved”

  3. Click on the “Save” button to save a default map

Option 2) if null Exception -> Check if you added all remote site settings as described in “installation guide”

  1. Go to Setup→ Remote Site Settings

  2. Check if you have your own domain listed, if not add it

Permission set wasn’t created on fresh install

Option 1) Check LS Logs

  1. Make sure in Setting Page that “Enable Logs” is checked

  2. Go in Tabs → LS Logs

  3. Check if there is a new LS Log regrading a Remote Site Settings Issue

  4. Copy the URL in the log and add it to Remote Site Settings page

Option 2) Re-save Credentials

  1. Go in Tabs → Settings

  2. Re-save Credentials

  3. Check if all permission set created (As in installation guide)

Job didn't create Sync Activity Bulks

Option 1) Check if Sync Activity is still running

  1. Go to Setup → Apex Jobs

  2. Check for your activity process step:

  • If it's in the Retry phase, then it got a bad status code from LS and has entered the retry Batch where depends on the status code given will retry up to 10 times before finally failing the activity and its child relationships

  • If it’s in the Polling phase, then it got a bad status code from LS and is retrying to complete the batch, this process can take up to 24 hours before finally failing the activity and its children

  • If it’s in the Finalize phase, then it most likely finished its processing and the Activity and its children should have been updated

  • If an exception has stopped the batch from continuing you will see an error message on “Status Detail” column (ex. CPU time limit)

Option 2) Check for LS Logs

  1. Go to Sync Activity and check if there is any “Error” log type

  2. Go to the problematic Sync Activity Bulk and check if there is any “Error” log type

  3. Check on general “LS Logs” tab-> change view from “Recently Viewed” to “All” -> Check for recent “Error” log type

Job takes too long, is it stuck?

Option 1) Check for LS Logs (same as described above)

Option 2) Check for Apex Jobs

  1. Go to Sync Activity and check the field “ApexJobId” for the id of the latest polling job that was recorded

  2. Go to Setup -> Apex Jobs

  3. Look for the id that is identical the one you saved from step (1)

  4. Check if there is an error message under “Status Detail” column

If you didn't find see the job “Batch_FinalizeRecords” then your job is still running.

A Sync Activity got stuck in “In Progress” and after 24 hours from start time status isn’t updated

Option 1) Check for LS Logs (same as described above)

Also, look for an error log with the following description:
“Leadspace Job Handler found the following Activities: (YOUR ACTIVITY’S ID)”

Option 2) Check if the “Leadspace Job Handler” is scheduled

  1. Go to Setup -> Scheduled Jobs

  2. Look in the list for “Leadspace Job Handler”

If the job exists, check if there’s at least one hour difference between “started” and the “next scheduled run” time.

If the job doesn't exist, you can create it by validating client’s credentials or creating a new periodic Sync Definition.

Leadspacesync:DML currently not allowed

Option 1) Check the user has permission sets

  1. Go to Setup -> Permission Sets

  2. Choose the permission set relevant to the current user

  3. Press on “Manage Assignments” button

  4. Verify the user is assigned the relevant permission set (admin/manager)

After creating sync definition and the activity is running, it shows 0 records

Option 1) Check if Input Field Mapping is set

  1. Go in Tabs → Input Field Mapping

  2. Check if you see a message where it says “Map NOT saved”

  3. Click on the “Save” button to save a default map

Option 2) Check that the Search Criteria is still connected to Sync Definition

  1. Go to the Sync Definition -> Related tab

  2. Verify there is at least one object under “Search Criteria”

Option 3) Check that the Search Criteria is valid/really returns results

  1. Go to the Sync Definition related page

  2. Verify there are objects under “Search Criteria”

  3. Assemble the components of Search Criteria objects into a query and run query in “Developer Console” to see if it returns any results

How do I know if an activity reached the polling phase?

Option 1) Check Sync Activity Object’s Fields

  1. Once a job reaches the polling phase, it is updating “ApexJobId” value, copy it without the last 3 digits:

9ac4e113-fa45-4a1e-95dc-160c5cfdf4fd.png

2. Search for the apex job id under: Setup-> “Apex Job” → “Apex Job ID

Look for “Batch_PollingJob_ls” per the id copied from step 1.

65c3f1fd-cc9c-4c07-b539-30995fec8d87.png
Can’t find ApexjobId on apex job list

Check if the value holds additional letters

Remove the last 3 letters and re-search

Sync Activity is stuck on In Progress and an Error log was created: “List has no rows for assignment to SObject”

Check Credentials

  1. Go in Tabs → Settings

  2. Check your credentials and press “Test Connection & Save” button

  3. Make sure credentials are valid

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.