Error with Intelligent Keyword Classifier

Hello everyone,
I have encountered an error in a process that was already published and working correctly. The error message is the following:
Intelligent Keyword Classifier: Request CorrelationId: 4c5c8c7e-c4aa-453f-b6c9-2e9830127df5 Request PredictionId: -1113407169 Invalid character after parsing property name. Expected ‘:’ but got: c. Path ‘[3].TermsWithScores[34].Score’, line 1, position 147081

Could someone please indicate to me how to fix it and where to do it, as I am a little confused when the process is already published

@Josep

Can you first try finding the differences between the file which failed and the other ones…this does not look like some process error…basically the classifier jaon data is going wrong

Cheers

This is a process to extract tax declaration data from my clients. The file has nothing different except for the company that filed the tax. But I’m going to try with a tax form that I already extracted the data

Hi @Josep ,
Thanks for reaching out to #UiPath Community,

You can go through these steps which might find helpful for clearing the error.

  • Check the input data: The error message indicates that there is a problem with the data being processed by the Intelligent Keyword Classifier. Check if there is any invalid data or special characters in the input data that may be causing the issue. You can also try to validate the input data against the JSON schema to ensure that it is valid.
  • Check the JSON response: If the input data is correct, then the issue may be with the JSON response returned by the Intelligent Keyword Classifier. Check if the JSON response is valid and contains the expected ‘:’ character in the appropriate places.
  • Update the process: If you identify the issue with the JSON response, you can try to update the process to handle the invalid character. You may need to modify the JSON parsing logic in the process to handle the invalid character.
  • Republish the process: Once you have made the necessary changes to the process, you can republish it to deploy the updated version. To do this, open the process in UiPath Studio, make the required changes, and then publish the updated version to your Orchestrator instance.
  • Test the updated process: After republishing the process, test it to ensure that it is working correctly and the error message no longer appears.

If you find this working, please mark it as a solution :writing_hand:

Regards,
@pratik.maskar

I’ve tried with some files that I extracted information from a few days ago without any problems, but I get the same error. Other times I’ve had issues with corrupt JSON files, I’ve solved it by deleting the content and starting over. But I would like to know why it’s happening. It’s a process that has worked correctly dozens of times.

Error message:
Request CorrelationId: a3642278-aba2-431d-a9b4-8deed56af149
Request PredictionId: 1270610327
Invalid character after parsing property name. Expected ‘:’ but got: c. Path ‘[3].TermsWithScores[34].Score’, line 1, position 147081.

RemoteException wrapping UiPath.Shared.Activities.TrackingException: Request CorrelationId: a3642278-aba2-431d-a9b4-8deed56af149
Request PredictionId: 1270610327
Invalid character after parsing property name. Expected ‘:’ but got: c. Path ‘[3].TermsWithScores[34].Score’, line 1, position 147081. —> RemoteException wrapping Newtonsoft.Json.JsonReaderException: Invalid character after parsing property name. Expected ‘:’ but got: c. Path ‘[3].TermsWithScores[34].Score’, line 1, position 147081.
at Newtonsoft.Json.JsonTextReader.ParseProperty()
at Newtonsoft.Json.JsonTextReader.ParseObject()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor1 creator, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, String id, Boolean& createdFromNonDefaultCreator) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor1 creator, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, String id, Boolean& createdFromNonDefaultCreator)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at UiPath.SmartData.DocumentClassification.Storage.FileKeywordVectorProvider.d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.SmartData.DocumentClassification.Classification.KeywordVectorClassification.VectorSpaceClassifier.d__19.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.SmartData.DocumentClassification.Classification.KeywordVectorClassification.VectorSpaceClassifier.d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.IntelligentOCR.Activities.DocumentClassification.IntelligentKeywordClassifier.d__21.MoveNext()
— End of inner exception stack trace —
at UiPath.IntelligentOCR.Activities.DocumentClassification.IntelligentKeywordClassifier.d__21.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.IntelligentOCR.Activities.DocumentClassification.ClassifierAsyncTaskActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.SmartData.Utils.Tasks.TaskExtensions.<>c__DisplayClass0_0`1.<b__0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.IntelligentOCR.Activities.DocumentClassification.ClassifierExecutor.d__30.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.IntelligentOCR.Activities.DocumentClassification.ClassifyDocumentScope.d__40.MoveNext()

@Josep

If you have the json by any chance(very rare) can you try parsing it on a json parser and check if there are any issues on it

cheers

I have run the process from the studio and it has completed without any issues and without having to modify anything.

Do you think that if I publish it again, it could solve the problem?

@Josep
Yes It Will.

Regards,
@pratik.maskar

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.