Start Job activity throws error-Method may only be called on a Type for which Type.IsGenericParameter is true

I’m using ‘Start job’ activity, trying to start a process inside a modern folder from a master process in ‘shared’ folder.

Getting the following error :
Method may only be called on a Type for which Type.IsGenericParameter is true.

Can anyone help me on this?

Can you share either the code, or a view as to what input arguments you have going into the “Start Job” activity?

Hi @jcb, Now I noticed that we’re getting this error while passing an argument of type 'Datatable '.

It is working with Arguments of type String.

Is there any possible way to pass datatable argument in start job activity? Or any other activities to replace “start Job”?

I have tried “Invoke process” activity, but it won’t create a separate Job and continues inside the master process itself.

Hey Aswin,

I don’t believe it’s possible to pass in a datatable directly as an argument to the Start Job activity, although I may be wrong here.

A couple of options you could use are to output datatable into a string, pass this string into the start job, and then generate a datatable using this input string on the job which you’ve started.

Otherwise, you could again output the datatable to a CSV on a shared drive/storage bucket, pass the file path in as an argument to the new job, and then have the second job read this CSV and pull it back into datatable format.


1 Like

Thanks Man, I have decided to go with the string option👍🏻

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.