Issue Symptoms
I followed the instructions in Setting up Ticket Sync from Zendesk to Salesforce, but cases aren't being created or updated in Salesforce.
Resolution Steps
- Open Admin Center and verify if the ticket sync is enabled.
- Check if the (Salesforce Integration) Sync tickets to Salesforce trigger is active.
- If ticket sync is enabled and the trigger is active, you should see an entry within the event view after creating or updating a ticket:
- If you see the entry, turn on the Salesforce logs (instructions below). If you don't see this type of event in your tickets, review Setting up Ticket Sync from Zendesk to Salesforce.
To run the Salesforce logs
- Log in to Salesforce using an Administrator account.
Note: This does not need to be the same account used to authenticate from Zendesk to Salesforce. It can be any Salesforce Administrator.
- Go to Setup > Environments > Logs > Debug Logs and create a new User Trace Flag with the details listed below.
- Traced Entity Type: User.
- Traced Entity Name: Select the user used to authenticate from Zendesk to Salesforce (This is the user used to login to Salesforce after clicking Connect in Central admin).
- Start Date: Current Datetime.
- End Date: Current Datetime plus 30 minutes.
-
Debug Level: You can use any existing debug level as long as it has at least “DEBUG” for Apex Code and System.
- Click Save. You can now start debugging.
- Create a ticket in Zendesk that meets the conditions of your trigger to push to Salesforce as a case.
- Check the events of the ticket to be sure the trigger (Salesforce Integration) Sync tickets to Salesforce fired and you see Message pushed to target.
- Switch back to Debug Logs in Salesforce and refresh the page.
- Look for new entries with Request-type: API and Operation: /services/data/v45,9/components/sobjects. Depending on the level of activity in your Zendesk, there may be multiple entries. Filter through the entries to identify the correct one.
- Click View to open the log.
- Look for Validation Fail or Required field missing messages, as these prevent the case from creating in Salesforce.
If there is no log available, this might indicate the following:
-
The User Trace Flag had the incorrect user in the Trace entity name.
To find the user who authenticated that connection to SFDC, go to Connected App Oauth Usage and click on the user count value. - The trigger/target doesn't reach your SFDC instance.
To make sure they are connected properly, open a new incognito window browsing session and return to Admin Center. Once there, disconnect the Salesforce integration and then reconnect it. When reconnecting to log into SFDC as a System Administrator, insure full access to the necessary fields/objects.
If the above steps don't help to identify the cause of the issue, contact the Zendesk support team with the ID of the ticket created.
11 Comments
Hi Dwight, thanks for a great article. I'm getting these logs each time I trigger the ticket sync:
I assume that in this case no error has been recorded, right? However, no new cases are created. Am I supposed to get an error log if not all required case fields are mapped?
Glad you liked the article. I dig your profile pic (The Great Bathtub Wave off Kanagawa?)... I have a long and amusing-mostly-just-to-me story about almost getting to see the original painting a few different times when my wife & I were traveling for our honeymoon, but that's for a different time...
If you're seeing this but cases still aren't being created, this sounds likely to be a permissions issue somewhere within Salesforce.
In order to dig into this more closely, I'm going to raise a ticket and reach out to you therein to get some account-specific information.
Dwight B. | Customer Advocate | support@zendesk.com
Hey Dwight Bussman,
Hope you are well! I am trying to debug a strange issue where only tickets created in Zendesk via Salesforce, don't sync back to Salesforce as a case. This stopped working around May 5th (Happy Cinco De Mayo).
Wondering if there have been any changes to the integration recently that may be contributing. I've re-connected the integration to ensure proper auth. Salesforce logs don't contain any activities for any of these tickets. Other tickets sync back to SF as intended and do show in logs. Any thoughts??
Best,
Fred
HeyO Fred,
I see that you also raised a ticket about this matter which is definitely the right way to go. I'm going to reach back out to you from within that ticket to continue troubleshooting this more privately. I'll loop back here if there's a more general lesson to bring to the larger group about this failure.
Dwight B. | Customer Advocate | support@zendesk.com
Hi Dwight,
I am facing a very strange issue.
The connection seems to be established but not all Zendesk tickets are flowing in.
I followed all the steps outlined.
Very few are getting in and most tickets are not flowing in as Cases.
The tickets which I manually create in Zendesk always come over.
I have also filed a support case - but no one has gotten back to me.
This is really impacting our lead funnel and we need to resolve it ASAP.
Can you help?
Hi Pranav. I will look into why your ticket hasn't yet gotten a response and have someone reach back out to you therein.
Hey Dwight Bussman,
I am waiting to hear back in the ticket I submitted but have not received a response yet. I am also unable to view in my activities for some reason. Can you please kindly check the status for me please? This is quite urgent.
Thanks!
Hi Fred
I replied to you in that ticket on Tuesday, but the email address from which it was opened isn't the same one from which you're posting here - they are similar, but not identical. I'll try changing the requester to your current email address from which you're logged in here and see if that gets through to you.
Hi Dwight,
I'm also having this issue that select tickets do not sync properly. In some cases, the ZD tickets will sync into Salesforce but will stay open because it does not update the ticket to Solved/Close when it was already updated on ZD side.
I have followed the troubleshooting guide and checked the tickets' events, it's triggering the sync.
I have raised a ticket to support but haven't got a response yet.
Hi Dwight Bussman,
Generally, tickets are being synced from ZD to SFDC, however some fail to sync. I'm seeing a few types of failures currently:
1. Temporary failures with cryptic error messages , meaning the ticket fails to sync, and then syncs successfully after about 1min. Examples:
2. Fatal failures with cryptic error messages, meaning the ticket doesn't sync. Example:
3. Tickets fail to sync due to the Description field being too long. Example:
HeyO Reuven Shelef
Thanks for reaching out about these. Here's what I know about each of these 3
Please sign in to leave a comment.