On AX2012 batch run always over a CIL context.
For debugging a BATCH without attach Visual Studio to AOS instance you can run in this way:
1. Create the batch job and assing a batch group not managed by a batch server
2. Create this method on BatchRun class:
server static public void runJobStaticCodeIL(RecId batchId)
{
container ret;
XppILExecutePermission xppILExecutePermission;
;
xppILExecutePermission = new XppILExecutePermission();
xppILExecutePermission.assert();
ret = runClassMethodIL(classStr(BatchRun), staticMethodStr(BatchRun, runJobStaticCode), [batchId]);
CodeAccessPermission::revertAssert();
}
3. On batch activity get the JOB ID
2. Run the follow script
static void batchRun(Args _args)
{
Batch batch;
;
select batch where batch.BatchJobId == 5637161890;
BatchRun::runJobStaticCodeIL(batch.RecId);
}
Now you can debug it!
Iscriviti a:
Commenti sul post (Atom)
AX 2012: The request was aborted: Could not create SSL/TLS secure channel
The error you're encountering, "The request was aborted: Could not create SSL/TLS secure channel," can occur due to various re...
-
Ussally you have to save a report to an output file for example store it or send it over mail. Here an example to save a report into Excel...
-
A simple way to export a data entity, using the powerful data management framework. You need a definition group, where the entity is mapped ...
-
NumberSeq numberSeq; InventTransferTable inventTransferTable; InventTransferLine inventTransferLine; InventDim inventDim; ; ttsbegin; ...
Nessun commento:
Posta un commento