AX call unpack of the task class, with the contents of the Batch.Parameters field, but since we are creating a new entry to the table this field is empty.
What AX should do, and what RunBase normally does, is then to call initParmDefault of the task class to initalize it with for example a base query.th for example a base query.
Here is the code to insert in \Data Dictionary\Tables\Batch\Methods\showDialog in order to fix this issue.
Replace:
runClass.unpack(this.Parameters)With:
// As RunBase normally would do, we need to
// call initParmDefault here, if there are no
// values to unpack
if (!runClass.unpack(this.Parameters))
{
runClass.initParmDefault();
}