Can't run custom RunBaseBatch-extended class

poverocanepoverocane Member Posts: 32
edited 2009-12-14 in Dynamics AX
Hi all and thanks in advance for all your responses...
I've got a problem with a class i created extending system class RunBaseBatch.
I have included in it all necessary methods: run, runsImpersonated, pack, unpack with the right code (i think!)...
Class and its methods work perfectly when i run them directly, but when i schedule the execution, AX says me that the job have been correctly added to the job queue, it shows me the "Execution" and "Ended" states in the dedicated window, but nothing happened.

What can be the problem?

In addition, i can't start the debugger in batch mode, despite i've followed the right procedure to enable it...

Thanks a lot.

Poverocane.
Fantasy is more important than knowledge.
A. Einstein

Answers

  • poverocanepoverocane Member Posts: 32
    The problem was in variable packing/unpacking process.
    This process (override of pack and unpack methods of RunBaseBatch class) not only work to preserve packed variables' values between executions of the class, but also provide a way to "transfer" variable values between client and server tiers.
    On client tier, I was not packing a variable value that i needed on server tier, so this value was ever blank. Once packed, the value is now available.

    For the debugger: some methods can not start the debugger (those on client tier, i presume), but if i open the debugger after adding the breakpoint and before scheduling the job, it works correctly.

    I hope this can help.

    Poverocane.
    Fantasy is more important than knowledge.
    A. Einstein
Sign In or Register to comment.