cancel
Showing results for 
Search instead for 
Did you mean: 

Code stage compile error on 1 worker

CraigTaylor
Level 2

Hi all,

I have been dissecting a process built for us by a 3rd party that has no documentation. This process works fine on our usual Azure worker machines - we have spun up a new locally hosted machine and when running this process it terminates with a code compile error. Checking the code stage in studio confirms there are no errors and as mentioned, it runs fine on our existing environment.

The stage has a collection input (inColl) and output (OutColl). I wondered if anyone could cast their eyes over the code and suggest what may be causing the compile error - any dependencies etc we may be missing:

var dt1Enum = inColl.AsEnumerable();

var result = from dt1rows in dt1Enum
				select new
				{
					FileKey = dt1rows.Field<string>("Name") + "#" +dt1rows.Field<DateTime>("Last Written").ToString("s"),
					FilePath = dt1rows.Field<string>("Path")
				};


			outColl = new DataTable();		
  
            outColl.Clear();
            outColl.Columns.Add("FileKey");
            outColl.Columns.Add("FilePath");
			outColl.Columns.Add("Spare");
            foreach (var x in result)
            {
				DataRow _BBi = outColl.NewRow();
                _BBi["FileKey"] =x.FileKey;
                _BBi["FilePath"] = x.FilePath;
                outColl.Rows.Add(_BBi);
            }
           

				
1 BEST ANSWER

Helpful Answers

Mukeshh_k
MVP

Hello Craig Taylor,

As you said it works fine on your usual Azure worker machine, you might be missing out on some libraries or Namespaces - Navigate to Initialise page of your Object on azure machine and See code options - check all the dll listed in the code option under initialise. Navigate back to the locally hosted machine : C:\Program Files\Blue Prism Limited\Blue Prism Automate\ and check if all the dependent dll/libraries are placed over there.

Check References - e.g.

35419.png

If it doesn't work that way either - I would love to debug. 

------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS, England, United Kingdom, GB
------------------------------

Regards,

Mukesh Kumar

View answer in original post

1 REPLY 1

Mukeshh_k
MVP

Hello Craig Taylor,

As you said it works fine on your usual Azure worker machine, you might be missing out on some libraries or Namespaces - Navigate to Initialise page of your Object on azure machine and See code options - check all the dll listed in the code option under initialise. Navigate back to the locally hosted machine : C:\Program Files\Blue Prism Limited\Blue Prism Automate\ and check if all the dependent dll/libraries are placed over there.

Check References - e.g.

35419.png

If it doesn't work that way either - I would love to debug. 

------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS, England, United Kingdom, GB
------------------------------

Regards,

Mukesh Kumar