Page 1 of 1

ValidityPeriod property format

Posted: Thu Oct 23, 2008 9:16 am
by SANSoft
Hi!

I try to set value of ValidityPeriod to "000003000000000R" (3 days relative local SMSC time). Format of this mandatory field is described in SMPP Protocol Specification v3.4 (7.1.1.2 Relative Time Format)

When I call SubmitAsync(sms), I catch exception with Text: "Too long Parameter name: S"

Please, explain me my error...

P.S. When I comment this code line in my program, my sms correctly delivered

Posted: Thu Oct 23, 2008 12:29 pm
by Lector
I have the same issue, but I can't skip this parameter because I recieve "validity period expired" message on server side otherwise.

Posted: Mon Oct 27, 2008 1:26 pm
by KonstOne
I have same error.
"Too long Parameter name: S"

Stack Trace:
at wHcW8EeS8UMgjM9EFR.aEOKR878JGLThiP76W.qI9WackZg(String , Int32 )
at ALT.SMS.SubmitSm.suBHmnexr()
at ALT.SMS.SubmitSm.ALT.SMS.IPacket.GetBytes()
at ALT.SMS.SmppClient.KkdQHOPxF(IPacket )
at ALT.SMS.SmppClient.Submit(SubmitSm data)


code:

Code: Select all

                    Dim utc As Date = Now()
                    sm.ValidityPeriod = utc.ToUniversalTime.AddHours(24).ToString("yyMMddhhmmss000+")
                    sm.ShortMessage = Msg.Message
                    ret = smpp.Submit(sm)

Posted: Wed Oct 29, 2008 1:13 pm
by ceezed
I get the same error also ..... is there a solution?

Posted: Thu Oct 30, 2008 7:09 pm
by alt
please download last version.

Posted: Fri Oct 31, 2008 10:52 pm
by ceezed
I downloaded the latest (v 2.5.2.0) and I still get error message: Too long Parameter name: S

I am doing something like this (C#):
submit_sm.ValidityPeriod = DateTime.Now.AddDays(2).ToString("yyMMddhhmmss000+");