# FileSet Define - finds file, but then doesn't store the name

**URL:** https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658
**Category:** Bugs
**Created:** [August 9, 2006, 4:37am UTC](https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658 "2006-08-09T04:37:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 9, 2006, 4:37am UTC](https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658/1 "2006-08-09T04:37:15Z")

</div>

I inititally found this because I had a FileSet to Variable action immediately proceeding my FileSet Define action. The fileset define found my file, but then the FileSet to Variable was blank. I then tried a Fileset Log Files action, and that also displays blank.  
  
I am using this in another action list and it works great. Not sure why it won’t work for this action list.  
  
Other questions related to this:  
  
When I am choosing the FileSet to log from the FileSet Log Files action- I see two Filesets defined. Why is that?  
  
Also, I tried using a variable as part of the Filespec parameter from the fileset define action and it didn’t work. Is this a known issue?  
 PRJ\_BIN\_TYPE = exe  
 Filespec: \*.%PRJ\_BIN\_TYPE%  
  
This returned no files, but when I hard-coded it to \*.exe it worked.

 ![FB1.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/136c040510c1c432af940a7f25e430e83f248720.jpeg)

![FB2.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/7/759c6ee003a9c6f62922a6a222ddbeac3fc19f28.jpeg)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [August 10, 2006, 1:17am UTC](https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658/2 "2006-08-10T01:17:54Z")

</div>

Hi Owen,  
  
FileSets are actually a type of object called a “project object” - they are global to the project (not an action list.) Each time you use a “FileSet Define” action, it creates a new project object internally.   
  
Therefore, you can’t have more than one FileSet Define with the same name. FinalBuilder should prevent you from creating duplicate FileSet Defines, though… I will fix that bug ASAP.  
  
Rename the other FileSet Define to something else, and you should be fine.  
  
Regards,  
  
  
Angus

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [August 10, 2006, 2:14am UTC](https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658/3 "2006-08-10T02:14:12Z")

</div>

Hi Owen,  
  
I’ve fixed the actions so that they now fail validation if you attempt to register more than one project object of the same type. A test build will be available shortly.  
  
- Angus

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [August 14, 2006, 7:04am UTC](https://www.finalbuilder.com/forums/t/fileset-define-finds-file-but-then-doesnt-store-the-name/2658/4 "2006-08-14T07:04:44Z")

</div>

here:  
[https://www.finalbuilder.com/downloads/finalbuilder/410/FB410\_267.exe](https://www.finalbuilder.com/downloads/finalbuilder/410/FB410_267.exe)
