Skip to content

Error Message Index

Find the message you see, then read where it comes from, why it happens and how to fix it. Use the summary table to find your message, or search this page for a distinctive part of it, for example interrupted by host, 412 or timed out.

At a glance

  • Groups Scripts (Custom Step, Custom Event, routes), workflow steps, behaviors, the REST API, Insight widgets, Web Request sources, event settings, your own endpoint
  • Quoted text Is the exact text the platform produces, unless the entry says it is a reported symptom
  • Placeholders {name} marks a value the platform fills in
  • More detail Each entry links to the page that covers the surface

Summary

Error Surface Distinctive text Jump to
Script timed out Custom Step, Custom Event timeout limit was exceeded Details
Property read on undefined Scripts reading 'Metadata' Details
Global variable not found Scripts Global variable {name} was not found. Details
Target work item does not exist Custom Step Target work item does not exist. Details
Content type not found Custom Step Failed to Set Content Type Details
logger is not defined Custom Step logger is not defined Details
console is not defined Scripts, behaviors console is not defined Details
API domain not valid Call External API Api domain is not valid. Details
REST verb not supported Call External API Allowed: [GET, POST] Details
Document has no content type Upload To Destination has no assigned content type Details
Conversion step required Upload To Destination a conversion activity is required Details
Behavior could not be fired Index panel could not be fired. Details
Script interrupted by host Behaviors on the server interrupted by host Details
Lookup could not retrieve data Index panel Could not retrieve data from source. Details
HTTP 412 Precondition Failed REST API 412 Details
Success false with no message REST API "Success": false Details
HTTP 401 Unauthorized REST API User Is Unauthorized on endpoint Details
HTTP 422 Bad Request REST API Bad Request for Details
HTTP 413 Payload Too Large REST API 413 Details
File extension not allowed REST API File extension not allowed Details
Workflow unavailable or no permission REST API Workflow is unavailable. Details
No hold found REST API No hold was found for workitem Details
Secret flag cannot change REST API degrade or upgrade Details
Secret value cannot be viewed REST API marked as secret Details
No permission for secret variables REST API do not have the relevant permissions Details
RPA task identifier errors REST API TaskIdentifier, Bot failed to restart Details
Widget endpoint not reached Insight widget custom insight endpoint could not be reached Details
JSON does not match schema Insight widget does not match schema Details
JSON not valid or not parsed Insight widget Failed to validate json, could not be parsed Details
Unexpected response shape Insight widget unexpected response shape Details
Widget has no connector Insight widget not configured with a WebRequest connector Details
Header has a line break Insight widget may not contain line breaks Details
Custom Text stays on Loading Insight widget Loading… (symptom) Details
No WebRequest connectors Widget settings No WebRequest connectors are configured Details
Bearer token rejected Web Request source rejected the bearer token Details
Validate did not return 200 Web Request source did not return a 200 OK response Details
Request timed out Web Request source The request to the endpoint timed out. Details
Source endpoint not reached Web Request source The endpoint could not be reached. Details
Source setting not valid Web Request source Enter a valid HTTP or HTTPS URL. Details
Provider name already exists Event settings Event provider name already exists. Details
Index name must be lowercase Event settings must be lowercase. Details
Azure Function cannot load System.Linq Your own endpoint System.Linq, Version=8.0.0.0 Details

Custom Step and scripts

These come from the Custom Step, the Custom Event step and JavaScript routes.

Script timed out

  • Message Error in executing Javascript V8. Javascript timeout limit was exceeded
  • Variant The message ends with while ApplyingChanges. The time ran out during builder.ApplyChanges().
  • Where The step error of a Custom Step or a Custom Event step, in Monitor.
  • Cause The script ran longer than its limit. A loop that never ends causes this too.
  • Limits A Custom Step has 120 seconds by default (the tenant setting CustomStepTimeout, configuration group workflow, in milliseconds). A Custom Event step has 10 seconds.
  • Fix Look for a loop whose exit condition is never met. Move heavy work to your own endpoint. Ask KnowledgeLake Support to raise CustomStepTimeout for your tenant only if the work is legitimately long.
  • Related Debugging Custom Step

