Ik krijg de melding:
itgengpr012
Kan actieve partities niet wijzigen in … omdat de partitie ‘3889’ niet bestaat.
Kies alleen geatoriseerde en gelicentieerde partities.
Voorgestelde alternatieven: …
Nader onderzoek blijkt dat de partitie 3889 de status Archived heeft in Exact Online.
Is het mogelijk om alleen te queriën op actieve Exact Online divisies zodat bovenstaande melding niet meer voorkomt op die betreffende divisies?
Dit is de gebruikte query:
set requests-parallel-max@eol 16
use select code, 'eol' from systemdivisions@eol limit 50
create or replace table documentstoexport@mss
( file_contents blob
, file_name_path varchar2
, subject varchar2
, typedescription varchar2
, divisionlabel varchar2
, filename varchar2
, accountcode varchar2
, accountname varchar2
, categorydescription varchar2
, contactfullname varchar2
, documentdate datetime
, projectcode varchar2
, projectdescription varchar2
, salesinvoicenumber int32
, salesordernumber int32
, shopordernumber int32
, journalcode varchar2
, transactionentrynumber int32
, transactiondescription varchar2
, transactionlabel varchar2
, projectlabel varchar2
, accountlabel varchar2
)
bulk insert into documentstoexport@mss
( file_contents
, file_name_path
, subject
, typedescription
, divisionlabel
, filename
, accountcode
, accountname
, categorydescription
, contactfullname
, documentdate
, projectcode
, projectdescription
, salesinvoicenumber
, salesordernumber
, shopordernumber
, journalcode
, transactionentrynumber
, transactiondescription
, transactionlabel
, projectlabel
, accountlabel
)
select dae.AttachmentFromUrl file_contents
, dae.DivisionLabel
|| '/'
|| dct.CategoryDescription
|| '/'
|| to_char(dct.documentdate, 'YYYYMMDD')
|| '-'
|| dct.hid
|| case
when dct.subject is not null
then '-' || normalize(dct.subject, 64, false)
end
|| '-'
|| dae.filename
file_name_path
, dct.Subject
, dct.TypeDescription
, dae.DivisionLabel
, dae.FileName
, dct.AccountCode
, dct.AccountName
, dct.CategoryDescription
, dct.ContactFullName
, dct.DocumentDate
, dct.ProjectCode
, dct.ProjectDescription
, dct.SalesinvoiceNumber
, dct.SalesorderNumber
, dct.ShoporderNumber
, txn.JournalCode
, txn.EntryNumber transactionentrynumber
, txn.Description transactiondescription
, case
when txn.entrynumber is not null
then txn.journalcode || ' - ' || txn.entrynumber || ': ' || txn.description
else null
end
transactionlabel
, case
when dct.projectcode is not null
then dct.projectcode || ' - ' || dct.projectdescription
else null
end
projectlabel
, case
when dct.accountcode is not null
then dct.accountcode || ' - ' || dct.accountname
else null
end
accountlabel
from exactonlinerest..Documents@eol dct
join exactonlinerest..DocumentAttachmentFiles@eol dae
on dct.id = dae.document
left
outer
join TransactionLinesIncremental@eol txn
on txn.entryid = dct.financialtransactionentryid
and txn.LineNumber = 0
select file_name_path FileName
, file_contents Contents
from documentstoexport@mss v
local export documents in Contents to "C:\acme\" filename column filename