Skip to content
iQBus HomeDocumentationBlogContact
Updated November 14, 2026
Adapters/File Share adapter
Adapter

File Share adapter

Two adapters over one file share abstraction. The Listener picks files up from a share and publishes a message per file; the Caller writes one file per message. The Authentication decides the protocol.

ADAPTER · RECEIVE · SEND File Share Pick files up from a share, or write files to a share DIRECTION ↓ ↑ Receive & Send ADAPTERS Listener · Caller PROTOCOLS Azure Files · SMB PORT Receive or Send

File Share is not one adapter with two modes. It is two adapters that share a path model and a set of Authentications: the File Share Listener goes on a receive port, the File Share Caller on a send port. Neither holds a host name or a credential: that belongs to the Authentication, and the Definition chosen there is what decides which protocol the port speaks.

WHICH ONE DO YOU NEED RECEIVE PORT File Share Listener The share is a drop box, and every file that lands in it starts a flow. Runs on its own polling interval One message per file Always deletes the file it picks up SEND PORT File Share Caller The file work is a step inside a flow that something else already started. Runs when a message reaches it One upload per message Upload is the only operation
!
One thing bites people, so it is here rather than buried below. A Listener always deletes the file it picks up, before the Engine has seen the message. There is no setting to turn that off, so a share a Listener polls is a share it empties.

Each adapter offers the same two Definitions. The adapter configuration says nothing about where the server is, so moving an integration from a file server to an Azure file share is a change of Authentication and nothing else.

DefinitionTargetWhat it carries
File Share Connection StringAn Azure file shareConnection String, required. The share itself is named by the adapter's Share Name, so one Authentication serves any number of shares in the same storage account.
SMB File Share ConnectionA file server, SMB 2 or 3 with NTLMHost required, Port default 445, Domain optional, Username and Password required, Auth Protocol NTLM.
!
SMB needs private networking. Outbound TCP 445 to the file server is blocked towards the public internet on most cloud networks, so an SMB target has to be reachable over a VNet, a VPN or a private endpoint. An Azure file share reached by connection string has no such constraint.
The full Authentication dialog, both Definitions, field by field
File Share Connection String
SettingValue
NameYour name for the Authentication, no spaces or punctuation
AdapterFile Share Listener, or File Share Caller
DefinitionFile Share Connection String
ApplicationPreset, the Application you are working in
Connection StringRequired. For example DefaultEndpointsProtocol=https;AccountName=…;AccountKey=…;EndpointSuffix=core.windows.net. It is not validated when you save, so a blank or malformed one is not reported until a port tries to use it.
SMB File Share Connection
SettingValue
NameYour name for the Authentication, no spaces or punctuation
AdapterFile Share Listener, or File Share Caller
DefinitionSMB File Share Connection
ApplicationPreset, the Application you are working in
HostRequired. The file server, by name or address. Every address the name resolves to is tried.
PortDefaults to 445. Any value from 1 to 65535 is accepted.
DomainOptional. Leave it empty for a workgroup or local account.
UsernameRequired.
PasswordRequired.
Auth ProtocolNTLM. It is the only protocol implemented, and the field exists so that a Kerberos option can be added without reshaping the Authentication.

SMB1 and CIFS are not supported. Rotating a password on either Definition takes effect when the credential is refreshed, which happens on change and after an authentication failure, so editing the Authentication is what makes a new password live.

Auth Config Type is Static on the Listener and Static or Dynamic on the Caller. A receive port has no message to resolve a credential from, so every receive adapter offers Static alone. That is true across the platform, not a File Share quirk.


Share Name names the share and is never part of a path. Path is always relative to it, and an empty Path means the share root.

