29
May
Using the DE CreateResult object for error handling
in SFMC Pros
Comments
I just found a very useful object in the ExactTarget API called DataExtensionCreateResult.
When you call the Create method for a DataExtensionObjectRow Object, you might get a Status Code of 2 (General Error) from the API if there are problems with the Data in your row (for instance, a Date with an invalid format).
If you want to know the specific error, cast your CreateResult object to a DataExtensionCreateResult object and look at the ValueErrors property. That property contains all the details related to the fields in your row that have errors.