Generative Classifier/Extractor not working

Generative Classifier/Extractor suddenly have an error, even though it worked previously with the configuration. This is the error:

25.0.161-cloud.19480+Branch.release-s161.Sha.36ba680b31a6cf3514e6ea6416d1f6f64f74ad37.36ba680b31a6cf3514e6ea6416d1f6f64f74ad37
Source: Generative Classifier
Message: Request CorrelationId: a962199c-1bb7-418c-9168-4b63719d3565
Request PredictionId: p4jEXQvBj3F82dF37o2w2rHMvYN4lbblJ4aX1qbfWv8=_14389c58-140f-4c20-ba8d-0ce50d6f6c2e
An item with the same key has already been added. Key: tenantaudit
Exception Type: UiPath.Shared.Activities.TrackingException
UiPath.Shared.Activities.TrackingException: Request CorrelationId: a962199c-1bb7-418c-9168-4b63719d3565
Request PredictionId: p4jEXQvBj3F82dF37o2w2rHMvYN4lbblJ4aX1qbfWv8=_14389c58-140f-4c20-ba8d-0ce50d6f6c2e
An item with the same key has already been added. Key: tenantaudit —> UiPath.CoreIpc.RemoteException: An item with the same key has already been added. Key: tenantaudit at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at UiPath.Service.Core.ServiceDiscoveryStore.GetResourceUrl(String resourceName, CancellationToken ct) 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)
— End of inner exception stack trace —
at UiPath.DocumentUnderstanding.ML.Activities.GenerativeClassifier.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.DocumentUnderstanding.ML.Activities.ClassifierAsyncTaskActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

This is what I tried to solve this issue:

  1. Uninstalled UiPath Studio completely (Including all the cache in AppData, localAppData, ProgramData, Nuget, etc).
  2. Reinstalled UiPath Studio and start a simple process from scratch.
  3. Removed all Tenants in UiPath Administration and created a new Tenant just to test again.

The same error is still there. I checked my AI unit, it still have many available:

This is my current workflow:

The error listed “An item with the same key has already been added. Key: tenantaudit”, I didn’t create any dictionary or even used the word ‘tenantaudit’ before.
I am very lost, what can I do now to use Generative Classifier/Extractor again?

@Vincent_Tan

Did you try going to manage packages and change the version of ml activities

Cheers

Yeah, my current version is 1.31.2, which is the latest version. Here are my other packages:

Btw I using UiPath Studio version 2025.0.161

@Vincent_Tan

try to change it to any other version lower also is fine

cheers

I can’t seem to downgrade the package, it always shows this symbol. Even after I saved and tried both ‘yes’ and ‘no’ option in the ‘downgrade detected’ pop up.


hi @Vincent_Tan ,

is this happening for every file ? Also can you show me the prompt settings under Generative classifier ?

After I reinstall UiPath Studio, I currently only have one file, which is the one showing error now. I created another file just now to test, it has the same error. So yes, this is happening for every file.

This is my Generative prompt settings:


It worked normally 2 days ago, it started to have this error since yesterday after I tried merging 2 xaml files. I merge by copy paste.

@Vincent_Tan

it might be dependent on other packages you have try to downgrade other packages also

cheers

Can you revert you xaml file to previous version ?

if it works then instead merging file try a new creating flow

I can’t revert it back already since I had deleted all my xaml files including all the other UiPath cache when I uninstall UiPath Studio.

I see… thanks for the advice, I successfully downgraded the packages. After that, I replace the Generative Classifier. However, I still encounter the same error.

This is my current packages version:

@Anil_G @Darshan_Sable

Good day to you sir, I have tried installing UiPath on a brand-new laptop to test this, it appears to have the same error. My assumption is there is something wrong with my UiPath Orchestrator, to prove this, may I have your help to test Generative Classifier on your end? Thanks!

@Vincent_Tan

Let me do a quick test and confirm back

Cheers