Understand source-specific SSIS import behavior
On this page
An Import definition is interpreted by a source-specific generator branch. The same Filter field is not a universal SQL predicate for every connector. This article describes the inspected SSIS path; it does not certify provider versions or describe ADF behavior.
SQL-source commands
For the reviewed OLE DB, managed OLE DB and ODBC branches, an empty custom ImpSQL makes the generator build a SELECT from mapped source columns and the source object. It appends Filter as a WHERE condition when provided. Quoting follows source metadata; NOLOCK is added only in the SQL Server connector branch when selected.
A nonempty ImpSQL replaces that generated SELECT. The separate Filter is not appended to the custom command. Put required predicates in the custom command and verify the resulting source component rather than assuming both fields are combined.
Use a variable to store the query creates a package variable containing the command and configures the OLE DB/managed OLE DB source to read it. The reviewed ODBC branch uses the direct command path instead. The setting does not itself populate or rewrite query parameters.
Filter parameters
The filter parser recognizes @Name tokens. For non-SAP connectors it records the variable names in encounter order and substitutes positional ? markers. During source setup, every recorded variable must exist in the package; otherwise generation raises a missing-variable error. Recorded variables are then used to build the component's ParameterMapping.
For SAP, the parser converts the reference to the @[User::Name] form instead. A doubled @@ is protected during parsing and restored as a literal single @. This parser is not a complete SQL-language parser; inspect commands containing provider-specific at-sign syntax or quoted text.
Parameter forwarding in code is not proof that a particular driver/component accepts it. Where a provider cannot bind the required parameters, storing the entire query in a configurable variable is a separate strategy. Test it in the chosen provider and runtime. See expression languages.
OData
The OData branch sets either ResourcePath when that mode is selected, or a collection name formed from source schema/name. Nonempty query options are assigned to the source component's Query property. They are OData options, not a T-SQL WHERE clause. The SQL-command builder above is not used for this branch.
Verify the endpoint, chosen resource/collection, options and returned metadata together. A successful metadata read does not prove that the generated runtime component supports every server option.
CSV and Excel directory processing
For CSV and Excel connectors with directory processing enabled, the generator creates a file enumerator and maps each filename to a package variable. Directory, file specification and recursion settings govern enumeration. The data flow is placed in that loop.
The destination TRUNCATE task precedes the file loop: the flow loads the selected files into the freshly emptied destination. It is not a separate truncate before each file. Review the Import execution order before testing a folder with multiple files.
CSV uses flat-file metadata, including locale. Its source-output columns are configured with FastParse and UseBinaryFormat disabled. Handle malformed values through the appropriate validation and error path.
Azure Blob files
The Blob branch forwards source folder/name, format selection, delimiter, quote character, first-row-as-column-names and encoding properties to its component. If its configured code-page value cannot be parsed, the code uses 65001; if no matching encoding is found, the component receives UTF-8. These are file component properties, not SQL-source filters. Validate separators, headers, encoding and output metadata with a small representative file.
SAP sources
SAP uses separate extractor/component properties and parameter handling. Follow the SAP extraction guide for owner-confirmed ODP and DeltaQ semantics. This article does not resolve deferred mode V or broaden the supported-version matrix.
Checks before execution
| Symptom | Inspect |
|---|---|
| Filter seems ignored with custom SQL | The custom command takes precedence; check its own predicate. |
| Missing filter variable | Package variable name and generated ParameterMapping. |
| Driver rejects parameters | Provider/component parameter capability and whether a whole-query variable is appropriate. |
| OData filter fails as SQL | Use resource/query options; do not send a SQL WHERE expression. |
| Directory import replaces previous rows | TRUNCATE runs before the loop; this path is a replacement load. |
| CSV/Blob columns shift or text is corrupted | Delimiter, qualifier, header, encoding and source metadata. |
Inspect generated components and test in a development destination. Providers and required components are installed separately; see the compatibility register. No runtime compatibility test is claimed here.