Property read on undefined

  • Message TypeError: Cannot read properties of undefined (reading 'Metadata')
  • Where A Custom Step, Custom Event or JavaScript route error, inside Error in executing Javascript V8. This is the engine's message, not KnowledgeLake text.
  • Cause The code reads .Metadata from something that does not exist: batch.Documents[0] on a work item with no documents, an index past the end of a list, a find(...) that matched nothing, or doc.metadata (wrong case).
  • Fix Check before you read: if (batch.Documents.length === 0) { return; }. Check the result of a search before you use it. Names are case-sensitive: Metadata, Documents, DocumentId.
  • Related Common JavaScript errors

Global variable not found

  • Message Global variable {name} was not found.
  • Where The same text in every workflow script: a Custom Step or Custom Event step that calls GlobalVariables.Get(name), a JavaScript or Global Variable route, and a JavaScript or Global Variable step setting preprocessor.
  • Cause No global variable has that exact name. Names are case-sensitive.
  • Fix Create the variable in the Workflow app with the exact name, or correct the name in the script.
  • Note Secret variables can be read from workflow JavaScript, so a secret variable does not cause this message.
  • Related Workflow global variables

Target work item does not exist

  • Message Target work item does not exist.
  • Where A Custom Step that calls builder.CopyDocumentToWorkItem or builder.MoveDocumentToWorkItem.
  • Cause These methods copy or move a document only into a work item that the same script run created with builder.CreateWorkItem(name). The id of an existing work item (for example one that waits on a hold) is not accepted.
  • Fix Create the target in the script and use the id CreateWorkItem returns. To put a document into an existing work item, use the API from your own code: read the file with V1_KWorkItemAPI/GetDocumentFile and add it with AddDocument.
  • Related Custom Step reference

Content type not found

  • Message Failed to Set Content Type on Document {id}. ... no Content Type With Id {id} could be found.
  • Where A Custom Step that calls builder.SetContentType(documentId, contentTypeId).
  • Cause The content type id is wrong, or the repository service could not be reached.
  • Fix Use the content type's internal id (InternalId from V1_RepositoryAPI/GetContentTypes). Keep it in a global variable instead of a literal.
  • Related Custom Step reference

logger is not defined

  • Message ReferenceError: logger is not defined
  • Where A Custom Step error. This is the engine's message.
  • Cause The script uses logger (or http). Those were objects of the Process Designer "Modify Your Metadata" activity. A Custom Step does not have them.
  • Fix Remove them. To record what the script decided, write it to metadata: builder.SetBatchMetadata("General", "StepNote", "...").
  • Network calls A Custom Step has no network access. Call outside systems with Call External API.
  • Related Common JavaScript errors

console is not defined

  • Message ReferenceError: console is not defined
  • Where A Custom Step, a Custom Event step, a JavaScript route, or a Custom Behavior that runs on the server.
  • In the browser The same mistake shows as "Behavior Custom Behavior could not be fired."
  • Cause These engines do not provide console. Only Custom Gizmos (a normal browser page) have it.
  • Fix Write diagnostic values to metadata (Custom Step) or to a field (behavior). Remove console calls before you save.
  • Related Common JavaScript errors

Workflow steps

API domain not valid

  • Message Api domain is not valid.
  • Where A Call External API step error.
  • Cause The URL points to a local or private address (localhost, 127.0.0.1, 10.x, 192.168.x, link-local) or to a host that does not pass validation. The step refuses it before it sends any request.
  • Fix Use a public HTTPS host. To test your endpoint, deploy it (an Azure Function, a Lambda function URL). To debug on your machine, hard-code a work item id in a debug build instead of calling from the workflow.
  • Related Debugging Call External API and functions

