data-monster-conveyor-belt-boxes.png

You have an Insycle Recipe integrated into a Salesforce Flow, and in Salesforce, the flow shows that it was completed successfully, but when you look at the record, the changes Insycle was supposed to make aren't there.

There are several possible causes for this. Here are the DIY troubleshooting steps to figure out what's going on and what needs to be adjusted.

Basic Troubleshooting

Here's a common issue to check on, and it's super-easy to fix. 

Verify the Recipe Settings

Ensure the Recipe is in Update Mode

One of the more common reasons for a Recipe not running as intended is because it was saved in Preview mode. Preview mode is for analysis purposes, so no data is modified in the CRM.

To check the mode, go to Operations > Recipes and select the Recipe from the drop-down. The mode appears next to the Recipe name in the grey bar. 

recipe-merge-duplicate-contacts-update-mode.png

If your Recipe shows "Mode: Preview," click the Review button and change the mode to Update, then click Next, and on the When tab, click Save.

recipe-review-salesforce-update-mode.png

Note that Recipe-level modes override template-level modes—so a template saved in Preview mode added to a Recipe set to Update mode will make changes in the CRM.

Check the Automate Setting 

Click the Review button and click through to the When tab.

Under Automate, make sure the Salesforce Flow Integration option is selected.

recipe-review-update-automate-salesforce-flow.png

Advanced Troubleshooting

If you've checked the mode and automate setting and are still having trouble, here is a series of things to look into to identify the issue. We recommend progressing through them in order.

1. Review the Recipe and templates in the Activity Tracker

Go to Operations > Activity Tracker, and look for your Recipe for the specific date and time. You can enter the Recipe's Run ID in the search to show only the templates included in a given run.

Look at the template that was supposed to make the change you're investigating. Is there a positive number in the Succeeded column?

activity-tracker-recipe-template-unmodified.png

If not, this means there were no records that matched your criteria. 

To determine the issue, click the Run ID to download the report and review the information. What information populated the fields? Does it say "Failed" in the Result column? If yes, review the Message to determine the issue.

associate-salesforce-leads-to-accounts-csv-failed-result.png

If you haven't figured out what's going on, copy the record identifier for a problem row. On Salesforce contacts and leads, the Full Name is the record identifier; for accounts, it's Account Name

Continue investigating in step #2.

2. Review the field data in Insycle

To validate that Insycle has the data needed to meet the template rules, look at it in Grid Edit.

Select one problem record to focus on. This will make it easier to see what's happening.

Select the record ID field and enter the record identifier copied from the CSV in step #1. Add all the fields you want to explore to the Layout

bulk-ops-salesforce-contacts-step-1-contact-ID-646x212.png

Review the data in the Record Viewer and verify that the expected values are there. Confirm that the data matches what is in Salesforce.

If the values are there, go ahead to step #3.

If the values aren't there and/or they don't match Salesforce, this could mean the data hasn’t synced to Insycle yet. This usually takes 5 minutes or less, but in rare cases, it can take up to an hour.

To force the sync, in Insycle, navigate to Settings > Accounts, and next to the account name, click the Sync changes from last day button (lightning bolt icon).

settings-accounts-salesforce-sync-changes-from-last-day-646x309.png

When you return to Grid Edit, click Search again. You should now see the expected values.

Now that you've validated that the data is there, you can move on to the next step.

3. Run the template manually in Insycle

Now that you're sure the data is in Insycle, go to the module from your Recipe and select the template that should have run in your Salesforce flow. Add a filter for just that record identifier, using the same record as in step #2. 

bulk-ops-salesforce-contacts-step-1-contact-ID-646x212.png

Run the template in Update mode and look at the record in Salesforce. Verify that the template did what it was supposed to.

transform-data-step-3-update-mode-run-now-1-selected-646x414.png

4. Manually trigger the flow in Salesforce

In the Insycle template, click a record link in the Record Viewer so it opens in Salesforce. 

transform-data-salesforce-contacts-record-viewer-identifier-link-646x242.png

In Salesforce, make the change to the record that should trigger the flow and Save.

Wait 5 minutes, then refresh the record and review the changes.

You can verify that the Recipe ran from Insycle. Go to Operations > Activity Tracker and look for your Recipe for the specific date and time. If the Recipe ran successfully, the Updated column should show a "1" by each template and the total templates run by the Recipe. 

activity-tracker-salesforce-recipe-updated-646x368.png

Click the Run ID to download the CSV report and see the changes.

5. Ensure required fields are populated

If a Recipe relies upon specific values to execute, for example, to assign leads based on region, the address information must be populated when the record is saved and the Flow is triggered.

To allow the Recipe to run only when all required values have been populated:

  • Select the trigger A record is created or updated 
  • Add a condition that ensures the property required for the Recipe to run successfully exists. In the example below, to ensure that leads can be assigned based on region, we've added the condition: State/Province is not empty
  • Use the When to Run option: Only when a record is updated to meet the condition requirements

salesforce-flow-additional-field-condition-state-646x586.png

If none of the above steps have gotten your flow going correctly, please follow these tips and reach out to us. We're here to help!

Getting Help

