Debugging flow trigger error

Tags

,

Yesterday morning, one of the batch in my company failed with the following error and I had to debug:

The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 200L0000000DApf”

I knew that we do not have any Visual flows hence it should be one of the processes in the process builder failed, but how do I find out the name of the process which has failed?

One of the easiest option is to take the version ID as mentioned above(200L0000000DApf) and go to https://workbench.developerforce.com->Info > Metadata Types & Components.  Click ‘Expand All’ and Search for the ID(200L0000000DApf). You will know the name of the process which has failed and if you want to know in which step it has failed, obviously put a debug log and simulate the scenario to get the error. Then, you can check the log for more information.

Let me know for any questions. Thanks!

Advertisements

Tip# 22 – Rowsperpage

Tags

Many of us would know this tip, but I thought of sharing it as it will be useful for someone who does not know about it.

Suppose you want to add a field “Available To” from the Product object on to the changeset, so you would click on Add button, select Custom field in the drop down and click on A. Then you would click on next page and select the field “Available To” .

Instead, you can click on more records per list page and go to end of the address to look for “rowsperpage”:

Rowsperpage

Change it to lets say 2000 and click on enter, in this way, you don’t need to navigate to next page to select the field:

Rowsperpage-LATER

Let me know for any questions.

 

Tip#21 – ColumnCopy

Apologies, have been busy with work and personal stuff hence could not write posts for a long time and I am back:)

Suppose you want to copy all the fields in an object and put them on to excel, you can use the following chrome extension:

https://chrome.google.com/webstore/detail/columncopy/lapbbfoohlcmlbdaakldmmallcbcbpjb?hl=en

Example:

Suppose, you want to copy all the custom fields from Order object, you can follow the below steps to do so:

  1. Go to Setup -> Orders -> Fields
  2. Navigate to see Order Custom Fields & Relationships section
  3. Right click and select Copy entire table from ColumnCopy option. It will highlight the table that is getting copied, once you select this option.

Columncopy

4. Then open excel and paste

Excel

Hope this tip will be useful!

P.S: you have an option to only the column too by selecting Copy this column option.

 

Issue: Duplicate (blank) versions are created when deploying a Flow with Change Set

Tags

I tried deploying the flow to Production org using Change Set and the flow was modified in my Sandbox Org. After deployment, Salesforce created 2 versions of the flow in Production org and one was blank. When I searched in google, I found out that this is one of the known issue. Here are the details and you can subscribe to this link, if this issue affects you so that you will be notified by Salesforce when the issue is resolved. Thanks!

Tip#20 -Restricted Picklists

Tags

,

A restricted picklist field includes only the values that you’ve defined and users cannot enter any value other than the defined picklist values. This is to ensure that the integrity of the picklist data is maintained and your picklist stays clean. Salesforce has introduced this functionality in Spring’16 and it is in Beta.

If you have a Developer Edition org or sandbox org, no setup is required to use restricted picklists. For all other editions, restricted picklists are available as a beta feature, which means they’re highly functional but have known limitations. Contact Salesforce to enable restricted picklists.

Suppose, you have configured a restricted picklist in Sandbox and when you move it to production, you might get an error “Cannot have restricted picklists in this organization.” To resolve the issue, you can contact support to enable restricted picklists in production org.

Here you can find the release notes from Salesforce.