我想在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'.
答案 0 :(得分:1)
您实际列出的错误不是错误。这只是框架的一些记录。
您必须检查UploadXMLTopics
表以查看执行是否成功。
例如:
select successful
, result
, result_errors
from UploadXMLTopics
where orig_system_reference = 'Create-invoice-1'
请务必查看result
和result_errors
列,了解导致上传失败的原因。