SMS Submission failed to data to the Dataset

Dear all,
I want you to know that we started receiving SMSes again after I deleted the gateway configuration and recreate it again but now there is a new problem, it is not sending SMSes and it is giving the following error messages:

Aug 01 07:06:42 hmis tomcat9[281]: * INFO 2022-08-01 07:06:42,443 No template found (DefaultDataSetNotificationService.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * INFO 2022-08-01 07:06:42,869 Sending SMS to [23230879765] (SmsMessageSender.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * ERROR 2022-08-01 07:06:42,912 Client error 422 Unprocessable Entity (SimplisticHttpGetGateWay.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * ERROR 2022-08-01 07:06:42,913 SMS failed, failure cause: failed (SmsMessageSender.java [taskScheduler-6])

It needs to send SMSes out as a way of confirming the SMS it had received and also notification and reminder for the approval of data submitted. Please, does anyone have an idea what is Client error 422 Unprocessable Entity really means or how can it be fixed?

Dear Zubair,
I hope this message meets you in good health. We had been battling with our SMS system and now it is receiving the SMSes but it is not sending SMSes. Every time we try to send an SMS, this is the error we are getting in the log:

Aug 01 07:06:42 hmis tomcat9[281]: * INFO 2022-08-01 07:06:42,443 No template found(DefaultDataSetNotificationService.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * INFO 2022-08-01 07:06:42,869 Sending SMS to [232#####765] (SmsMessageSender.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * ERROR 2022-08-01 07:06:42,912 Client error 422 Unprocessable Entity (SimplisticHttpGetGateWay.java [taskScheduler-6])
Aug 01 07:06:42 hmis tomcat9[281]: * ERROR 2022-08-01 07:06:42,913 SMS failed, failure cause: failed (SmsMessageSender.java [taskScheduler-6])

Please do know what this error is about.

Hi @Gerald_Thomas,

Please feel free to share with the community what was the solution?

As for the new error in sending SMS …

This is the same error you faced before in User Extended App issue

There seems to be an issue with the instructions sent. Could you share more info about how you are sending the SMS such as configuration settings? Steps to reproduce?

As much detailed (non-sensitive) info as possible so that @zubair and other community members might be able to help. Thank you!

Dear AL-Gassim all I did was delete the gateway configuration and reconfigure it again and I started receiving the SMSes again.

For the no template I am sure this is different from that of the User Extended App issue. Because it originates immediately I click to send a message on my DHIS2.

SMS gateway configuration is done base on the Rapidpro/SMS gateway. Please find the attached screenshot of how the configuration was done.

2 Likes

Hi @Gerald_Thomas,

Thank you for sharing the solution above. As for the new error, are you still facing an issue? If yes then please create a new topic post with as many details, screenshots, and logs (without sensitive info) as possible so that we could get support on the issue.

Thanks!