27-03-23 10:25 AM
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);
}
Answered! Go to Answer.
27-03-23 10:54 AM
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.
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
------------------------------
27-03-23 10:54 AM
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.
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
------------------------------