Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
368 stars 302 forks source link

Parse a document requires java, but java is not noted as a requirement for logic apps #1195

Open karlrissland opened 1 month ago

karlrissland commented 1 month ago

Describe the Bug

Running locally in vscode. Have been running and debugging logic apps successfully for a while. Working on a logic app based rag pattern and drop the action 'Parse a Document' into a workflow.

When I debug the workflow, receive an error stating that it could not start the process and mentioned JAVA_HOME.

image

If I remove the parse document action, the workflow runs successfully

I was able to install Microsoft's build of the OpenJDK and was able to succesfully run the workflow with a parse document action. image

Should note that java is required and include it in the LogicApp setup

Plan Type

Standard

Steps to Reproduce the Bug or Issue

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Read_blob_content": {
                "type": "ServiceProvider",
                "inputs": {
                    "parameters": {
                        "containerName": "@triggerBody()?['containerInfo']?['name']",
                        "blobName": "@triggerBody()?['name']"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "AzureBlob",
                        "operationId": "readBlob",
                        "serviceProviderId": "/serviceProviders/AzureBlob"
                    }
                },
                "runAfter": {}
            },
            "Parse_a_document": {
                "type": "ParseDocument",
                "inputs": {
                    "content": "@body('Read_blob_content')?['content']"
                },
                "runAfter": {
                    "Read_blob_content": [
                        "SUCCEEDED"
                    ]
                }
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_blob_is_added_or_updated": {
                "type": "ServiceProvider",
                "inputs": {
                    "parameters": {
                        "path": "pdfs"
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "AzureBlob",
                        "operationId": "whenABlobIsAddedOrModified",
                        "serviceProviderId": "/serviceProviders/AzureBlob"
                    }
                }
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Additional context

No response