Hello,
I have coded a solution to create a client, user, attach agent and import objects from xml.
I am using the getImportMessages() to return the messages when the objects are imported.
In terms of trapping any import errors/issues does anyone have a solution for doing so? Is it just a case of outputting the messages and then looking for keywords e.g. 'skipped'
If I need to check the output messages does anyone else know of any other keywords I should look for?
Cheers,
Dan.
I have coded a solution to create a client, user, attach agent and import objects from xml.
I am using the getImportMessages() to return the messages when the objects are imported.
In terms of trapping any import errors/issues does anyone have a solution for doing so? Is it just a case of outputting the messages and then looking for keywords e.g. 'skipped'
If I need to check the output messages does anyone else know of any other keywords I should look for?
Cheers,
Dan.
Just another idea: Do the messages thrown possibly have "U000001"-style prefixes, as most Automic messages have? Maybe you could use those, e.g. treat anything that's not a known benign message code as an error, and narrow it down from there? Message codes would probably be more future proof than keywords, and also mean it potentially works with AEs in foreign translations?
Cheers,
Carsten