If you cannot pinpoint what is causing the problem with your operation, the Insycle support team can help. Please have the following items ready when reaching out:

  • The record identifier for the sample you've been working with
  • List all the fields that are affected by the template
  • In Salesforce, take screenshots of the property history for each field value. It's key to include the URL bar in the images

Once you have your information together, contact support via the live chat button at the bottom of every page. We're here to assist you during the following hours:

  • 9 AM - 6 PM GMT+1 (London)
  • 9 AM - 6 PM EST (New York)
  • 9 AM - 6 PM PST (Los Angeles)

transform-data-chat.png

Handling Salesforce Flow Errors

Getting Flow error "...configure flow to run when record meets condition"

If when you try to save your Flow, you get the following error message:

For a path that runs asynchronously, configure the flow to run only when a record is updated to meet the condition requirements or select the Is Changed operator in a condition.

salesforce-flow-error-configure-condition.png

This indicates you need to add an entry condition. Salesforce prevents you from saving a Flow with a very broad trigger. For example, if you use the "A record is updated" trigger without any further criteria, the Flow would run every time any part of a record is updated. 

Edit the Start step to include Condition Requirements so the Flow is more targeted to only run on records that meet specific update criteria.

salesforce-flow-condition-requirements-646x291.png

Getting Flow error "Error occurred while trying to fetch recipes from Insycle"

If when you try to save your Flow, you get the following error message:

Error occurred while trying to fetch recipes from Insycle.
Check whether your user is assigned 'Insycle User' Permission Set in Salesforce, and whether Salesforce Flow Integration was activated in Insycle.

salesforce-flow-error-check-permission+activated-646x299.png

This suggests there are two possible causes to look into:

  1. The user has not been assigned to the "Insycle Permission Set."
  2. The Salesforce Flow integration has not been activated in Insycle.

To troubleshoot:

1) Verify that the user has the necessary permission set.

In Salesforce, go to Setup > Users > Permission Sets > select the Insycle Permission Set > Manage Assignments, and make sure the user is listed there.

If the user is not listed, follow the steps to Assign the Insycle Permission Set.

salesforce-permission-set-add-ssignment-646x322.png

2) Verify that the Salesforce Flow integration has been activated in Insycle

An Insycle user with the Owner role must enable the integration.

In Insycle, the owner should go to Settings > Accounts, and under the Actions column for the Salesforce account, make sure the Salesforce Flow Integration button (plug icon) is blue, indicating it is enabled.

If it is not blue, the Owner just needs to click the button to enable it.

settings-accounts-salesforce-flow-activated-blue-646x346.png

Record update didn't trigger Flow

If you've made an update to a record in Salesforce that should have triggered a Flow to run, but you get the following error:

We can't save this record because the XX process failed. Give your Salesforce admin these details. An Apex error occurred: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out Error ID: XX pending. Please commit or rollback before calling out Error ID XX.

salesforce-cant-save-records-error.png

This indicates the Insycle element is not running in the “Asynchronous” path.

To resolve, edit the Flow, and in the Configure Start pane, check the Include a Run Asynchronously path... checkbox at the bottom.

salesforce-flow-run-asynchronously-646x141.png

On the Flow diagram, click the plus + under the Run Asynchronously path.

In the Add Element field, type "Insycle" and select "Insycle - Run Recipe."

In the Insycle - Run Recipe pane, customize the Label, and select the Object type that matches the Flow.

Select the Insycle Recipe to run.

salesforce-flow-add-element-insycle.png

Frequently Asked Questions

 

Is there a way I can see what Insycle operation made a change to an object?

When working with Salesforce, for every Insycle operation that updates or creates a record, the Run ID will be updated in the custom field, Insycle Run ID

You can use this to look up an operation in Insycle's Activity Tracker or get more help from the Insycle support team.

Note: To see the history in Salesforce records, the field history tracking must be enabled for each object type you use with Insycle. 

salesforce-contact-record-insycle-run-id-464x427.png

When using an Insycle Recipe that includes templates for more than one object type, such as leads and contacts, the same Run ID will appear in both Salesforce records.

If the Insycle Run ID doesn't already exist in your Salesforce database, add it as a custom field with the label "Insycle Run ID" to each object type as needed. 

This field label is the only requirement for the integration to work properly. It's not dependent on the internal name or underlying API field name.

salesforce-setup-contact-custom-field-insycle-run-id-464x352.png

How can I stop an Insycle Recipe running in a Salesforce Flow?

In Salesforce, simply remove the Recipe action from the Flow and re-publish it.

Why is my flow running for such a long time? 

Flow automations are intended for real-time events, such as someone filling out a form or other live data coming in. They should be used to make small changes to a limited number of records at one time.

To make large batch changes and bulk operations more efficiently, work directly from Insycle. Run your templates from the module, run a recipe, or set up automation to run templates automatically. 

How can I test my Flow with just one record?

In Salesforce, change a record so the flow will trigger and Save

Wait 5 minutes, then refresh the record and review the changes.

You can verify that the Recipe ran from Insycle Operations > Activity Tracker. Find the Recipe and click the Run ID for a template to download the CSV report and see the changes.  

Additional Resources

Related Help Articles

Related Blog Posts