Hi all,
We are getting an error when we run the job queue. the error we get is "The value "" can't be evaluated into type Boolean".
Does anyone know how to resolve this issue.
Hi all,
We are getting an error when we run the job queue. the error we get is "The value "" can't be evaluated into type Boolean".
Does anyone know how to resolve this issue.
Another simple way, you can add a button on a page, this button executes the Codeunit or Report set in the Job queue.
Then I think you can use debug.
PS: This problem has been solved in BC, the button below has been added.
Hope this helps as well.
Thanks.
ZHU
Sorry...just realized you are in NAV--not BC.
For NAV, you CAN debug a Job Queue Entry, it's just a little trickier. Easiest thing to do would be to have your developer debug his own user session, and then run the desired object (codeunit or report) from the development environment.
If you must debug the Job Queue when it runs at the system-scheduled time, then it's best to put a delay in the Job Queue like this...
locaprocedure OnBeforeRunJobQueueEntry(var JobQueueEntry: Record "Job Queue Entry"; var Skip: Boolean) begin Sleep(10000); //to allow Session to show and be debugged end
Then when the Job Queue is about to start, you refresh your "User Sessions" window repeatedly until you see the new session popup. Click debug, and you're off.
You can debug a specific job queue entry by:
For some reason, the debugger was not capturing the job queue.
our developer was able to look into the code but still the issue is not resolved.
Hi, just adding some info.
It seems to be related to the method below.
System.Evaluate(var Any, Text [, Integer]) Method
Hope it can give you some hints.
Thanks.
ZHU
Then there is a bug in the report or codeunit you are trying to run in the jobqueue.
You should have your developer debug the code.
Apparently the code is trying to convert an empty string into a Boolean value and that does not work very well.
Are you able to run the same process manually?
If you get same error manually then debug the error and solve it.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156