This is the error that I am receiving:
When I create a document and I have a currency code (Moneda) of either MXN,USD, or CAD I am able to get a signed document back, but if I use any other currency code, like AUD, I get the above error message back. I don't know if by sending my original string and xml document if it is possible to be able to figure out what could be the issue. But it sure would be appreciated if anybody has any idea on what could be causing this issue.<Resultado Descripcion="error: Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios en blanco delante. línea 1, posición 128. Trace: en System.Xml.XmlTextReaderImpl.Throw(Exception e) en System.Xml.XmlTextReaderImpl.Throw(String res, String arg) en System.Xml.XmlTextReaderImpl.ParsePI(StringBuilder piInDtdStringBuilder) en System.Xml.XmlTextReaderImpl.ParseElementContent() en System.Xml.XmlTextReaderImpl.Read() en System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r) en System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o) en System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) en System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) en System.Xml.Linq.XDocument.Parse(String text) en ConfirmacionDocumentos.Controllers.ConfDoctosApiController.InsertarDocumento(InputInsert inputdocumet)" IdRespuesta="9600" Detalle="CFDI33_ValidaConfirmacion; Detalle RespuestaDataPower" />
I've attached the original string and xml document for USD which works, and I've attached the AUD original string and xml that doesn't work. The AUD currency code is what gives me the above error message.
Does anybody have any idea what could be causing this issue?
Thank you so much!