# Exception when trying to FTP upload with a empty file set

**URL:** https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820
**Category:** Discussion
**Created:** [July 29, 2020, 9:10pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820 "2020-07-29T21:10:32Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dressel1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/7ea924/32.png) [@dressel1](https://www.finalbuilder.com/forums/u/dressel1)
#### Post date: [July 29, 2020, 9:10pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/1 "2020-07-29T21:10:32Z")

</div>

I get an exception when trying to do a FTP upload with an empty file set.

I would like to skip the action but I don’t’ know how to check the file set name (“NewBuilds”) in a script to see if it is empty.

Thank you,

Ed Dressel

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 30, 2020, 10:50pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/2 "2020-07-30T22:50:29Z")

</div>

Hi Ed

I haven’t been able to reproduce this, but will do more testing on this today. What version/build are you using?

You can use an If then… action with an expression

`%NewBuilds.IsEmpty%`

to decide whether to do the upload or not.

---

<div class="post-metadata">

### Author: ![dressel1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/7ea924/32.png) [@dressel1](https://www.finalbuilder.com/forums/u/dressel1)
#### Post date: [July 30, 2020, 11:16pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/3 "2020-07-30T23:16:52Z")

</div>

I created a group and tried the following VB code:

**SkipAction = %NewTRAKBuilds.IsEmpty%**

which gives me an exception:

Invalid character  
Line: 2  
Char : 14

I then tried:

**SkipAction = NewTRAKBuilds.IsEmpty**

and get the exception:

Object doesn’t support this property or method: ‘NewTRAKBuilds.IsEmpty’  
Line: 2  
Char : 1

I don’t have NewTRAKBuilds defined as a variable–I would not know what type of variable to define it as.

Thank you,

Ed Dressel

---

<div class="post-metadata">

### Author: ![dressel1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/7ea924/32.png) [@dressel1](https://www.finalbuilder.com/forums/u/dressel1)
#### Post date: [July 30, 2020, 11:16pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/4 "2020-07-30T23:16:54Z")

</div>

FB v. 8.0.0.2897

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 30, 2020, 11:29pm UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/5 "2020-07-30T23:29:06Z")

</div>

Fileset.IsEmpty wasn’t exposed to scripting (it is now, I just added it). I’ll upload a build with this fix shortly.

The `%NewBuilds.IsEmpty%` expression can only be used in text fields, not scripting.

---

<div class="post-metadata">

### Author: ![dressel1](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/7ea924/32.png) [@dressel1](https://www.finalbuilder.com/forums/u/dressel1)
#### Post date: [July 31, 2020, 12:23am UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/6 "2020-07-31T00:23:54Z")

</div>

Thank you for the response–can I use it in the version I am in? I tried it in the group’s Execute Condition and it failed there as well.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 31, 2020, 12:55am UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/7 "2020-07-31T00:55:29Z")

</div>

The condition field is actually a Script so you can’t use the expression there, however you can use the If Then… action to achieve this.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 31, 2020, 1:33am UTC](https://www.finalbuilder.com/forums/t/exception-when-trying-to-ftp-upload-with-a-empty-file-set/6820/8 "2020-07-31T01:33:32Z")

</div>

This build adds the FileSet.IsEmpty to scripting and improves empty fileset handling for the FTP Upload action.

[https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800\_2899.exe](https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2899.exe)
