I am having the below error which causes the bot to fail in Orchestrator.
Bot is checking if there are any new email in every 10 seconds by using the Exchange Server.
It fails very randomly, couldn’t see pattern. Sometimes 2-3 days without any failure. Sometimes same failure couple times in the same day.
Any input would be very appreciated.
RemoteException wrapping System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 717157.
at UiPath.Mail.Exchange.Activities.ExchangeScope.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Hi, welcome to the community!
I would say, doing this every 10 seconds will always end up causing you some random problems… This seems too fast to keep repeating the same actions, maybe consider doing it less often or at least making sure you are not leaving too many objects opened…
I mean your variables in this case… make sure you have their scopes right so you dont end up making it bigger and bigger… Do you have your process start and end every 10 seconds or you keep it alive and have like a loop inside of it that checks for email every 10 seconds? RemoteException wrapping System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 1, position 717157
that position means that a xml is quite big there, so we might be reaching some size boundaries there too…
I keep it alive. The process is running non stop in a loop. It checks the mail server every 10 seconds and once it finds an item it processes it.
That xml file is from the Exchange Server which i dont have any control over. I will check the scope of the variables thanks for the suggestion but it shouldnt be an issue.