bad parameter or other API misuse

bad parameter or other API misuse

AmirKhezri
Observer Observer
359 Views
2 Replies
Message 1 of 3

bad parameter or other API misuse

AmirKhezri
Observer
Observer

 

[FlexSim 25.2.0]

 

Hello, I’m encountering an issue when running my simulation experiments in parallel over long durations (ranging from one week to one month). However, the problem does not occur when I run the experiments for shorter periods (e.g., one day) or when I execute them sequentially.

The error message is as follows :

 

 
FlexScript exception: SQLite Error 21 - bad parameter or other API misuse - in query: SELECT change_count FROM jobs WHERE id = ? at MAIN:/project/library/Experimenter>behaviour/eventfunctions/getJobChangeCount at line 0 c: MODEL:/Tools/Experimenter
Has anyone experienced this issue or knows how to resolve it?

Thank you in advance for your help.

0 Likes
360 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Mentor
Mentor

Saying "or when I execute them sequentially" makes it sound like you are running multiple jobs in parallel. If they use the same sqlite database file than getting errors is not suprising. Only a single job should access those at a time.

If they use different database files than I don't know what the issue could be. Though I don't know if starting multiple jobs from the same FlexSim instance is supported.

0 Likes
Message 3 of 3

AmirKhezri
Observer
Observer

moehlmann_fe Thank you for your reply!


Maybe I wasn’t clear earlier — I’m not running multiple FlexSim instances in parallel. The parallelization I mentioned refers to the internal parallelization within the simulation itself (as shown in the Experimenter settings, e.g., “Max Cores”).

0 Likes