REST verb not supported

  • Message Rest verb {verb} is not supported. Allowed: [GET, POST]
  • Where A Call External API step error.
  • Cause The step is set to PUT, PATCH or DELETE. The list offers them, but the step runs only GET and POST.
  • Fix Use POST. If the target needs another verb, put your own endpoint between the step and the target.
  • Related Call External API

Document has no content type

  • Message Document with id '{id}' has no assigned content type.
  • Where An Upload To Destination step error.
  • Cause The document has no General.DocTypeId, so the step does not know the destination.
  • Fix Classify the document before the release step, set the content type with builder.SetContentType in a Custom Step, or set General.DocTypeId when you add the document through the API.
  • Related Find where a released document landed

Conversion step required

  • Message A conversion activity is required prior to upload for Document {id}. ...
  • Variant The document structure has changed for document with id '{id}'; a conversion activity is required prior to release.
  • Where An Upload To Destination step error.
  • Cause The document has pages or several files, and no single file to release.
  • Fix Add a conversion step (for example Convert To Searchable PDF) before Upload To Destination, after any step that splits, merges or reorders pages.
  • Related The work item model

Index panel behaviors

Behavior could not be fired

  • Message Behavior Custom Behavior could not be fired.
  • Where On the field in the index panel (Index, Upload, Scan, QC, Search).
  • Cause One of three things. The script threw an error (a typo, an object that does not exist such as Context or console, a property read on undefined). The script ran longer than 5 seconds in the browser (1.5 seconds in the search panel). The behavior is on a field type that Custom Behaviors do not support.
  • Fix Open the browser developer tools (F12) and read the console; the engine's error is there. Use context.username (lowercase), panel["FieldKey"] and builder.SetField....
  • Field types Check that the field is one of the types Custom Behaviors support: AppendSuggestDropDownList, Boolean, Currency, CheckBoxCollection, DateTime, DateTime2, DropDownList, MultiLineTextbox, NumericUpDown, RadioButtonCollection, Table or Textbox.
  • Related Debugging Custom Index Behaviors

Script interrupted by host

  • Message Error: Script execution interrupted by host
  • Where When Custom Behaviors run on the server. That happens in four places: the Index Your Documents step, the Run Indexing Behaviors step, the Start QC Task step (when Mark Valid Documents as Indexed is on, the default), and Search bulk edit. Customers also report it while indexing.
  • Cause A behavior script ran longer than 5 seconds and the engine stopped it.
  • Fix Remove slow loops. A behavior must do a small amount of work on the fields of one panel. Move bulk logic to a Custom Step.
  • Browser only A behavior that only makes sense in the browser can skip the server run with if (context.app === "worker") { return; }.
  • Related Debugging Custom Index Behaviors

Lookup could not retrieve data

  • Message Could not retrieve data from source.
  • Where On a field with a Source Lookup (cascading dropdown), Term Set Lookup or Multi Key Automatic Indexing behavior.
  • Cause The query to the source failed: the source connection is down, the query or a parameter is wrong, or the gateway cannot reach the data source.
  • Fix Test the source connection in its configuration. Check the parameter fields that feed the lookup.
  • Reported Customers report that SQL lookups match case-sensitively, so a value typed in another case finds nothing. Normalize the case of the key field before the lookup.
  • Related Debugging Custom Index Behaviors

REST API

HTTP 412 Precondition Failed

  • Status HTTP 412 Precondition Failed
  • Where Any API call, often in a Call External API step that calls back into KnowledgeLake, or in your own code.
  • Cause The action ran and failed. The reason is in the body: Messages[].MessageKey, after Root message:.
  • Common reasons The work item id does not exist, a workflow step holds the work item at that moment, an id is not a document of that work item, a file type is not allowed.
  • Fix Read the message. For a locked work item, wait and retry with a growing delay. Keep the UNIQUE ERROR ID for Support.
  • Related API introduction

