Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karlrissland opened this issue Oct 8, 2024 · 0 comments

Comments

@karlrissland
Copy link

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

  • on a machine without Java Installed
  • add a trigger and add a parse document action
  • run and debug the workflow

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant