1

我想在 Exact Online 中插入发票。当我插入发票手册时,它工作正常,但使用 Invantive Control 工具时出现错误:

insert into UploadXMLTopics
( topic
, payload
, division_code
, orig_system_reference
, orig_system_group
) 
select 'Invoices'
,      '<?xml version="1.0" encoding="utf-8"?>'
|| '<eExact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="eExact-XML.xsd">'
|| '    <Invoices>'
|| '        <Invoice>'
|| '          <Journal code="70"/>'
|| '            <Description>Test invoice</Description>'
|| '            <YourRef>Your name</YourRef>'
|| '            <Notes>Test note</Notes>'
|| '            <OrderedBy ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'   
|| '            <DeliverTo ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'       
|| '            <InvoiceTo ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'   
|| '            <PaymentCondition code="30" />'
|| '            <SalesPerson id="{92e96458-82ba-4a1f-a056-61bda3b42f04}" />'
|| '            <InvoiceLine line="1">'
|| '                <Description>Article name</Description>'
|| '                <Item code="0003" />'
|| '                <Quantity>2</Quantity>'
|| '                <Note><![CDATA[THIS IS A NOTEDIT IS EEN NOTITIE]]></Note>'
|| '            </InvoiceLine>'
|| '        </Invoice>'
|| '    </Invoices>'
|| '</eExact>'
,     123456,
,     'Create-invoice-1'
,     'Create-invoice'
from  me

我得到的错误:

[12292] Total execution time: 562 ms at level 0: 'Run SQL action insert into UploadXMLTopics ( topic , payload , division_code , orig_system_reference , orig_system_group )  select 'Invoices', '<?xml version="1.0" encoding="utf-8"?>' || '<eExact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="eExact-XML.xsd">' || ' <Invoices>' || '  <Invoice>' || '    <Journal code="70"/>' || '   <Description>Test invoice</Description>' || '   <YourRef>Your name</YourRef>' || '   <Notes>Test note</Notes>' || '   <OrderedBy ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'  || '   <DeliverTo ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'   || '   <InvoiceTo ID="{c3b73aa4-c5c1-49bc-8a76-2802a26c5973}" code="289" />'  || '   <PaymentCondition code="30" />' || '   <SalesPerson id="{92e96458-82ba-4a1f-a056-61bda3b42f04}" />' || '   <InvoiceLine line="1">' || '    <Description>Article name</Description>' || '    <Item code="0003" />' || '    <Quantity>2</Quantity>' || '    <Note><![CDATA[THIS IS A NOTE]]></Note>' || '   </InvoiceLine>' || '  </Invoice>' || ' </Invoices>' || '</eExact>', 123456, 'Create-invoice-1', 'Create-invoice' from me '. 
[12292] Saving 175 SQL History items to 'C:\Users\fleemkuil\Invantive\Prd\Invantive Query Tool\sqlhistory.xml'. 
4

1 回答 1

1

您列出的错误实际上不是错误。这只是框架所做的一些日志记录。

您必须检查UploadXMLTopics表以查看执行是否成功。

例如:

select successful
,      result
,      result_errors
from   UploadXMLTopics
where  orig_system_reference = 'Create-invoice-1'

确保检查resultresult_errors列以查看导致上传失败的原因。

于 2017-03-23T13:19:02.143 回答