Error in AP Invoices reuse library - in 3 way match accelerator

Hello,

I am trying to install the 3 way match accelerator in our system. One of the instructions in the Deployment is to make some changes in the AP Invoices reuse library in Studio and publish the library to Orchestrator.

My Studio version is 2023.10.4 and I am using the UiPath Cloud version of UiPath

I cannot publish the library to Orchestrator as I get the following error:
Error ERROR Validation Error System.InvalidCastException: Unable to cast object of type ‘Microsoft.CodeAnalysis.VisualBasic.BoundCall’ to type ‘Microsoft.CodeAnalysis.VisualBasic.BoundAssignmentOperator’.
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.VisitObjectInitializerExpression(BoundObjectInitializerExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundObjectInitializerExpression.Accept(BoundTreeVisitor visitor)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitList[T](ImmutableArray1 list) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitBadExpression(BoundBadExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundBadExpression.Accept(BoundTreeVisitor visitor) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitParenthesized(BoundParenthesized node) at Microsoft.CodeAnalysis.VisualBasic.BoundParenthesized.Accept(BoundTreeVisitor visitor) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitConversion(BoundConversion node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.VisitConversion(BoundConversion node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitReturnStatement(BoundReturnStatement node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitList[T](ImmutableArray1 list)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitBlock(BoundBlock node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.VisitLambda(BoundLambda node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.VisitLambdaConversion(BoundExpression operand, BoundLambda relaxationLambda)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.VisitConversion(BoundConversion node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.VisitExpressionWithoutStackGuard(BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeVisitor.VisitExpressionWithStackGuard(Int32& recursionDepth, BoundExpression node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitReturnStatement(BoundReturnStatement node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node)
at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitList[T](ImmutableArray1 list) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalker.VisitBlock(BoundBlock node) at Microsoft.CodeAnalysis.VisualBasic.BoundTreeWalkerWithStackGuard.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.Visit(BoundNode node) at Microsoft.CodeAnalysis.VisualBasic.DiagnosticsPass.IssueDiagnostics(BoundNode node, DiagnosticBag diagnostics, MethodSymbol containingSymbol) at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler.BindAndAnalyzeMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics, Binder containingTypeBinder, MethodSymbol& referencedConstructor, Boolean& injectDefaultConstructorCall, Binder& methodBodyBinder) at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler.CompileMethod(MethodSymbol method, Int32 methodOrdinal, Int32& withEventPropertyIdDispenser, Int32& delegateRelaxationIdDispenser, Predicate1 filter, TypeCompilationState compilationState, ProcessedFieldOrPropertyInitializers processedInitializers, Binder containingTypeBinder, SynthesizedSubmissionFields previousSubmissionFields, MethodSymbol& referencedConstructor)
at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler.CompileNamedType(NamedTypeSymbol containingType, Predicate1 filter) at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler._Closure$__33-0._Lambda$__0() at Roslyn.Utilities.UICultureUtilities.<>c__DisplayClass5_0.<WithCurrentUICulture>b__0() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler.WaitForWorkers() at Microsoft.CodeAnalysis.VisualBasic.MethodCompiler.GetCompileDiagnostics(VisualBasicCompilation compilation, NamespaceSymbol root, SyntaxTree tree, Nullable1 filterSpanWithinTree, Boolean hasDeclarationErrors, BindingDiagnosticBag diagnostics, Boolean doLoweringPhase, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.GetDiagnosticsForAllMethodBodies(Boolean hasDeclarationErrors, BindingDiagnosticBag diagnostics, Boolean doLowering, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.GetDiagnosticsWithoutFiltering(CompilationStage stage, Boolean includeEarlierStages, BindingDiagnosticBag builder, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.GetDiagnostics(CompilationStage stage, Boolean includeEarlierStages, DiagnosticBag diagnostics, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicCompilation.GetDiagnostics(CancellationToken cancellationToken)
at System.Activities.Validation.RoslynExpressionValidator.Validate(Activity currentActivity, ValidationScope validationScope)
at System.Activities.Validation.ValidationExtension.PostValidate(Activity activity)
at System.Activities.Validation.ActivityValidationServices.InternalActivityValidationServices.b__7_1(IValidationExtension validationExtension)
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) at System.Linq.Enumerable.ConcatIterator1.ToList()
at System.Activities.Validation.ActivityValidationServices.InternalActivityValidationServices.InternalValidate()
at System.Activities.Validation.ActivityValidationServices.Validate(Activity toValidate, ValidationSettings settings)
at System.Activities.Presentation.Validation.ValidationService.CoreValidationWork(ValidationReason reason, CancellationToken cancellationToken) Record Operations/UpdateStatusForInvoiceRecord.xaml

Has anyone faced this error before and were you able to resolve it?

Thanks,
Ninad