Success false with no message

  • Symptom "Success": false with no message. Your code reports a failed call but shows no reason.
  • Cause The code reads a property that does not exist. The envelope has no Message property. The text is in MessageKey (HTTP 401, 422) or in Messages[].MessageKey (HTTP 412).
  • Usual reason A missing token feature or user permission.
  • Fix Print MessageKey, Messages[].MessageKey and the HTTP status. Then follow the entry for that status.
  • Related API introduction

HTTP 401 Unauthorized

  • Message User Is Unauthorized on endpoint /api/{Group}/{Action} (HTTP 401)
  • Where Any API call.
  • Cause The token is missing, wrong, expired or deleted; the token does not have the feature for that action; or its user lost the permission.
  • Features Some actions need the features Query Jobs, Manage Jobs, Manage Bots or Manage Secret Global Variables.
  • Fix Check the token on Configuration > Services > API Access, and the user's permissions in Configuration > Permissions > API Access. Edit the token to add the feature.
  • After rotation Update every place that holds the token, including Call External API headers.
  • Related Authentication

HTTP 422 Bad Request

  • Message Bad Request for /api/{Group}/{Action} (HTTP 422)
  • Where Any API call.
  • Cause The body does not match the action's parameter, for example an id that is not a GUID or a property of the wrong type.
  • Fix Compare the body with the spec. Property names are case-sensitive.
  • Related API introduction

HTTP 413 Payload Too Large

  • Status HTTP 413 Payload Too Large
  • Where A file upload through the API. Reported by customers with custom uploaders.
  • Cause A component in front of the application (the network in front of your tenant, or a gateway on your side) refused the request size.
  • Fix Send files as multipart/form-data, not base64 in JSON, one file per request. Split very large scans at the source. Ask KnowledgeLake Support for the limit that applies to your tenant.
  • Related Create a work item and send it to a workflow

File extension not allowed

  • Message File extension not allowed: .{ext}
  • Where HTTP 412 from AddDocument, AddPage, SetDocumentFile or StoreBatchFile.
  • Cause The tenant does not accept that file type.
  • Fix Convert the file before upload, or ask your administrator which file types are allowed.
  • Related KWorkItem API reference

Workflow unavailable or no permission

  • Message Workflow is unavailable. or User does not run have permission to workflow.
  • Where HTTP 412 from V1_WorkflowAPI/SendToWorkflow.
  • Cause The workflow id is wrong or the workflow is not active; or the token's user does not have Run permission on it.
  • Fix Get the id from GetAllWorkflows. Give the service account Run permission on the workflow.
  • Related KWorkItem API reference

No hold found

  • Message No hold was found for workitem {id}
  • Where HTTP 412 from V1_WorkflowAPI/ReleaseHold.
  • Cause The work item is not on hold: its hold was already released (often by an earlier try of the same call), it expired, or the work item never waited.
  • Fix Check the work item's state with V1_KWorkItemAPI/GetWorkState before you release. If your endpoint can run twice for one work item, treat this message as "already released".
  • Related KWorkItem API reference

Secret flag cannot change

  • Message You cannot degrade or upgrade a global variable's secret property after creation!
  • Where HTTP 412 from V1_WorkflowAPI/SetGlobalVariable or SetSecretGlobalVariable.
  • Cause A variable with that name exists with the other secret setting. The secret flag cannot change in either direction after creation.
  • Fix Call SetSecretGlobalVariable for a secret variable and SetGlobalVariable for a non-secret one. To change the flag, create a variable with a new name and update the workflows that read it.
  • Related Workflow global variables

Secret value cannot be viewed

  • Message Cannot view global variable as it is marked as secret. ...
  • Full text The message continues: To see the secret's global variable's tags and type, please use GetGlobalVariableMetadata.
  • Where HTTP 412 from V1_WorkflowAPI/GetGlobalVariable.
  • Cause The API never returns a secret value.
  • Fix Call GetGlobalVariableMetadata for its name, tags, type and IsSecret. Keep the secret value in your own secret store as well.
  • Related KWorkItem API reference

