Question

Photo of Don Smallman

0

Issue with sending SMS via Twilio

Hi,

I have confgured RockRMS to work with Twilio, as per the documentation.  However, when I send a text, I get a failure with "No Phone Number with Messaging Enabled"

Does anyone know what this means?

Thanks,
Don

  • Photo of DJ Grick

    1

    Hey Don,

    Is the error showing up in the Communication history similar to this? 

    Failure.png

     

    If so then it issue is probably with the profile of the person you are trying to send the message to. Make sure they have a cell phone number entered AND SMS is active. 

    Profile Fix.png

  • Photo of Don Smallman

    0

    Yes... That was it.  I checked to make sure that the number was there, but never checked to see if the box was checked.  Thanks!  Now on to the other problem, it seems that the SMS is failing when there are validation errors.  Before it just skipped over those and sent the ones with numbers.  Is this true and if so, why did it change?

    Here is the error for the "Send Communication" job.  This is to several people.  My test to see if it was working was just to one number.

    Quartz.SchedulerException: Job threw an unhandled exception. ---> System.SystemException: Entity Validation Error: History (Caption): The field Caption must be a string or array type with a maximum length of '200'. ---> System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. at System.Data.Entity.Internal.InternalContext.SaveChanges() at System.Data.Entity.Internal.LazyInternalContext.SaveChanges() at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing) --- End of inner exception stack trace --- at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing) at Rock.Data.DbContext.SaveChanges() at Rock.Communication.Transport.Twilio.Send(Communication communication) at Rock.Communication.Medium.Sms.Send(Communication communication) at Rock.Jobs.SendCommunications.Execute(IJobExecutionContext context) at Quartz.Core.JobRunShell.Run() --- End of inner exception stack trace --- [See nested exception: System.SystemException: Entity Validation Error: History (Caption): The field Caption must be a string or array type with a maximum length of '200'. ---> System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. at System.Data.Entity.Internal.InternalContext.SaveChanges() at System.Data.Entity.Internal.LazyInternalContext.SaveChanges() at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing) --- End of inner exception stack trace --- at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing) at Rock.Data.DbContext.SaveChanges() at Rock.Communication.Transport.Twilio.Send(Communication communication) at Rock.Communication.Medium.Sms.Send(Communication communication) at Rock.Jobs.SendCommunications.Execute(IJobExecutionContext context) at Quartz.Core.JobRunShell.Run()] Inner Exception: Job threw an unhandled exception.

    • DJ Grick

      Glad it helped. Now you are into stuff that is over my head.


      My only suggestion (which might not be the best) would be back everything up and run the update that was released earlier today and pray it was a bug they fixed. I am pretty sure I saw validation issue in the bug fix list but didn't pay that close of attention. Beyond that it's probably digging into your exemption log looking for more info on what's going wrong.

  • Photo of Don Smallman

    0

    Thanks DJ.  I'll give that a shot.