sdk-dotnet
sdk-dotnet copied to clipboard
getTransactionDetailsRequest throws XML exception
Certain transactions are throwing the following error when trying to get the transaction details
System.InvalidOperationException: 'There is an error in XML document (1, 40).'
Inner Exception <getTransactionDetailsResponse xmlns='AnetApi/xml/v1/schema/AnetApiSchema.xsd'> was not expected.
Most requests are successful. Just a few specific transactions have this error, but I can find no differences between the transactions to explain the exception behavior.
Hi,
Thank you for reaching out to us. Can you confirm if there is anything different between the successful request and the failed request? Maybe there are some slight differences in the data.
I've looked at them side by side. There's literally no difference except the credit card that was used. It's the same customer, same name, all the info is the same.
And the request itself is the exact same except for the transaction id.
I can retrieve the data via the postman POST call. After looking at the data retrieved, the only difference between the failed requests via the SDK and successful is this
"purchaseOrderDateUTCDateTime": "0001-01-01T00:00:00",
"purchaseOrderDateUTC": "0001/01/01"
under transaction -> order