No permission for secret variables

  • Message You cannot modify secret property on this global variable because you do not have the relevant permissions
  • Where HTTP 412 from V1_WorkflowAPI/SetSecretGlobalVariable, or GetGlobalVariableMetadata on a secret variable.
  • Cause The token or its user does not have Manage Secret Global Variables.
  • Fix Give the service account the feature, and select it on the token together with Manage Workflows.
  • Related Authentication

RPA task identifier errors

  • Messages TaskIdentifier is required., '{id}' is not a valid task identifier. or Bot failed to restart
  • Where HTTP 412 from V1_RPAAPI/ResubmitRPATask (the second also from QueryForLatestRPATasks).
  • Cause The body has no TaskIdentifier; the identifier is not in the form {TaskNumber}.{RunNumber}, for example 12.1; or the RPA service could not restart the task.
  • Fix Take TaskIdentifier from QueryForLatestRPATasks. For Bot failed to restart, check the bot in Monitor and try again later.
  • Related Jobs, RPA and Monitoring API

Insight widgets

These show on a Custom Text, Custom Time Series or Custom Categorical widget, or in its settings.

Widget endpoint not reached

  • Message The custom insight endpoint could not be reached.
  • Where On a Custom Text, Custom Time Series or Custom Categorical widget, under "Failed to load widget data".
  • Cause KnowledgeLake got no usable answer from your endpoint. One message covers a status outside 2xx, a timeout, a DNS, TLS or connection failure, a host that resolves to a local or private address, and an API Relative Path that is an absolute URL.
  • Fix Look for the request in your endpoint's log. No log line means the request never arrived. A logged status means your endpoint answered: fix that status.
  • Related Debugging Insight widgets

JSON does not match schema

  • Message Custom insight json does not match schema: ...
  • Where On a custom Insight widget. Up to two schema errors follow, each as location: message.
  • Cause Your endpoint's JSON does not match the widget's published schema, for example version sent as a number instead of a string.
  • Fix Read the location in the message and correct that part of the response.
  • Related Debugging Insight widgets

JSON not valid or not parsed

  • Messages Failed to validate json from custom insight endpoint. or The custom insight endpoint returned a response that could not be parsed.
  • Where On a custom Insight widget.
  • Cause The body is not JSON (for example an HTML error page), or KnowledgeLake could not read it as the widget's type.
  • Fix Call your endpoint yourself with the same headers and check that it returns application/json with the documented shape.
  • Related Debugging Insight widgets

Unexpected response shape

  • Message The custom insight endpoint returned an unexpected response shape.
  • Where On a custom Insight widget.
  • Cause The response has no data object.
  • Fix Return { "version": "1", "type": "...", "data": { ... } } as the reference shows.
  • Related Web Request source reference

Widget has no connector

  • Message Custom insight is not configured with a WebRequest connector.
  • Where On a custom Insight widget. The widget itself shows "Not configured" with a prompt to select a WebRequest connector.
  • Cause No Web Request source is selected in the widget settings.
  • Fix Open the widget settings and select the source.
  • Related Debugging Insight widgets

Header has a line break

  • Message Custom insight header names and values may not contain line breaks.
  • Where On a custom Insight widget.
  • Cause A custom header name or value in the widget or source settings has a line break.
  • Fix Remove the line break, often a pasted trailing newline.
  • Related Debugging Insight widgets

Custom Text stays on Loading

  • Symptom A Custom Text widget stays on Loading… and never shows a value. This is a symptom, not an error message.
  • Cause Your endpoint returned an empty values array. The widget has no empty state, so it keeps the loading text.
  • Fix Always return at least one value, for example a zero or a "No data" text.
  • Related Debugging Insight widgets

