Use this page when files aren't being swept, or the results aren't what you expected. For how each option works, see File Attachment Sweep features and functionality. For the values each setting accepts, see Sweep configuration options.
Check which records were swept
Before you look for a problem, check what the sweep actually did. A record was swept when:
Its uploaded checkbox is checked.
Its S3 key field (or Dropbox download link field) has a value. For S3, that's the key the file was uploaded under.
Its file attachment field is empty—if the configuration clears the field after upload.
Build a report on the table that shows these three fields, and filter it to find records that weren't swept—for example, uploaded checkbox is not checked and file attachment field is not empty. Use a record from that report when you contact support.
Run results count records as processed (swept) or bypassed (skipped). Check the two numbers carefully: a run can process most records and bypass only a few. When an upload fails, the reason is recorded with the run results, and support can look it up.
Nothing was swept
Check these in order:
The configuration is active. Inactive, deactivated, and canceled configurations don't run, and no run results are recorded for them.
The app is authorized. Your app must be authorized for File Attachment Sweep in the Extensions Portal, with a Quickbase user token on file. If the token was removed or has expired, add a new one.
The report returns records. For nightly sweeps, open the configuration's report in Quickbase and check that it lists the records you expect, and that it includes the file attachment field. If the report was changed or deleted, the sweep can't find its records.
The records have files. Records with an empty file attachment field are skipped.
The nightly run may still be going. See A nightly sweep ran late or seemed not to run.
For triggered sweeps, check the email notification. See A triggered sweep didn't run.
A nightly sweep ran late or seemed not to run
Nightly configurations that are scheduled for the same time are processed one after another. If an earlier configuration has thousands of files to move—for example, the first run after a new setup—the configurations after it wait until it's done, which can be hours later. Their records aren't skipped; they're swept when the run gets to them.
Before you report a sweep that didn't run, check the records again later in the day.
If you have many configurations, or a large backlog of files, ask support to schedule them at different times.
For a large first sweep, consider splitting the backlog: limit the report (or the configuration's maximum number of files) so each night moves a manageable amount.
A triggered sweep didn't run
For the full setup, see Email notification setup for triggered sweeps.
Copy yourself on the notification. Add your own address as a recipient, then trigger it. If you don't get a copy, the notification isn't firing: check its conditions (when it's sent) and that it's turned on.
Check the address. Send to
fasweep@mail.quickbasetools.com, orfasweepeu@mail.quickbasetools.comfor accounts in the EU region. Thetypeparameter must match:type=fasweeportype=fasweepeu.Check the message body. It should hold only the parameters, separated by spaces, for example
configid=1234 recid=[Record ID#] configkey=a1b2c3 type=fasweep. In the copy you received, look for extra text, a signature, or a field name that wasn't replaced with a value.recidmust be the Record ID# field, so each message names one record.Check the configuration key. If
configkeyis missing or doesn't match the key on the configuration, the record isn't processed. Newer configurations always require it.Dropbox file name from a field. A triggered sweep currently doesn't run when the configuration saves Dropbox files under a name from a field. Use a nightly sweep for that configuration, or ask support to remove the file name field from it.
Some records were skipped
A skipped record keeps its file and isn't updated, so it's tried again on the next run if it's still in the report. Common reasons:
The file attachment field is empty.
The file is larger than the configuration's maximum file size.
The file name is too long. The sweep saves each file on its server before uploading it, and the full path there—a folder of about 60 characters plus the file name—can't be longer than 260 characters. Files with very long names (roughly 200 characters or more) fail to download and are skipped every run. Shorten those file names in Quickbase; the next run picks them up.
The file couldn't be downloaded from Quickbase for another reason—for example, the user token can't read the record or the field.
The upload failed after retries. See the sections for Amazon S3, Dropbox, and SFTP.
If many records are skipped and the file attachment space isn't going down, find a few skipped records with the report described in Check which records were swept, and check their file names first.
The same files are swept every night
The nightly sweep processes every record the report returns, every night. To sweep each file once:
Filter the report to records that haven't been swept—for example, uploaded checkbox is not checked—or clear the file attachment field after upload, and filter on file attachment field is not empty.
Make sure the sweep can update the record. See The record wasn't updated.
The file was uploaded, but the record wasn't updated
Update Quickbase must be on in the configuration.
For Amazon S3, Dropbox, and SFTP sweeps, the configuration must have all three of the file name, file size, and uploaded checkbox fields. If any one is missing, the sweep uploads the file but doesn't update the record, and no error is recorded. (A QB to QB sweep needs only the checkbox; a QB Get Size sweep needs only the file size field.)
Every field the sweep writes to must be a regular field, not a formula field. That includes the uploaded checkbox, file name, file size, S3 key, date/time, and Dropbox download link fields. If one of them is a formula field, the update fails. A Download button or link that you build from the S3 key can be a formula—just don't name it in the configuration as a field for the sweep to fill in.
The user token must be able to edit the record and those fields. If the update fails, the record is skipped—even though the file was already uploaded—so the next run may upload it again.
If Delete the record is on, the record is deleted instead of updated.
The run stopped before all records were swept
A limit was reached. The configuration's maximum number of files or maximum total size per run was reached. The rest are swept on the next run. Raise or clear the limit to sweep more at once.
An image couldn't be resized. With Resize images on, one image that can't be resized (for example, a damaged file, or no percentage or width and height set) currently stops the configuration's run. Fix or remove that file, or check the resize settings.
File names changed
The sweep always replaces characters that cause upload problems (for example, #, &, /, and ?) and removes extra periods, so Q3 #2.final.pdf becomes Q3 2final.pdf. Some non-Latin characters become underscores. This is expected; see File names for the full list. The new name is written to the record's file name field.
Amazon S3
Every file on a record shows the same file
This happens when several configurations sweep different file attachment fields on the same table and they all use the default S3 key. The default key is the table ID and the Record ID# (for example, bqxxxxxxx_125), so every field on a record gets the same key. Each upload replaces the previous one in your bucket, and every download link opens the last file uploaded.
Important: If those configurations also clear the file attachment field, the earlier files are no longer in Quickbase or in S3 (unless your bucket has versioning turned on). Stop the affected configurations right away and check your bucket before you do anything else.
To fix it, give each configuration its own Custom S3 Key field—a formula field that includes something unique to the file attachment field, such as its field ID—and turn on S3 Key Value Override. For example, for the configuration that sweeps field 597:
"bqxxxxxxx_" & ToText([Record ID#]) & "_fid597"Make sure the formula never returns an empty value. Then test the configuration on one record before you turn it back on for the whole table. If you have many file fields on one table, consider moving the files to a child table (for example, a Documents table with one file per record). Then one configuration can sweep all of them.
Other S3 problems
"There is special character(s) in the file name. Please rename the file and upload again." Amazon S3 rejected the request's signature. This can be a character in the file name, but it's often the S3 credentials: check that the secret access key saved in the Extensions Portal is correct and current. If the credentials are right, rename the file and run the sweep again.
Every upload fails. Check the bucket name, the bucket's region in the configuration, and that the credentials can write to the bucket. A blank region means US East (N. Virginia). Also check the Amazon S3 settings, and that the configuration has a maximum file size.
You need to change the S3 access keys. Your account's admin can change them in the Extensions Portal, in the Credentials Manager on the left sidebar. The sweep uses the new keys from its next run. Don't send access keys in a support case, email, or chat. If they were shared that way, create new keys in AWS and save those instead. If you manage Quickbase for a client and can't see their account in the Extensions Portal, ask support to make you the account's admin.
A download link for a swept file shows an error. The link fetches the file from your bucket using the key in the record's S3 key field. Check in AWS that an object with exactly that key is in the bucket the link uses. If the bucket was renamed or emptied, or the key field was edited, the link can't find the file.
The S3 key isn't what you expected. The key is the file name if Use file name as S3 key is on; otherwise the custom key field's value; otherwise
<table ID>_<Record ID#>, plus any suffix. If one record in a run has an empty custom key field, later records in the same run currently also get the default key. Make sure the custom key formula never returns an empty value.The configuration doesn't run, and the custom key field is set. For nightly sweeps, the custom key field must be in the report.
Dropbox
Sweeps to Dropbox stopped working. The Dropbox connection has usually expired or been revoked—for example, after a password change or a change to the Dropbox app's permissions. Check the permissions on your Dropbox account, then reconnect Dropbox in the Extensions Portal to create a new connection (refresh token). Records that were skipped are swept on the next run.
The file has a different name in Dropbox. Files are never overwritten. If a file with that name was already in the folder, Dropbox saved the new one under a different name; that name is written to the record.
The configuration doesn't run, and a Dropbox file name field is set. For nightly sweeps, the field must be in the report. For triggered sweeps, see A triggered sweep didn't run.
SFTP server
"Error occurred while trying to Login to SFTP server with the provided credentials" The sweep couldn't sign in, so nothing was swept for that configuration. Check the host, port, user name, and password, and that the server accepts password sign-in and connections from Quickbase.
A file wasn't uploaded because one with that name already exists. Turn on replacing existing files in the configuration, or use a file name field that gives each file a unique name.
The file has two extensions, such as
INV-1001.pdf.pdf. The sweep adds the original extension to the name from the file name field, so that field should hold the name without an extension.
Another Quickbase table
Update Record didn't update the record you expected. It updates the destination record with the same Record ID# as the source record. To create a new record for each file, use Add Record.
The mapped field is empty in the destination. Check the field mapping (
source field ID:destination field ID). For nightly sweeps, the source field must be in the report. A triggered sweep currently skips the mapping if the configuration also has a custom S3 key field; ask support to remove that field from the configuration.The destination is in another Quickbase account. The configuration needs a user token for that account that can add or edit records in the destination table.
Add, change, or stop a configuration
Sweep configurations are kept by Quickbase. You can't add one yourself in the Extensions Portal, so to add, change, or stop a configuration, open a technical support case.
To add a configuration, include: your Quickbase account URL; the app name and ID; the table name and ID; the file attachment field ID; the IDs of the fields the sweep should fill in (uploaded checkbox, file name, file size, S3 key, and custom S3 key if you use one); whether it should run nightly (and when) or be triggered; for nightly sweeps, the report ID; and the destination (for example, the S3 bucket name). Each file attachment field needs its own configuration.
Test every new configuration with a report that returns only one or a few records. Check the files at the destination and the record updates before you let it run on the whole table—especially if it clears file attachment fields or deletes records.
To stop a sweep, ask support to set the configuration to inactive. Inactive configurations don't run, even when triggered. Include the configuration ID if you have it.
Partners: if you manage Quickbase for a client and can't see their configurations or account, ask support to give your team access. Include the client's Quickbase account URL.
Still not working?
Check the configuration's settings against Sweep configuration options, especially the ones marked exact value. Then open a technical support case and include:
The name (and ID, if you have it) of the sweep configuration.
The sweep type, and whether it's nightly, triggered, or both.
The Record ID# of a record that wasn't swept.
The date and time (with time zone) of the run or the notification.
Any error message you were given, copied exactly.
Don't include passwords or access keys in the case. Each run's results—files swept, records skipped, and error messages—are recorded, so support can look up what happened.