FBA Generic Command

V

vic

I'm having some difficulty getting a component suceesfully built using
FBA Generic command to launch a bat file. I've read previous posts and
help/tips, and think I have it right, but... TD build continues to
error with Error 1004: Invalid Resource: "FBA Generic Command"

The resource extended properties as follows:

Arguments String /C "%24%\Batfile.bat"
ComponentVSGUID GUID {00000000-0000-0000-0000-000000000000}
ErrorControl Integer 0
FilePath String %11%\cmd.exe
Flags Integer 0
Phase Integer 0
Reboot Boolean False
Start Integer 1
Timeout Integer 0
Type Integer 1


Anyone have any thoughts or suggestions?

Thanks in advance.

vic
 
A

ashisha

Hi vic,

Try running the command at any particular phase. In most cases, the
value should be set at > 8501.

HTH,
Ashisha
 
B

Brad Combs

Vic,

According to the first post it's set to 0. Are you confusing Build Order
with Phase? (It's a common mistake)

HTH,

Brad Combs
Imago Technologies
 
B

Brad Combs

Vic,

Actually scrap that last post. It's TD that's giving the error (whoops!).
Well two things to try...

1) Remove the quotes from the Arguments string.
2) Swith to a RunOnce request resource and see if you get errors still.

HTH,
Brad Combs
Imago Technologies
 
K

KM

Brad,
Although I completely agree with the test steps you mentioned - worth to
try, I don't think the quotes is the problem. I have a component with a FBA
Generic Command where the Argument field is set to something like:
arg1 arg2 "arg3"

vic,
You haven't mentioned what you have typed in the command's Description
field. Could it be possible you used some non-regular characters there
(quotes, etc.)? It is very unlikely that this filed is causing the error but
try to fix everything that looks weird.
 
V

vic

Thanks to all for your suggestions.

I actually had the command's discription blank. I changed it to,
presumably benign, Bat Component. TD still throws the Invalid Resource
error.

I'll keep tweaking to find the problem.

Thks,

vic
 
K

Kelly

-----Original Message-----
I'm having some difficulty getting a component suceesfully built using
FBA Generic command to launch a bat file. I've read previous posts and
help/tips, and think I have it right, but... TD build continues to
error with Error 1004: Invalid Resource: "FBA Generic Command"

The resource extended properties as follows:

Arguments String /C "%24%\Batfile.bat"
ComponentVSGUID GUID {00000000-0000-0000-0000- 000000000000}
ErrorControl Integer 0
FilePath String %11%\cmd.exe
Flags Integer 0
Phase Integer 0
Reboot Boolean False
Start Integer 1
Timeout Integer 0
Type Integer 1


Anyone have any thoughts or suggestions?

Thanks in advance.

vic
.
Try setting the Phase to 8500
 
K

Kesavan

Sometimes it may happen that the description fields or some other
charachter may give a problem,btw hope u have doublechecked the file
exists in the right place.
 
B

Brad Combs

Vic,

I just recreated your configuration for an FBA generic command. I used the
settings from the first post. Sure enough it gave me the same error. I went
back to the component and set the phase to 8500, and the component built
without errors. It seems that a setting of "0" which would normally mean
manually doesn't work for this type of resource. I can't believe I haven't
run into this before, but anyway set the phase, save and re-import the
component, and right click the component in TD and choose upgrade.

Hopefully this solves the problem. :)

HTH,

Brad Combs
Imago Technologies
 
K

KM

Brad,

Looks like a bug. I've checked my components - I always set the "Phase"
field for any type of FBA resources at least to "1". But I do not remember
why I do that and I don't remember that error message. Strange enough :)

Anyway.. Brad, you are "bug exterminator" :)
 
B

Brad Combs

KM,

Same here, I've always set a value. I'm not sure, but maybe this is
intentional since you can't necessarily have a true FBA command that doesn't
occur during FBA. :)

Who knows, but maybe it'll help vic!

Brad
 
V

vic

Looked at this over the weekend. I was actually setting
component/resource build order to 8599 in CD, thinking I was setting
the build phase. Wrong. I didn't catch that the phase was actually 0
in the TD resource extended properties. The 8599 build order wasn't
translated to phase. Changing it in TD, per Ashiasha and Brad worked.

I'm not sure if this is a second bug or simple error in assumption as
to how this stuff works on my part, but I'll file it away in my XPe
how-tos.

Thanks to All.

Vic
 
S

Slobodan Brcin \(eMVP\)

It was just a wrong assumption about what build order and phase stands for.

Build order is more oriented to build time during the TD build process.
And phase is strictly used during the FBA (runtime) for making installation
or programs, services, etc in certain order. I forgot but I think that FBA
will use both phase and build order values to create exact phase. But this
is only considered is you have two resources with same phase.

Regards,
Slobodan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top