Skip to main content
Solved

What Does ‘Check the Server Logs for a Detailed Message’ Mean in Workflow BPA?


Forum|alt.badge.img+6

I received the following general message:

“An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.”

Where can I locate the server logs?
 

 

Best answer by kamnlk

Hi, 

For the logs, you need to access the middle tier OData server logs to get more information about the details of this error 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • 115 replies
  • Answer
  • August 6, 2024

Hi, 

For the logs, you need to access the middle tier OData server logs to get more information about the details of this error 


Forum|alt.badge.img+6
  • Author
  • Sidekick (Employee)
  • 36 replies
  • August 6, 2024

 

I’d like to share a lesson I’ve learned. If you’re dealing with a string that exceeds 2000 characters, it’s crucial to clear it before the end of a Workflow/BPA.
 

 

 

 

The Full Story:

I received an error: “An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.” In the server log, oData.log, there is an error: ORA-12899: value too large for column “IFSCAMSYS”.“ACT_HI_VARINST”.“TEXT_” (actual: 2344, maximum: 2000). This seems to be a limitation within Camunda.

This was because during a REST call, I encountered a very long string.

However, @kamnlk showed me a workaround. ACT_HI_VARINST is a table used to store historical variables. The TEXT_ column has a limit of 2000 characters. But it gets populated at the end of the process. So, if we set the string to an empty string before finishing the workflow, it bypasses the issue:

execution.setVariable("strResponse", "")

Please note that execution.removeVariable("strResponse") will not work in this case.

This problem seems to be only related to strings, as binary data like JSON objects are not stored in the ACT_HI_VARINST.TEXT_ column.

For more information, you can refer to the following links:

A big thank you to @kamnlk for the support and the suggested solution.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings