---
title: "Managing custom validation rules in Salesforce"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-icon.png
date: 2024-03-22T00:00:00.000Z
tag: Guides
description: "If you are getting `FIELDCUSTOMVALIDATION_EXCEPTION` when trying to write data to a Salesforce connection, this means there is a custom validation rule on this..."
url: "https://docs.unified.to/guides/managing_custom_validation_rules_in_salesforce"
---

# Managing custom validation rules in Salesforce
------
_March 22, 2024_

If you are getting `FIELD_CUSTOM_VALIDATION_EXCEPTION` when trying to write data to a Salesforce connection, this means there is a custom validation rule on this Salesforce account and the data that you are providing isn't valid

To get [Unified.to](https://unified.to/) to be able to write this object you will need to get your customer to modify the Salesforce rule on their account to be less strict or remove the rule all together.


For example, you are getting `"FIELD_CUSTOM_VALIDATION_EXCEPTION: The Shipping address is required."` when trying to [create a Company](https://docs.unified.to/crm/company/Create_a_company). This means there is a custom rule on the Salesforce **Account** object that requires a shipping address.


Follow these instructions to modify/remove a custom rule for Account object:

1. Go to your Salesforce account and navigate to **Setup**

    ![Untitled.png](https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-0.png)

2. On the left-hand side navigate to **Objects and Fields > Object Manager**

    ![Untitled.png](https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-1.png)

3. Select the object you need to modify the rules for. In our case **Account**

    ![Untitled.png](https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-2.png)

4. Navigate to **Validation Rules**

    ![Untitled.png](https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-3.png)

5. Edit or remove the custom validation rule

    ![Untitled.png](https://s3.us-east-2.amazonaws.com/unified-article-images/managing_custom_validation_rules_in_salesforce-4.png)