With the file import via SFTP, you upload the report files of your ERP system to a dedicated storage area of your Lucanet environment, from which Lucanet VAT (Value Added Tax) imports the files. On the Lucanet CFO Solution Platform, the file import via SFTP replaces the classic network drive because the platform does not provide UNC or SMB shares.

You upload the files to the Share/ folder. During the import, VAT reads the Share/ folder, checks every file name against the configured filename pattern, imports the matching files, and then moves them to the Archive/ folder. The upload alone does not trigger an import: A file remains in Share/ until you start an import in VAT.

The following guide is intended for customer IT teams who administer the uploading machine. The guide describes the setup of the SFTP access, the rules for the files, the automation of the upload, and troubleshooting.

If your customer system can send HTTP requests, you can alternatively transmit the data without an export file via the REST import API.

The following diagram shows the infrastructure and the path of a file from the customer network to VAT:

Shows the infrastructure of the file import via SFTP for Lucanet VAT in three zones. On the left, the 'Customer network' with 'ERP export/export folder', 'SFTP client or sync tool', 'Private key (ed25519)', 'Firewall/proxy', and 'No inbound access'; in the middle, the 'Internet' with 'SFTP over SSH, port 22'; on the right, the 'Lucanet CFO Solution Platform' with 'SFTP endpoint' and 'Host key of the endpoint' as well as 'Your Lucanet environment' with the 'Share/' and 'Archive/' folders and the 'Lucanet VAT' module with the areas 'Import', 'Pre-Import', and 'Processing'. Numbered arrows 1 to 5 show the path of a file from the 'SFTP upload' to processing.
Infrastructure and data flow of the file import via SFTP in VAT

A file reaches VAT via SFTP as follows:

  1. You upload the file via SFTP to the Share/ folder.
  2. The SFTP endpoint stores the file in the encrypted storage area of your Lucanet environment.
  3. The import in VAT reads the Share/ folder and checks every file name against the filename pattern.
  4. VAT moves processed files to the Archive/ folder. As a result, the files disappear from Share/.
  5. VAT stores the data in the Pre-Import. From there, the data goes into regular processing.

The platform never opens a connection into your network. You upload the files, and VAT collects them.

The following table summarizes the characteristics of the file import via SFTP in VAT:

CharacteristicDescription
TransportYou upload the files via SFTP to the storage area of your Lucanet environment.
DirectionVAT reads the files from the storage area.
AuthenticationThe sign-in to the SFTP endpoint uses an SSH key pair of the ed25519 type.
TriggerThe import in VAT triggers the processing, not the upload.
MetadataVAT recognizes the company, report, and period from the file name.
Interface type in VATVAT uses the Network drive interface type.
Typical useThe file import suits existing file export routes and companies that previously imported via a network drive.

The file import via SFTP applies to the import of the VAT reports. The file import via SFTP is not available for VAT Audit.

Make sure that the following prerequisites are met in your company before you transfer files to VAT via SFTP:

  • Machine: A machine in your network contains the export folder and uploads the files. For the setup, you usually need administrator rights on this machine.
  • Network: Firewall and proxy allow outbound SFTP connections via TCP 22 to the regional SFTP endpoint.
  • SFTP client: An SFTP client such as WinSCP, FileZilla, Cyberduck, or OpenSSH sftp is installed. For automated operation, you additionally need a sync tool.
  • Password manager: A password manager holds the backup of the private key.

You receive the following information and files from Lucanet:

  • the onboarding kit lucanet-sftp-keygen-version.zip with generators for Linux, macOS, and Windows
  • the host of the SFTP endpoint in the region in which the data of your Lucanet environment is stored
  • your user name for the SFTP endpoint
  • the Share/ target folder and a sample file name according to which you name your export files

Lucanet and your IT team share the setup of the file import via SFTP in VAT. The following table shows the steps and the role that executes each step:

StepRoleContent
1LucanetLucanet sets up the storage area and the SFTP user for your Lucanet environment.
2LucanetLucanet creates an interface of the Network drive type in VAT, maintains the filename pattern, and executes the connection test.
3LucanetLucanet provides you with the onboarding kit, the host, the user name, and the sample file name.
4CustomerYou generate an SSH key pair.
5CustomerYou send only the public key to Lucanet.
6LucanetLucanet registers your public key, compares the fingerprint with you, and confirms the host and user name.
7CustomerYou allow the connection in the firewall, check the host key, and test the connection.
8CustomerYou upload a test file to the Share/ folder.
9CustomerYou execute the import in VAT and check the result.
10CustomerYou automate the upload and monitor it.

Between step 5 and step 7, you wait for Lucanet. As long as Lucanet has not registered your public key and confirmed the host and user name, every sign-in fails. The failed sign-in is not a misconfiguration on your side, but the handover point in the process.

For VAT to find the uploaded files, an interface of the Network drive type exists in VAT. Lucanet creates the interface at the start of the project in the Interface configuration workspace. You access the workspace via the gear icon in the top right corner.

On the Lucanet CFO Solution Platform, VAT hides the Path to netdrive and Path to archive directory fields because VAT automatically uses the Share/ and Archive/ folders of your storage area. In the interface, you maintain the Filename pattern, for example:

text
    
  

The page for creating an interface of the Network drive type is displayed in VAT as follows, for example:

Shows the 'Interface configuration: Network drive' page in VAT with the 'Connection test' and 'Save' buttons, the mandatory 'Name' field, the 'File type' drop-down list, the 'Default interface' drop-down list with the value 'No (optional)', and the 'Filename pattern' field.
The 'Interface configuration: Network drive' page

The Connection test checks reading and writing in one step: VAT reads the Share/ folder and creates an empty test file in Archive/, which VAT then deletes again. Lucanet executes the connection test before you upload for the first time. This way, Lucanet can reliably distinguish permission errors from upload problems.

Lucanet defines the specific filename pattern with you during the project. You receive a sample file name based on the pattern, according to which you name your export files, as described in the File Names for the File Import via SFTP in VAT section.

The sign-in to the SFTP endpoint for VAT uses an SSH key pair of the ed25519 type. You generate the key pair on the machine that will upload the files later. The onboarding kit from Lucanet contains generators for all platforms. Any OpenSSH installation generates the key pair just as well.

To generate the SSH key pair for the file import via SFTP in VAT:

This content was generated using AI and reviewed by Lucanet subject matter experts before publication.