# 30124: MessagingServiceSID cannot be empty or null

Log Type: APPLICATION

Log Level: ERROR

## Description

This error occurs when a message create request does not include a usable `messagingServiceSid` value. When you send a message with a Messaging Service, Twilio uses that SID to select a sender from the service's Sender Pool.

### Possible causes

* The request omitted the `messagingServiceSid` field.
* The request included `messagingServiceSid`, but the value was empty, null, or not a valid Messaging Service SID. Twilio expects an SID that matches the `MG` pattern.

### Possible solutions

* Pass a valid `messagingServiceSid` value that matches the Messaging Service SID format (`MG` followed by 32 hexadecimal characters).
* If you are not using a Messaging Service, provide a valid `from` sender instead. The `from` parameter is required when `MessagingServiceSid` is not passed.
* If you are using a Messaging Service, omit `from` or set it to a sender from that service's Sender Pool.

#### Additional resources

* [Messages resource](/docs/messaging/api/message-resource)
* [Messaging Services](/docs/messaging/services)
