MetricSign
EN|NLRequest Access
Medium severityfabric

Power BI Refresh Error:
OrcJavaInvocationException

What does this error mean?

A Fabric Data Factory copy activity using the ORC format connector failed because of a Java invocation error. Common causes include Java heap memory exhaustion, an outdated self-hosted integration runtime version, or a missing DB2 package (SQLSTATE=51002).

Common causes

  • 1Java heap memory exhaustion ('java.lang.OutOfMemory', 'Java heap space') on the integration runtime — usually an older runtime version
  • 2Self-hosted Integration Runtime (SHIR) running out of resources while processing ORC files
  • 3Missing DB2 package for the user (SQLSTATE=51002 / SQLCODE=-805 in the error message)
  • 4Concurrent copy runs on the same SHIR node exceeding available memory

How to fix it

  1. 1If the error contains 'SQLSTATE=51002 SQLCODE=-805': bind the missing DB2 package for the user account running the pipeline
  2. 2If the error contains 'java.lang.OutOfMemory' or 'Java heap space': upgrade the Self-hosted Integration Runtime to the latest version
  3. 3After upgrading the SHIR, limit the number of concurrent copy runs on that runtime node to reduce memory pressure
  4. 4If using Azure IR, the Java memory is managed automatically — a retry after a few minutes may resolve transient OOM conditions

Beyond the docs

Common practitioner solutions not covered in the official documentation.

  1. 1For Self-hosted IR: check available memory on the host machine and consider scaling up or distributing the load across multiple SHIR nodes

Official documentation: https://learn.microsoft.com/en-us/fabric/data-factory/connector-troubleshoot-orc-format

Other fabric errors