Enum value instead of text in XML while runnning in Batch.

Hi All,

I have a strange situaiton. Any pointers are highly appriciated.

I have a scenario in Dynamics AX 2012 RTM where I’m exporting into an XML file.
This process can either be executed manually as well as in batch.

There are few enum elemets which are exported to the xml file.
These enum elements are exported with thier label texts when executed manually which is expected.
However the same process when run in Batch the enum elements are exported with their integer value.

for example

while running manually xml content is shown below



Completed

while running in batch xml content is shown below



2

I fixed this by creating string field in the same table and converting it from enm2str, this however worked fine in Batch, not sure if it is a known or a standard problem.

The second problem is that, with the above fix when the same process executed on different (AOS) batch server(not the default Batch AOS) the file is exporting with the enum element value (as integer) instead of label text,

There must be standard or known issue regarding this, any help or pointers on this is appriciated.

Thanks,

How the data is being exported to the xml file?

AIF, using document service classes. I just want to know if there is standard bug in AX2012 RTM in which the enums have label text (String) in XML when run manually and integer value when runnning in Batch.

Anyone knows about this problem, or come across similar issue?