Error While calling Custom Activity

Hello All,

I created nuget package for Twilio sending sms but while running getting error.

Please help me asap. Thanks in advance.

Error:-

18.4.3+Branch.master.Sha.9888b477be8d3ec8a832306fc59c34ba6edad108

Source: Twillio send SMS

Message: Method not found: ‘Twilio.Rest.Api.V2010.Account.MessageResource Twilio.Rest.Api.V2010.Account.MessageResource.Create(Twilio.Types.PhoneNumber, System.String, Twilio.Types.PhoneNumber, System.String, System.String, System.Collections.Generic.List1<System.Uri>, System.Uri, System.String, System.Nullable1<System.Decimal>, System.Nullable1<Boolean>, System.Nullable1, System.Nullable1<Boolean>, System.Nullable1, System.Collections.Generic.List`1<System.String>, Twilio.Clients.ITwilioRestClient)’.

Exception Type: System.MissingMethodException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.MissingMethodException: Method not found: ‘Twilio.Rest.Api.V2010.Account.MessageResource Twilio.Rest.Api.V2010.Account.MessageResource.Create(Twilio.Types.PhoneNumber, System.String, Twilio.Types.PhoneNumber, System.String, System.String, System.Collections.Generic.List1<System.Uri>, System.Uri, System.String, System.Nullable1<System.Decimal>, System.Nullable1<Boolean>, System.Nullable1, System.Nullable1<Boolean>, System.Nullable1, System.Collections.Generic.List`1<System.String>, Twilio.Clients.ITwilioRestClient)’.
at Twillio.TwillioSendSMS.SendSms(String Subscription, String AuthToken, String MessageBody, String From, String ToNumber)
at Twillio.TwillioSendSMS.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

1 Like

Kindly have a view on this thread

Cheers @Tanya_Lakhotiya

Did you check the Twilio activities in the UIPath Go -

Regards,
Karthik Byggari

While creating the nupkg , did u added all the dependencies?

yes, but getting same error

yes.

Hi Palaniyappan, Thank you so much for your solution.

Actually i want to make IVR call as well that’s why i wanted to use twilio.

1 Like

Hi Tanya,

I’m also getting the same error, did you have a resolution for this. if yes please let me know.