Google Groups no longer supports new usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error 5004 Unable to execute... Windows createprocess() error 2.

1,005 views
Skip to the first unread message

Laura Barber

unread,
7 May 2008, 09:53:0407/05/2008
to
Hello,
I have created two RDT executable files that work on my system. They bomb
on the client system, or to be more accurate, the code that tries to call the
executables is bombing. It gives the same message when I try to run notepad,
so I’m pretty sure Solomon never gets close to opening the executables.

I just learned after an hour of debugging that the client system is run on
Citrix terminal server. It is a Windows Server 2003 and the version of
citrix is "Citrix Presentation Server".

I seem to remember from years ago another client was also having problems
running Solomon or Solomon customizations through Citrix or through a
terminal server. I’m very fuzzy on details. Has anyone experienced this,
and if so, can you remember how it was solved?

If you’ve made it this far through the message, here are more particulars:
It bombs on this line of code:
serr1 = Launch("MC00200.EXE " + Trim$(Contract_ID), True, True, 0)

The full error is: "50004 unable to execute
c:\accounting\solomon\mc00200.exe 4 1049080 BAK5018888. Windows
Createprocess() error 2".

The contract id is BAK5018888, but I don’t know what the numbers 4 and
1049080 refer to.

I am on 6.5 SP1 and the client is 6.5 SP2. The module is Service Dispatch
and the screen is Service Call Entry.
--
Laura Barber on behalf of Bev Kaufman

Laura Barber

unread,
7 May 2008, 14:42:2907/05/2008
to
Please disregard - this error mysteriously disappeared on its own.
--
Laura Barber

Beaver@discussions.microsoft.com David Beaver

unread,
16 May 2008, 11:57:0116/05/2008
to
This may not be the right solution for you, but this seems like a good place
to post this. I was getting the same errors in Dynamics SL v6.5, when adding
to the Menu system (file delta.mnu) a call to an external program. I
discovered that the full name of the path/program being called in delta.mnu
cannot be longer than 28 characters. If it's longer, you'll get this error.

Other posts say that this error typically means "I can't find the file I'm
trying to execute". So mis-spelling the file name would cause it, but also

David Knott

unread,
9 Mar 2011, 17:15:2909/03/2011
to
I found somewhere to start on this.

I added a new report format name template to another report in Dynamics SL6.5. It was it's own separate Crystal template file.

The original report format had a pre-process - PB_DMGRIID - and I deleted that (because I was getting an error 723 on running the report). When I deleted that pre-process, the report would always come up with the CreateProcess 2 error (couldn't run C:\Programs\Solomon\PM.EXe .... not sure why it's looking for that executable, because it does not exist - ANYWHERE). Thing was - after you clicked "ok", the report ran correctly anyway.

Problem was, I tried to re-enter the Pre-process id into the field on teh Control Options of Report Control Maintenance - wouldn't allow me to enter a "_" - so I couldn't type it in. I eventually found the field on the RptControl table in the System database and updated the RunBeforeApplic field on this table from SQL.

Not the prettiest way to do it, but it solved the "CreateProcess" error..... now if I can just get rid of that 723 error !!

> On Wednesday, May 07, 2008 9:53 AM laurab-at-mcrinc-dot-com wrote:

> Hello,
> I have created two RDT executable files that work on my system. They bomb
> on the client system, or to be more accurate, the code that tries to call the
> executables is bombing. It gives the same message when I try to run notepad,

> so I???m pretty sure Solomon never gets close to opening the executables.


>
> I just learned after an hour of debugging that the client system is run on
> Citrix terminal server. It is a Windows Server 2003 and the version of
> citrix is "Citrix Presentation Server".
>
> I seem to remember from years ago another client was also having problems
> running Solomon or Solomon customizations through Citrix or through a

> terminal server. I???m very fuzzy on details. Has anyone experienced this,

> and if so, can you remember how it was solved?
>

> If you???ve made it this far through the message, here are more particulars:


> It bombs on this line of code:
> serr1 = Launch("MC00200.EXE " + Trim$(Contract_ID), True, True, 0)
>
> The full error is: "50004 unable to execute
> c:\accounting\solomon\mc00200.exe 4 1049080 BAK5018888. Windows
> Createprocess() error 2".
>

> The contract id is BAK5018888, but I don???t know what the numbers 4 and

> 1049080 refer to.
>
> I am on 6.5 SP1 and the client is 6.5 SP2. The module is Service Dispatch
> and the screen is Service Call Entry.
> --
> Laura Barber on behalf of Bev Kaufman


>> On Wednesday, May 07, 2008 2:42 PM laurab-at-mcrinc-dot-com wrote:

>> Please disregard - this error mysteriously disappeared on its own.
>> --
>> Laura Barber
>>
>>
>> "Laura Barber" wrote:


>>> Submitted via EggHeadCafe
>>> Profiling and Optimizing VBA
>>> http://www.eggheadcafe.com/tutorials/aspnet/12dfc2ae-d796-40e8-9762-572bdaa7b637/profiling-and-optimizing-vba.aspx

0 new messages