AssetFailedToLoad Exception

Info: Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object. at Main_CompiledExpressionRoot.Main_CompiledExpressionRoot_TypedDataContext16_ForReadOnly.__Expr126Get()
at Main_CompiledExpressionRoot.InvokeExpression(Int32 expressionId, IList1 locations, ActivityContext activityContext) at System.Activities.Expressions.CompiledExpressionInvoker.InvokeExpression(ActivityContext activityContext) at Microsoft.CSharp.Activities.CSharpValue1.Execute(CodeActivityContext context)
at System.Activities.CodeActivity1.InternalExecuteInResolutionContext(CodeActivityContext context) at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity1 expressionActivity)
at System.Activities.InArgument1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor) at System.Activities.RuntimeArgument.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance targetActivityInstance, ActivityExecutor executor, Object argumentValueOverride, Location resultLocation, Boolean skipFastPath) at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate)
at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Start Time: 7/6/2023, 12:33:04 AM
End Time: 7/6/2023, 12:33:34 AM
Input Values: null
Output Values: Empty
Has Recording: false

We have come across an issue where the UiPath failed to load assets and our UiPath Jobs were getting terminated.

Following is the exception detail “Throw AssetFailedToLoad Exception: Loading asset ConnectionStringCentral failed: The operation has timed out.”

Please note we faced this issue for 3 weeks. The issue got resolved after rebooting the bot machine.

However need some help on this issue to understand what might have caused the UiPath failure to load assets.

Any help on this much appreciated. Thanks!

Hi @syed.abuturab

  • Make sure that the bot machine has a good network connection.
  • Monitor the UiPath engine logs for any errors.
  • Back up the assets regularly.
    Try to load the asset manually. This can be done by opening the asset in a text editor and verifying that the contents are correct.

Hope it helps!!