Find your error below by its message text. Each section gives the reason and the action to take.
Schema for partition 'xxxx' does not exist
java.util.concurrent.ExecutionException: net.pricefx.service.DMPersistenceServiceException:
java.lang.IllegalArgumentException: Schema for partition 'xxxx' does not exist
Reason
Analytics is not set up.
Action
If the customer has a license for Analytics, contact Support to set it up.
Source [source name] not accessible
Source DMDS.[source name] not accessible
When a job or a query on the Datamart fails, the same errors appear in this form:
Could not restore context: {=[Source DMDS.[source name] not accessible, Source DMDS.[source name] not accessible]}
Reason
The Datamart does not contain all key fields of the named Data Source, or it cannot reach them from its own key fields. Without these key fields, the Datamart cannot reach the other fields of that Data Source.
The system checks the Datamart when you save it, and before jobs and queries on it. If the check fails, the job stops with "Could not restore context".
The Datamart can report "Invalid Datamart fields: [field names]" instead. Then the listed fields take their values from a source that does not exist, or from another Datamart. Each of these fields also shows "Source [source name] not accessible".
Action
-
For each Data Source in the message, find its key fields.
-
Add the missing key fields to the Datamart.
-
Deploy the Datamart.
If the Datamart reports "Invalid Datamart fields", first check that the source of each listed field exists and is a Data Source, not a Datamart. The system checks the key fields only after all field sources are valid. So after this correction, the Datamart can report missing key fields.
Object xxx is locked
java.util.concurrent.ExecutionException: net.pricefx.service.ObjectLockedException:
Object xxx is locked
Reason
Not documented yet.
Action
Not documented yet.
Reading from xxx failed; file length -1 read length 12288
net.pricefx.service.impl.dmsession.FBCException: java.lang.IllegalStateException:
Reading from xxx failed; file length -1 read length 12288 at 156382424 [1.4.197/1]
Reason
Not documented yet.
Action
Not documented yet.
java.lang.IllegalStateException: This store is closed
Reason
There is a bug in the (H2 DB) MVStore library that Pricefx used up to Salty Dog 3.5.5. See PFCD-5075.
Action
Since Salty Dog 3.5.6, Pricefx uses the latest H2 DB release, and this error should not appear.
Could not send query: query size is >= to max_allowed_packet (16777216)
o.h.e.j.spi.SqlExceptionHelper - (conn=360710)
Could not send query: query size is >= to max_allowed_packet (16777216)
Reason
The SQL query is too big.
Action
See the article Avoid Returning Big Data in Element Result.
Thread died
Reason
The server was restarted or crashed.
Action
Check if the instance was restarted. If not, check the server log.
Unable to acquire JDBC Connection
Reason
The database server is not available.
Action
Contact Support to check the instance.
Calling method 'createQuery' is not valid without an active transaction
java.util.concurrent.ExecutionException: net.pricefx.service.DMPersistenceServiceException:
Calling method 'createQuery' is not valid without an active transaction
(Current status: MARKED_ROLLBACK)
Reason
This typically happens if you get a DatamartContext and try to use it later in a different place or thread. Make sure not to store it or pass it around. If this is not the case, an error caused the transaction to be rolled back.
Action
Check the server logs for more information.
Unable to connect to [database host] using any of the configured drivers in datamart.database
Unable to connect to [database host] using any of the configured drivers in datamart.database (partition: [partition name])
Reason
The server cannot connect to the Analytics database of the partition. The database is down or unreachable, or the connection settings are wrong, for example the database host, the database name or the credentials. The message does not include the cause. The cause is in the server log.
Action
Contact Support to check the Analytics database of the instance. Include the host and the partition name from the message.
Too many new instances created: xxxx
Reason
Too many objects were created in the server memory. Sometimes the Groovy engine creates unexpected new instances of objects.
Action
See the article Put "def" outside of the loops.
Maximum In-Memory row count of 100000 exceeded.
Reason
The Data Load job tries to work with more rows than the allowed maximum (100,000).
Action
-
Enable batching on the Data Load.
-
Or split the Data Load into several smaller ones.
No content to map due to end-of-input
No content to map due to end-of-input at
[Source: okhttp3.ResponseBody$BomAwareReader@50fdc87a; line: 1, column: 0]
Reason
The logic that you want to test-execute has a bug. Example:
api.trace("THIS", "FrozenLastFinalPrice", FrozenLastFinalPrice)
BigDecimal FrozenLastFinalPrice = api.getElement("FrozenLastFinalPrice")?.toBigDecimal()
FrozenLastFinalPrice was not declared before the api.trace call. Salty Dog 3.5 returned no error; El Presidente 3.6 returns this one. Fixing the code resolved it.
Action
Check the server logs for more information.
Missing cloudconvert api token in config
Reason
The CloudConvert service needs a token.
Action
Ask Support to enter the CloudConvert token on that instance.
Calling method 'getHibernateFlushMode' is not valid without an active transaction
n.p.s.c.i.actions.AbstractAction - Action.call: rolling back transaction due to unexpected error:
org.hibernate.HibernateException: Calling method 'getHibernateFlushMode' is not valid without an active transaction (Current status: MARKED_ROLLBACK)
Reason
The server returns this message after an Analytics logic execution failed.
Action
-
Wait until the lock is released.
-
Replacing closures with a
forloop can also help.
Not starting new StreamingSearchExecutor as the max of 1 is already running
04:20:34.269 [CalculationTask-zZ1KK] [customer_qa] INFO n.p.f.DefaultFormulaEngine - Caught error in [AllItemsLoaderTesting - RedBook - Customers] : ERROR(@15): Not starting new StreamingSearchExecutor as the max of 1 is already running
java.sql.SQLException: java.sql.SQLException: Formula [AllItemsLoaderTesting[3203]] init step error: RedBook [via Customers] : ERROR(@15): Not starting new StreamingSearchExecutor as the max of 1 is already running
Caused by: java.sql.SQLException: Formula [AllItemsLoaderTesting[3203]] init step error: RedBook [via Customers] : ERROR(@15): Not starting new StreamingSearchExecutor as the max of 1 is already running
Reason
Not documented yet.
Action
Increase the limit to at least 2 (or more), depending on your logic and its api.stream usage at the given time:
<!-- StreamingSearchExecutor (api.stream): max concurrent streamers in a given partition -->
<maxStreamingSearchConcurrency>1</maxStreamingSearchConcurrency>
Batch update returned unexpected row count from update [X]; actual row count X; expected: X
Reason
Not documented yet.
Action
Not documented yet.
Chunk XXX not found
java.sql.SQLException: java.sql.SQLException: java.lang.IllegalStateException:
Chunk XXX not found [1.4.200/9] at net.pricefx.service.impl.dmload.PACalculationTask.doCalculation(PACalculationTask.java:463)
Reason
Not documented yet.
Action
-
Follow the Distributed Calculation Dataload approach instead.
-
In some cases, setting
mvstoreAutoCommitBufferInMBto0in the cluster configuration might help.
StreamQuery did not produce results in the allotted time
java.lang.IllegalStateException: StreamQuery did not produce results in the allotted time
Reason
A streaming query against a Datamart, Data Source, or Data Feed did not return its first row before the logic element timeout ran out. The query was started by DatamartContext.streamQuery(). The time limit is the timeout of the logic element that runs the query:
-
Default:
formulaEngine.script.timeoutInSec(5 seconds unless set differently for the instance). -
Element override: the Timeout Override field on the logic element, capped by
formulaEngine.script.maxTimeoutInSec(900 seconds by default). -
Analytics Data Loads and Optimization Models use a longer limit,
formulaEngine.script.paTimeoutInSec(48 hours by default).
The error is a slow-query problem, not a logic error. A later run of the same job often succeeds because the database is less busy.
Action
-
Narrow the query: filter on indexed fields, request only the projections you need, and use a smaller date range.
-
Check whether other jobs query the same tables at the same time, and reschedule if they overlap.
-
If the query is efficient but large, raise the Timeout Override on the element, within the instance maximum.
-
If the error repeats on simple queries, contact Support to check the Analytics database for load or locked tables.
Job execution failed (OOMKilled). Last log lines:
Reason
On Kubernetes deployments, background jobs run as pods. The pod used more memory than its limit, and Kubernetes stopped it. OOMKilled is the termination reason that Kubernetes reports. The text after Last log lines is the end of the pod log, which shows what the job was doing when it stopped.
Action
-
Open the job in Administration > Logs > Jobs & Tasks and read the last log lines to find the step that used the memory.
-
If the job is a calculation logic, reduce the data held in memory. See Data Querying using api.find() and api.stream() and Performance Use Cases - Lessons Learned / Dos and Don'ts.
-
If the job is a Data Load, enable batching or switch to a Distributed Calculation Dataload.
-
If the job is a Job Trigger Calculation (for example, a Python Engine job), request a higher
memoryLimitfor the image in PlatformManager. -
If the job cannot be split and still needs more memory, contact Support.
java.lang.OutOfMemoryError: Java heap space
Reason
The Java process that ran the calculation used all its heap memory. The log often shows the task name (for example, PACalculationTask) and a heap dump (Dumping heap to ... java.hprof). On Kubernetes, the same problem can appear as OOMKilled.
Common causes in logics:
-
Collecting a large result into a list or map instead of processing rows as they stream.
-
Reading all fields of a record when the logic needs only a few.
-
Keeping data in
api.globalorapi.localfor the whole job. -
Building new maps for each row or line item inside a loop.
Action
Fix the logic as described in Job execution failed (OOMKilled) above. For Data Loads that process many rows, see also Maximum In-Memory row count of 100000 exceeded. on this page.
java.lang.reflect.UndeclaredThrowableException
MyLogic [via MyLibrary] : ERROR(@63): java.lang.reflect.UndeclaredThrowableException
Reason
A Groovy API call in the logic failed. The call reported its error as a Pricefx calculation error, and the error reached the logic wrapped in UndeclaredThrowableException. The wrapper hides the original message. For example, api.customFormApi().withId(id).delete() fails in this way when no Custom Form has this ID.
Action
-
Open the server log or the job details and find the
Caused by:line under the error. It holds the original message, for example "Error when deleting". -
Fix the call that the original message names. The line number in
ERROR(@63)points to the logic line of the call.