Error : InternalServerError and Prediction Failed in NER model

Hi, After labelling in label-studio and creating custom ML skill successfully for NER model we are getting the below error while consuming that NER ML skill.

Our streaming logs shows that the pipeline ran successfully and also the updated package is deployed.

{
“code”: “InternalServerError”,
“message”: “Prediction Failed”,
“stacktrace”: null,
“trace_id”: “38cd059f-42fa-40d7-8cc0-1b65b904f221”,
“reason”: “{"message": "module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’", "stacktrace": " File \"/microservice/main.py\", line 32, in predict\n df = self.mymodel.predict(df)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\", line 27, in decorate_context\n return func(*args, **kwargs)\n File \"\", line 99, in predict\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/frame.py\", line 8839, in apply\n return op.apply().finalize(self, method=\"apply\")\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 727, in apply\n return self.apply_standard()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 851, in apply_standard\n results, res_index = self.apply_series_generator()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 867, in apply_series_generator\n results[i] = self.f(v)\n File \"\", line 99, in \n File \"\", line 129, in predict_row\n File \"\", line 146, in predict_spans\nValueError: not enough values to unpack (expected 2, got 1)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\", line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\", line 75, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\", line 90, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\", line 25, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\", line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’"}”
}

Can someone please help in fixing this error?

Hello @vibhor11!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff