axaptax++dynamics-ax-2012dynamics-365-operations

Convert 'Container' type data into serialization without X++ Conpeek


I have a table where one of the columns contains container data stored as a hexadecimal string. I'd like to import this data into an external program to read the contents.

Dynamics Axapta provides the X++ method 'conpeek' but that would require asking the database engineer to run a batch script to decompress the data I need ahead of time.

Instead I'd like to know how the format of the variable type works so i can read in the hexadecimal and convert it into a CSV or something using a more portable and accessible language.


Solution

  • Containers are not meant to be read by any but AX itself. Containers do not have a documented layout, but it is doable to reverse engineer it.