Sækja Wise Scan skjöl úr BC1
WiseScanDocumentExport.fob Wise_Transfer WiseScan Documents_1.0.0.20.app
GIT: https://github.com/wiselausnir/Municipality_Data_Migrations_PTE
Transfer WiseScan Documents — Install & Usage
Fetches attachments from a Wise Scan (NAV 2014) tenant and attaches them to the matching records in Business Central (e.g. G/L Entry, Gen. Journal Line, Appr Header if the Wise Approvals add-on is installed, etc.). Routing is data-driven via the WiseScanTableFieldSetup endpoint — the PTE itself has no hard dependency on any specific source table.
Dependencies: Wise Licensing only.
1. Prerequisites — Wise Scan side (NAV 2014)
You only need to do this once per tenant.
Import
WiseScanDocumentExport.fobinto the NAV 2014 (Wise Scan) database.In the NAV client, open Web Services and publish the four endpoints exactly as shown in
BC14Endapunktar.png:Object TypeObject IDService NamePublishedPage…
WiseScanDocumentQueryYesPage…WiseScanTableFieldSetupYesPage…WiseScanCompaniesYesCodeunit…ExportWiseScanDocumentYesUse exactly these service names — the PTE derives all URLs from them.
Make sure the user account you'll authenticate as has access to the web services.

2. Install the PTE in Business Central
In BC, go to Extension Management → Manage → Upload Extension.
Upload
Wise_Transfer WiseScan Documents_1.0.0.18.app.Accept the dependency on
Wise Licensing.Wait for deployment to finish.
3. Run the report
Search for Transfer Wise Scan Documents and open it.
Fill in the request page:
Municipality (SVEIT) — fill in only the
Tenantfield. The URLs are derived automatically.Manual URL configuration — only fill these if you are NOT on the SVEIT shared tenant. Leave the Tenant field empty.
Credentials — BC14 username and password.
From / To Date — optional document date range. For incremental re-runs, set
From Dateto your last successful run date.Wise Scan Company — auto-selected if the tenant has only one company. Otherwise pick from the dropdown.
Selected Tables — click the AssistEdit (...) button to toggle which tables to import (e.g.
G/L Entry,Gen. Journal Line,Appr Header/Appr Invoice Headerwhen Wise Approvals is installed).
Click OK to run.
Already-imported documents are skipped automatically. The result message reports modified / failed / skipped counts.
4. Tips
Force a fresh fetch of tables and companies — re-validate the Password field (click into it and tab out). The PTE re-fetches on every credential
OnValidate.Multiple Wise Scan companies — the report errors out if more than one company is available and none is picked, so you can't accidentally fetch from the wrong one.
XLSX attachments — automatically repaired for the known trailing-bytes issue during import. To fix an
.xlsxthat was imported before the repair was in place, open the Document Attachment Details page on the attached record and use the PTE Repair Trailing Zeros action (one attachment at a time).Re-runs are safe — set
From Dateto the last run date; the duplicate-skip logic means existing attachments are not re-downloaded.
5. Troubleshooting
Symptom | Likely cause | Fix |
|---|---|---|
"No documents found in Wise Scan service." | Date range / company filter excludes everything. | Widen the date range or change the company selection. |
Falls back to built-in table list |
| Verify the endpoint name and credentials. |
"Multiple Wise Scan companies are available — pick one before running." | Tenant has >1 company and none selected. | Use the Wise Scan Company dropdown to pick one. |
Specific document failed | Record key in Wise Scan doesn't match any record in BC. | Confirm the source record exists; reported as |