No WebRequest connectors

  • Message No WebRequest connectors are configured. Add one in the Connections app.
  • Variant Could not load WebRequest connectors. Try again.
  • Where In a custom widget's settings, in the connector picker.
  • Cause The tenant has no Web Request source yet, or the list failed to load.
  • Fix Add a Web Request source in the Connections app, then reopen the widget settings.
  • Related Insight widgets introduction

Web Request sources

These show on the Web Request source page.

Bearer token rejected

  • Message The endpoint rejected the bearer token (401/403). Check the token and try again.
  • Where On the Web Request source page after Test Connection or SAVE.
  • Cause GET {Endpoint URL}/validate returned 401 or 403. The token on the source and the token your endpoint expects differ, or a gateway refused the call.
  • Fix Paste the token again in both places. Watch for a trailing space or line break.
  • Related Debugging Insight widgets

Validate did not return 200

  • Message The endpoint did not return a 200 OK response.
  • Where On the Web Request source page after Test Connection.
  • Cause /validate returned a status other than 200, 401 or 403, for example 404 or 204.
  • Fix Serve GET {Endpoint URL}/validate and return exactly 200.
  • Related Debugging Insight widgets

Request timed out

  • Message The request to the endpoint timed out.
  • Where On the Web Request source page after Test Connection.
  • Cause Either no answer arrived within Timeout (seconds), or KnowledgeLake refused the host before it sent anything.
  • On purpose A host that does not resolve, or resolves to a local or private address, gets this same text on purpose, so the message does not reveal which internal hosts exist.
  • How to tell A refused host fails at once; a real timeout fails after the full Timeout.
  • Fix If the test fails at once, check the spelling and DNS, and use a publicly reachable host. If it fails after the full Timeout, wake the endpoint (a cold start can be slow) and test again, or raise the Timeout.
  • Related Debugging Insight widgets

Source endpoint not reached

  • Message The endpoint could not be reached.
  • Where On the Web Request source page after Test Connection.
  • Cause The host resolved, but the request failed: the TLS certificate was not trusted, or the connection was refused or reset.
  • Fix Open the endpoint from a machine outside your network. Fix the certificate, or open the port to the internet.
  • Related Debugging Insight widgets

Source setting not valid

  • Messages Enter a valid HTTP or HTTPS URL., An endpoint URL is required., A bearer token is required. or Enter a timeout greater than zero seconds.
  • Where On the Web Request source page, next to the setting.
  • Cause A required setting is empty, the Endpoint URL is not an absolute http:// or https:// URL, or the Timeout is 0 or less.
  • Fix Fill in the setting, for example https://your-function-app.azurewebsites.net/api/insight.
  • Related Debugging Insight widgets

Event settings

Provider name already exists

  • Message Event provider name already exists.
  • Where In the Add a Secondary Event Provider wizard, on the Welcome step.
  • Cause Another provider on the tenant has that name.
  • Fix Choose a unique name.
  • Related Events and the Secondary Event Provider

Index name must be lowercase

  • Message {name} must be lowercase.
  • Where In the wizard, on the Configure step of an Elastic provider.
  • Cause The index name has capital letters.
  • Elastic rules Index names must be lowercase, and must not start with -, _, + or . or contain spaces or \ / * ? " < > | , #.
  • Fix Create a lowercase index in Elastic and enter that name.
  • Related Events and the Secondary Event Provider

Your own endpoint

Azure Function cannot load System.Linq

  • Message Could not load file or assembly 'System.Linq, Version=8.0.0.0'
  • Where The first call to an Azure Function (in-process model, .NET 8). This is a reported symptom from the Azure Functions host, not KnowledgeLake text.
  • Cause The function app runs .NET 8 in-process without the setting that enables it.
  • Fix Add the app setting FUNCTIONS_INPROC_NET8_ENABLED = 1 in Azure, and in local.settings.json for local runs. Restart the app.
  • Related Your own endpoint