Starta ett nytt ämne
a

adam Strauss

INVALID_DATA :: Data form incorrect:. Validation of XML message failed: Could not validate xml: The element 'salesinvoice' has invalid child element 'salesinvoiceduedate'

06-08-2022 9:11 am tekijä adam Strauss

 I'm trying to import SalesInvoice in Netvisor with following data using python


 

<root>
  <salesInvoice>
    <salesInvoiceDate format="ansi">2022-08-04</salesInvoiceDate>
    <salesInvoiceAmount iso4217currencyCode="USD" currencyRate="1.0">6445,75</salesInvoiceAmount>
    <salesInvoiceStatus type="netvisor">open</salesInvoiceStatus>
    <salesInvoiceDueDate format="ansi">2022-08-06</salesInvoiceDueDate>
    <salesInvoiceDeliveryDate format="ansi">2022-08-06</salesInvoiceDeliveryDate>
    <invoicingCustomeridentifier type="customer">3</invoicingCustomeridentifier>
    <invoiceLines>
      <invoiceLine>
        <salesInvoiceProductLine>
          <productIdentifier type="customer">1</productIdentifier>
          <productName>Basketball</productName>
          <productunitPrice type="net">123,0</productunitPrice>
          <productVatPercentage vatcode="KOMY">24</productVatPercentage>
          <salesInvoiceProductLineQuantity>25</salesInvoiceProductLineQuantity>
        </salesInvoiceProductLine>
      </invoiceLine>
      <invoiceLine>
        <salesInvoiceProductLine>
          <productIdentifier type="customer">1</productIdentifier>
          <productName>Football</productName>
          <productunitPrice type="net">110,0</productunitPrice>
          <productVatPercentage vatcode="KOMY">24</productVatPercentage>
          <salesInvoiceProductLineQuantity>23</salesInvoiceProductLineQuantity>
        </salesInvoiceProductLine>
      </invoiceLine>
    </invoiceLines>
  </salesInvoice>
</root>

But getting error which is given in title of question and below.


 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Root>
    <ResponseStatus>
        <Status>FAILED</Status>
        <Status>INVALID_DATA :: Data form incorrect:. Validation of XML message failed: Could not validate xml: The element 'salesinvoice' has invalid child element 'salesinvoiceduedate'. List of possible elements expected: 'salesinvoicefreetextbeforelines salesinvoicefreetextafterlines salesinvoiceourreference salesinvoiceyourreference salesinvoiceprivatecomment invoicingcustomeridentifier'.</Status>
        <TimeStamp>6.8.2022 9:01:36</TimeStamp>
    </ResponseStatus>
</Root>

 

 

1 kommentar

M

Mika Karjalainen

08-08-2022 4:23 pm tekijä Mika Karjalainen

Hi Adam, we have contacted you via email to help you with this issue :)

Logga in eller Registrera digför att publicera en kommentar