sdk-dotnet icon indicating copy to clipboard operation
sdk-dotnet copied to clipboard

getTransactionDetailsRequest throws XML exception

Open Bb2jake opened this issue 5 years ago • 3 comments

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.

Bb2jake avatar Feb 17 '20 23:02 Bb2jake

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.

gnongsie avatar Feb 20 '20 10:02 gnongsie

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.

Bb2jake avatar Feb 20 '20 23:02 Bb2jake

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

Bb2jake avatar Feb 20 '20 23:02 Bb2jake