Issue in Custom Activity

nlp
custom_activities

#1

Hi,
For Getting the live date using NLP(eg: If I give today means it recognize as date and bring the today date in (mm/dd/yyyy) format), I have created a custom activity using visual studio by installing the stanford-corenlp-3.9.1 and added all the dependency files, while converting into nugget package.

The Custom activity works properly when it runs through studio, but after publishing the same project and try to run through robot tray ,throws an Exception like,

Error {“message”:“System.IO.FileNotFoundException: Could not load file or assembly ‘stanford-corenlp-3.9.1, Version=3.9.1.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.\r\nFile name: ‘stanford-corenlp-3.9.1, Version=3.9.1.0, Culture=neutral, PublicKeyToken=null’\r\n at StanfordCustomActivity.SUTime.Execute(CodeActivityContext context)\r\n at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)\r\n\r\nWRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].\r\n”,“level”:“Error”,“logType”:“User”,“timeStamp”:“2018-08-13T12:50:54.4882052+05:30”,“fingerprint”:“817b924e-d0c9-4ffd-baa2-aa775371a9bc”,“windowsIdentity”:“GEEWIZ\Tharmarajan.S”,“machineName”:“THARMARAJ-B23”,“processName”:“Flight_Booking”,“processVersion”:“1.0.6799.23096”,“fileName”:“Main”,“jobId”:“b357ae7b-c186-4a15-ad63-f996ebbfb69c”,“robotName”:“GEEWIZ\THARMARAJAN.S”}


#2

@TharmaKS

Can you check if the missing assembly stanford-corenlp-3.9.1 is available in GAC? Or in the location where UiRobot.exe exists?


#3

Yes, If we keep the dependency files in that location, It works.But we have to manually move the dependency file to that location.

The issue that I am facing is, in every machine while deploying that process i have to move the dependency file manually.Instead of that, in published project itself I have to maintain those files because while downloading the project the dependency files also automatically store in robot machine.


#4

A guess am making here

Copy the assembly to the project’s root. This should go inside the package when publishing. Give a try


#5

Ya, I have already tried, same issue unable to consume those dependency files.It works only by keep the dependency files in the path(UiPath\Studio), then it works fine.

I’m not clear, why the project run in Studio perfectly ,and the same project runs through robot tray after published throws an exception (Unable to consume the dependency files) ?