RuleBehaviour
SeparatorsBackslashes become forward slashes, and leading and trailing slashes are trimmed. /inbox/a.xml, inbox/a.xml and \inbox\a.xml are one path. A leading slash does not mean the root of the server.
Wildcards* and ? only. No character classes, no regular expressions. Everything else in the mask is matched literally.
What a mask matchesThe entry name, never the full path, and case is ignored. *.xml matches Order.XML; inbox/*.xml matches nothing, because no entry is named with a slash in it.
i
Because a mask is tested against the name alone, it cannot narrow a walk to one subfolder. Include Subfolders decides how far down the walk goes, File Mask only decides which names survive it. To limit the scope, point Path at the folder you mean.

The Listener is event based on an SMB share. It watches the folder and picks a file up about a second after its writer closes it. Files already in the folder when the port starts are picked up at start, and a file still held open by its writer waits until it is closed while other files keep flowing. Each file is read, removed from the share, and published to the bus as a separate message.

The polling settings are the Fallback Schedule. An Azure file share has no file events, so there the Listener polls every Polling Interval and takes as many files as Max Files Per Poll and Max Batch Size allow, and the rest wait for the next poll. On SMB, events are not throttled by Max Files Per Poll.

ONE PICKUP DETECT file event, or a poll Share Name Path File Mask, Subfolders APPLY THE BUDGETS on a poll, how much fits Max Files Per Poll Max Batch Size (KB) the rest wait for the next poll READ AND DELETE content is read, the file is removed pickup is destructive and happens here PUBLISH TO THE BUS one message per file FileName, FilePath FileSize, ShareName The delete happens at pickup, before the message reaches the bus. If the flow downstream then fails, the message suspends and is replayable from Tracking, but the file on the share is already gone. Treat the share as a drop box that the Listener owns, never as the system of record.
The dialog, in order
FieldDefaultWhat it does
Auth Config TypeStaticThe only option on a receive port.
Auth ConfigRequiredThe Authentication that supplies the protocol and the credentials.
Polling Interval (sec)60Fallback Schedule. How long to wait between polls; on Azure Files this is how often files are picked up. One second is the floor. The next poll is scheduled from the moment the current one starts, so a slow poll does not push the following one further out.
Max Files Per Poll20Fallback Schedule. A hard stop for one poll. Once this many files are published the pass ends and the remainder waits.
Max Batch Size (KB)100000Fallback Schedule. Total kilobytes one poll may deliver. There is no unlimited setting.
Share NameRequiredThe share to poll.
PathEmptyThe folder inside the share. Empty means the share root.
File Mask*.jsonWhich file names to take. Change it to match your files, or * for all.
Include SubfoldersOffWatch one folder level only. Turn it on to include every subfolder under Path.
EncodingUTF-8UTF-8, Windows-1252, ISO-8859-1 or UTF-16. The code page a text file is read in. Ignored when the port’s message type has the BIN format.

The Listener lists files only, so a folder whose name happens to match the mask is never picked up as if it were a file. The port’s Adapter Message Type decides how the content is read. With a type of the BIN format the file is published byte for byte, whatever it contains. With any other format it is read as text in the chosen Encoding, and bytes that are not valid in that encoding become replacement characters, so binary files belong under a BIN type. Each message carries FileName, FilePath, FileSize and ShareName as context properties, and FilePath is how you tell two files of the same name in different subfolders apart when subfolders are included.

!
The account needs delete permission. The Listener removes every file it picks up. If it can read a file but not delete it, the file is not picked up and iQBus stops the port with a notice. A rejected logon (a disabled or locked account, a wrong or expired password) also stops the port with a notice. Fix the account or the Authentication, then start the port again by hand.
i
Have writers finish under another name. A file is picked up once its writer closes it. A writer that reopens the file and appends later is, in effect, writing a second file. Where the writer can, have it write under a name outside the File Mask and rename the file into the mask when it is done.
!
A Listener with an invalid configuration goes quiet, not red. A receive port only joins the polling set when it is Active, has an Auth Config, and has a configuration that parses and validates. Fail any of those and the port is simply absent, with no error to look at: it reads as connected and idle. A missing Share Name is enough to do it. Save the port again after correcting it.
How the byte budget behaves on a poll, and the two log shapes it produces

Max Batch Size (KB) is checked against the size the folder listing reports, before anything is downloaded. A file that would push the pass over its remaining budget is skipped and the pass carries on, so a smaller file later in the same listing can still be delivered in that pass. That produces two situations worth telling apart.

SituationWhat it means
DeferredThe file fits the budget on its own, but not in what is left of this pass. It is left alone and picked up on a later poll. Logged for information.
Never fitsThe file on its own is larger than Max Batch Size (KB), so no poll can ever deliver it. Logged as a warning on every pass until the budget is raised or the file is removed. A repeating warning here means a stuck file, not a busy share.

The budget trusts the size the listing reports, and a poll against a folder that does not exist returns nothing and says nothing. It is not an error, so a Listener pointed at a mistyped Path looks exactly like a Listener pointed at an empty one.


The Caller does one thing: it writes the message body to the share as a file. Upload is the only operation. The port’s whole job is deciding where the file lands and what happens if a file of that name is already there.

ONE MESSAGE, ONE FILE A message arrives The send port runs when something routes to it Destination resolves Share Name Destination path, File name Two guards Create Directory builds the folders above the target Write mode decides a collision The file is written BIN as bytes, text in the chosen Encoding Written in place, no temp name Nothing is read, listed, moved or deleted. The Caller only writes.
The dialog, in order
FieldDefaultWhat it does
Auth Config TypeStatic or DynamicStatic names one Authentication on the port, Dynamic resolves it per message.
Auth ConfigRequiredThe Authentication that supplies the protocol and the credentials.
Share NameRequiredThe share to write into.
Operation TypeUploadThe only operation.
Destination pathEmptyThe folder to write into, relative to the share. Empty means the share root.
File name{{Message.InstanceId}}.txtThe name of the file to write. Bindings are allowed; a name with characters Windows does not allow fails at run time.
Write modeCreate NewCreate New fails if the file already exists. Overwrite replaces it. Append adds to the end of it.
Create Directory If Not ExistsOffCreates the folders above the target. When off, a missing folder fails the Upload.
EncodingUTF-8UTF-8, Windows-1252, ISO-8859-1 or UTF-16. The code page a text message is written in. A message whose type has the BIN format is always written as its original bytes.
Upload in detail: the two guards, and why there is no safe partial write

Write mode Create New is a check made before the write, not a lock. It fails the operation if the file is already there, which is what you want for a partner drop where a repeat means a duplicate. It cannot promise that nothing else created the file between the check and the write, so treat it as a guard against your own duplicates rather than as mutual exclusion.

Create Directory If Not Exists builds every missing folder above the target, one level at a time. It does nothing for a file written straight into the share root, because there is no folder above it.

An Upload writes to the destination directly. There is no temporary name and no rename into place, so anything watching the destination can see a partially written file. If the reader on the other side is a poller you do not control, have it wait for a marker file, or write into a staging folder the reader ignores.

What comes back, and what the port promotes

The response body is an echo of the request body, not the stored file. A success means the bytes were accepted by the share, nothing more.

The port promotes Path and FileName, so a later step can name the file it just wrote. The values are attached before the write runs, which means they are there on a failed response too.


Where a problem surfaces decides what the platform does with it, and only failed responses are retried.

Kind of failureRetried?What happens
ConfigurationNoA missing Share Name is rejected outright rather than returned as a failed response.
Missing credentialsNoA blank Azure connection string, or an SMB Authentication without a host, username or password. The connection is built before the operation is attempted, so this escapes the retry loop too.
Rejected credentialsOnceAn Azure 401 or 403, and an SMB logon failure, access denied, disabled or locked account, or expired password. The platform refreshes the credential and tries again, so a password corrected on the Authentication recovers without a restart. This applies to the Caller; a Listener whose logon is rejected stops, see above.
Anything the file system refusesYesA missing file, a file that already exists with Write mode Create New, a missing folder with Create Directory If Not Exists off, or any protocol error.
i
Retries do not distinguish a transient failure from a settled answer. A file that is not there will still not be there on the third attempt, but the port retries it just the same, so a Retry Count of five with a long interval turns a fast, clear failure into a slow one. Keep retries sized for the network, and size the Retry Count for a transfer that might genuinely succeed on a second attempt rather than for one that cannot.

That is the File Share adapter

A Listener that picks up and consumes, a Caller that uploads and nothing else, and an Authentication that decides whether the target is an Azure file share or an SMB server. Remember the Listener always deletes. Back to Adapters.