2017-03-22 40 views
1

我想將發票插入精確在線。當我插入發票手冊,它工作正常,但與Invantive控制工具,我得到一個錯誤:將發票插入精確在線

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'. 

回答

1

你居然列表中的錯誤是不是錯誤。這只是框架所做的一些日誌記錄。

您必須檢查UploadXMLTopics表以查看執行是否成功。

例如:

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

請務必檢查resultresult_errors列,看看是什麼原因導致上傳失敗。