Issues with OCR and Document Extraction in Pega 26 Community Edition

We are exploring the OCR and document extraction capabilities in Pega 26 Community Edition and have encountered a few issues. I would appreciate any guidance on whether these features are supported in the Community Edition and how to configure them correctly.

1. DocAI Connect – OCR Configuration and Property Mapping

Initially, I configured DocAI Connect and enabled OCR. However, when testing the configuration, I received the following error:

“Request failed. Extraction service base URL is not configured.”

Based on suggestions in other forum posts, I tried creating the following DSS:

Pega-Engine/services/genai/smartchunking/servicebaseurl/default

However, I am unsure what value should be configured for this setting.

  • What should the DSS value be?

  • Is any additional configuration required to enable OCR in DocAI Connect?

  • Is OCR supported in Pega Community Edition, or does this require assistance from Pega Support or a different environment?

After encountering this issue, I removed the OCR settings from DocAI Connect and tested it again. This time, I noticed that the response was not being saved to the property defined in the Unstructured configuration.

When tracing the execution, I can see the extraction document content in pyResponseBodyPOST on GPTRequest Page in the trace, but the value does not appear on the work page where DocAI Connect is executed.

Is there an additional configuration step required to map the extraction response to the target property?

2. GenAI Connect – Document Agent Option Missing

As an alternative, I tried using GenAI Connect for document extraction. However, I cannot find the “Enable Document Agent to extract information from documents” checkbox, even though the EnableDocumentAgent toggle is enabled.

Is there another setting or prerequisite required to make this option available?

Could someone please clarify whether these OCR and document extraction capabilities are fully supported in Pega 26 Community Edition, or whether there are any limitations specific to this edition?

Any guidance on the correct configuration, required DSS values, property mapping, or missing Document Agent option would be greatly appreciated.

Thanks in advance for your help!

@BrahmeshTech have you seen How to use Pega GenAI Connect for intelligent document processing (updated: new "DocAI Connect" in 26.1.1) from @Will_Cho. He outlines some additional DSS you need to set (GenAI) for '26 and the need to use DocAI connect (in '26)

Thanks for your response. Yes, I had already referred to Will Cho’s post, How to use Pega GenAI Connect for intelligent document processing (updated: new “DocAI Connect” in 26.1.1).

However, I’m still encountering the following issues:

  1. DocAI Connect – OCR Configuration: When I enable OCR, I receive the error: “Request failed. Extraction service base URL is not configured.” I tried configuring the DSS mentioned in other forum discussions, but I’m unsure what value should be specified.

    DSS name: Pega-Engine/services/genai/smartchunking/servicebaseurl/default

    Could you please clarify the expected value for this DSS and whether any additional configuration is required?

  2. GenAI Connect – Document Agent Option Missing: Both the EnableGenerativeAI and EnableDocumentAgent toggles are enabled, but I still cannot find the “Enable Document Agent to extract information from documents” checkbox when creating a GenAI Connect rule.

In my DocAI Connect example, I am not using “Preprocess using OCR” but still able to process the document and map to the case fields. When I click the “?” icon and read the addition info, it sounds like this option is needed ONLY when the DocAI agent can’t process the document (maybe it’s a very complex document). Did you first verify if the DocAI agent wasn’t sufficient to process your document?

I also don’t find the “Enable Document Agent to extract information from documents” option in GenAI Connect. I’m assuming that is expected. If not, I’d suggest to raise a incident ticket with Pega GCS.

I’m using Pega Infinity 26.1.1.

Thanks for the response.I had also tried executing DocAI Connect without enabling “Preprocess using OCR”. However, I’m still facing an issue where the extraction response is not being mapped to the target property configured in the DocAI Connect rule.

When I trace the execution, I can see the extracted document content in the pyResponseBodyPOST property on the GPTRequest page. However, the extracted value is not getting populated in the corresponding property on the work page where DocAI Connect is invoked.

Process configuration

Another difference noticed.. i’m using Structured response and the system was smart enough to map to the two properties provided. I believe I had to name the property meaningfully. I have also done more complex structured response in the past like List and it still worked fine. Maybe try a structured response and validate the same.

Thanks for taking the time to respond. It works fine when we keep the properties at the workpage level. However, when we set the response mode to {pagename}.{propertyname}, it doesn’t work as expected, and there may be an underlying issue that we haven’t been able to identify yet.

For now, we’re good with the current workaround. Thanks again for your time, support, and all your responses. Really appreciate it!

Hi @BrahmeshTech

Thank you for calling this out. We have been observing a similar issue when working with unstructured extraction. The extracted DocAI output is generated successfully, but the values are not being copied to the configured output properties. We have also noticed that the DocAI Agent fails when a single-page property is used as the target mapping.

Could you please let us know if you were able to resolve this issue in DocAI Connect on v26.1.1? We ask because the same mapping approach appears to work correctly when using a standard GenAI Connect rule in v26.1.0, which suggests the behavior may be specific to the DocAI implementation.