# Workflow Trigger - Messaging Error Code - SMS

> TABLE OF CONTENTS Overview Trigger Name Trigger Description How to Configure Example Overview The "Messaging Error - SMS" trigger allows you to initiate…

- Source: https://docs.ghlcustomercare.com/docs/workflows/workflow-triggers/workflow-trigger-messaging-error-code-sms
- Section: Workflows / Workflow Triggers
- Reading time: 2 min
- Images: 2, each explained below
- Modified on Tue, 27 May, 2025 at 6:29 AM

---
**TABLE OF CONTENTS**

-   [Overview](#overview)
-   [Trigger Name](#trigger-name)
-   [Trigger Description](#trigger-description)
-   [How to Configure](#how-to-configure)
-   [Example](#example)

---

## **Overview**

The "Messaging Error - SMS" trigger allows you to initiate workflows automatically whenever a SMS has resulted in undelivered state and returned one of the below-mentioned error code.

## **Trigger Name**

Messaging Error - SMS

## **Trigger Description**

This trigger activates a WorkFlow based on the error received for an undelivered message. This can be used for taking relevant measures to clean the contact list eventually improving the delivery rate.

## **How to Configure**

1.  **Choose a Workflow Trigger:**
    
    -   **Select "Messaging Error - SMS" from the dropdown list.**
2.  **Workflow Trigger Name:**
    
    -   **Provide a descriptive name for the trigger to identify it within your workflow easily.**
3.  **Filters:**
    
    -   **You can add filters to narrow down the trigger to specific error codes mentioned below:**

<table border="1" cellpadding="0" cellspacing="0" class="fr-dashed-borders fr-alternate-rows" dir="ltr" style="width: 100%"><colgroup><col width="100"><col width="100"></colgroup><tbody><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">Code</td><td class="fr-highlighted fr-thick" colspan="2" dir="ltr" style="vertical-align: bottom; text-align: left; width: 51.532%">Description</td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30007</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%">Carrier Violation</td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3286%">30034</td><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: left; width: 25.0349%"><div style="white-space: nowrap"><div>A2P Registration Pending on Number</div></div></td><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: left; width: 37.6045%"></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30032</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Toll Free Number not Verified</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30005</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>User Inactive/Number does not exist</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30003</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Unreachable/Out of Service Number</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30004</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Do not want SMS/DND enabled</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: bottom; text-align: center; width: 48.3287%">30006</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: bottom; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Landline/Incapable to receive SMS</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30023</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>US A2P 10DLC - Daily Message Cap Reached</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21408</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Permission to Send SMS Not Enabled for Region</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30008</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%">Unknown Error</td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21606</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Invalid 'From' Phone Number</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21211</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Invalid 'To' Phone Number</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21614</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>To' Number Is Not a Valid Mobile Number</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21610</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>User Replied with STOP (Opted Out)</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30011</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>MMS Not Supported by Recipient Number or Region</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30033</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>A2P Campaign Suspended or Deleted</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21661</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>From' Number Is Not SMS-Capable</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">21635</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>To' Number Cannot Be a Landline</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30037</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Outbound Messaging Disabled</div></div></td></tr><tr><td class="fr-highlighted fr-thick" style="vertical-align: top; text-align: center; width: 48.3287%">30002</td><td class="fr-highlighted fr-thick" colspan="2" style="vertical-align: top; text-align: left; width: 51.532%"><div style="white-space: nowrap"><div>Sub-Account Suspended</div></div></td></tr></tbody></table>

## **Example**

**Let’s say you are running an SMS campaign to promote a new product, and you want to automatically remove contacts who have a high chance on not getting the messages next time or want to add a tag to re trigger them an SMS after sometime.some time**

1.  **Choose a Workflow Trigger:**
    
    -   **Trigger: Messaging Error - SMS**
2.  **Workflow Trigger Name:**
    
    -   **Name: Messaging Error - SMS**
3.  **Filters:**
    
    -   **Filter Type: Error Code is** 
    -   **Error Name: 30007 - Carrier Violation**  
        **
        
        
![Step 2 of 2: Error Name: 30007 - Carrier Violation](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155033086504/original/iv8aR4ZsYOgRmu7gfYc1HJCccorQpor0dQ.jpeg)

**Step 2 of 2: Error Name: 30007 - Carrier Violation**

This screenshot accompanies step 2 of 2 in the "Example" section of "Workflow Trigger - Messaging Error Code - SMS". At this point in the walkthrough you error Name: 30007 - Carrier Violation. For context, this section explains: Let’s say you are running an SMS campaign to promote a new product, and you want to automatically remove contacts who have a high chance on not getting the messages next time or want to add a tag to re trigger them an SMS after sometime.some time. This part of the guide covers 6 fields, listed below.
- What this covers: Error Name: 30007 - Carrier Violation
- Fields: Trigger: Messaging Error - SMS, Workflow Trigger Name:, Name: Messaging Error - SMS, Filters:, Filter Type: Error Code is, Error Name: 30007 - Carrier Violation
- Controls: Error Name: 30007 - Carrier Violation, Trigger: Messaging Error - SMS, Name: Messaging Error - SMS, Filter Type: Error Code is

Example values (illustrative, not read from the screenshot):

- Workflow Trigger Name:: Priya Raman
- Name: Messaging Error - SMS: Priya Raman

Full procedure:

1. Filter Type: Error Code is
2. Error Name: 30007 - Carrier Violation  <- this image

        
        **
4.  **Further, this can be created into if else if different actions is needed as shown below:**  
               ****
    
    
![Step 4 of 4: Further, this can be created into if else if different actions is…](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/155033086528/original/vGMb8HREi0nL0poEZYc-KF4Qw_uRJHKyBQ.jpeg)

**Step 4 of 4: Further, this can be created into if else if different actions is…**

This screenshot accompanies step 4 of 4 in the "Example" section of "Workflow Trigger - Messaging Error Code - SMS". At this point in the walkthrough you further, this can be created into if else if different actions is needed as shown below. This part of the guide covers 6 fields, listed below.
- What this covers: Further, this can be created into if else if different actions is needed as shown below:
- Fields: Trigger: Messaging Error - SMS, Workflow Trigger Name:, Name: Messaging Error - SMS, Filters:, Filter Type: Error Code is, Error Name: 30007 - Carrier Violation
- Controls: Trigger: Messaging Error - SMS, Name: Messaging Error - SMS, Filter Type: Error Code is, Error Name: 30007 - Carrier Violation

Example values (illustrative, not read from the screenshot):

- Workflow Trigger Name:: Priya Raman
- Name: Messaging Error - SMS: Priya Raman

Full procedure:

1. Choose a Workflow Trigger:
2. Workflow Trigger Name:
3. Filters:
4. Further, this can be created into if else if different actions is needed as shown below:  <- this image

    
    ****

---

Documentation for GHL Customer Care. Support: support@ghlcustomercare.com