Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.ExtendPage'

Hello friends
A day ago there was a problem connecting to the company’s network, since then the problem has been fixed but when I try to run my project (trying to run for that matter Trst case) then I get the following error and do nothing: Unable to cast object of type ‘LiteDB.EmptyPage’ to type ‘LiteDB.ExtendPage’.
Does anyone know this and know how to solve the problem? Thank you

@mironb

Can you please tell where you are getting this…if it is immediately before start only tgen please click open logs and show the execution logs here

If not if it is failing on any activity then open locals panel and show the exception details from locals panel

Cheers

@Anil_G
Hi - Its immediately when I pressed the run button

05:39:32.6477 => [WARN] [UiPath.Studio] [1] Office version: 2016
05:39:32.6477 => [WARN] [UiPath.Studio] [1] Office build version: 16.0.4266.1001
05:40:07.6926 => [ERROR] [UiPath.Studio] [1] System.Exception: Unable to cast object of type ‘LiteDB.EmptyPage’ to type ‘LiteDB.DataPage’.
at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.WaitJob(Func2 serverCall, IDataBaseServiceCallArgs args, Action1 resultHandler)
at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs) at UiPath.Studio.Plugin.Workflow.DataBase.DataBaseServiceProxy.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs)
at UiPath.Studio.Plugin.TestExplorer.FileTree.Services.TestExplorerFileDiscoveryService.GetInvokedWorkflowsByTestCase(IReadOnlyCollection1 queriedFiles, CancellationToken token), HResult -2147467262 05:40:07.7474 => [ERROR] [UiPath.Studio] [1] System.Exception: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.DataPage'. at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.WaitJob(Func2 serverCall, IDataBaseServiceCallArgs args, Action1 resultHandler) at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs)
at UiPath.Studio.Plugin.Workflow.DataBase.DataBaseServiceProxy.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs) at UiPath.Studio.Plugin.TestExplorer.FileTree.Services.TestExplorerFileDiscoveryService.GetInvokedWorkflowsByTestCase(IReadOnlyCollection1 queriedFiles, CancellationToken token), HResult -2147467262
05:40:12.1512 => [ERROR] [UiPath.Studio] [38] System.Exception: Unable to cast object of type ‘LiteDB.EmptyPage’ to type ‘LiteDB.DataPage’.
at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.WaitJob(Func2 serverCall, IDataBaseServiceCallArgs args, Action1 resultHandler)
at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs) at UiPath.Studio.Plugin.Workflow.DataBase.DataBaseServiceProxy.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs)
at UiPath.Studio.Workflow.Shared.PackageBindings.PackageBindingsGeneratorService.QueryPackageBindings(IReadOnlyCollection1 workflows, CancellationToken cancellationToken), HResult -2147467262 05:40:12.1512 => [ERROR] [UiPath.Studio.Plugin.Workflow.Services.Interfaces.ILoggerServiceProjectEndpoint] [38] d7c4ff36-81df-4e4e-9e24-1ac94579632f-services 16105157 IPackageBindingsGeneratorExtendedServiceShellEndpoint GenerateActiveDocumentPackageBindings 75. # System.InvalidOperationException: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.DataPage'. ---> System.Exception: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.DataPage'. at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.WaitJob(Func2 serverCall, IDataBaseServiceCallArgs args, Action1 resultHandler) at UiPath.Studio.DataBaseServer.Shared.Services.DataBaseServerAdapter.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs)
at UiPath.Studio.Plugin.Workflow.DataBase.DataBaseServiceProxy.Query[TArgs,TResultItem](TArgs queryArgs, IDataBaseServiceCallArgs1 callArgs) at UiPath.Studio.Workflow.Shared.PackageBindings.PackageBindingsGeneratorService.QueryPackageBindings(IReadOnlyCollection1 workflows, CancellationToken cancellationToken)
— End of inner exception stack trace —
at UiPath.Studio.Workflow.Shared.PackageBindings.PackageBindingsGeneratorService.QueryPackageBindings(IReadOnlyCollection1 workflows, CancellationToken cancellationToken) at UiPath.Studio.Plugin.Workflow.PackageBindings.PackageBindingsGeneratorServiceShellEndpoint.GenerateActiveDocumentPackageBindings() at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)

@mironb

It looks like a logging error …can you try to change system activities package version qnd check

Alternately try to analyze or validate the project and check if there are any errors by opening projects panel and see if there is any red exclamation mark on any of the xamls

Cheers

@Anil_G
There are 2 more XML errors, but even if I solve them, how is this related to the main problem?

@mironb

Not those…I want you to check the projects panel and see if there are any errors on the xaml file

Did you happen toc hange the package version and check as well?

Cheers

@Anil_G
When I am trying to update the system activities I get this error

image

@mironb

This looks like there is some issue with connecting to the remote server to get the pckages…try to create a new projecta nd check if the issue persists…then please reachout to IT to whitelist the servers to download the pckages

Cheers