Exception has been thrown by the target of an invocation

I had the same "invocation" error in a customization from 9.04.506C brought
into our testing environment in 9.05.605. I received an email yesterday and
this seems to have worked without recreating the customization.



FINDINGS: The Customization was reviewed by Development and the following
information was provided:

A ChildIndex property on a control with its EpiKeyField property set to True
is causing the problem (fixed in E9.05.605 by SCR 80808).

WORK AROUND for the Customization Development Reviewed:

The workaround is to remove the ChildIndex Property Record for the
btnKeyField Control.

1. Bring the customization up in Customization Maintenance (System
Management > Utilities).

2. Select Actions > Show Custom Data, to open the Customization Data
form.

3. Select the Properties tab and look for ControlName = btnKeyField and
PropertyName = ChildIndex (you can click on any column header to sort the
data in that column).

4. Delete the record (select the record, then hit the delete key on your
PC's keyboard) and then Click "Save Data"

5. Exit Customization Data

6. To see if you no longer receive the error, select Actions > Run
Customization - The Error should not appear.



Michelle Giesige



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
cooner_55421
Sent: Tuesday, July 26, 2011 11:27 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Exception has been thrown by the target of an
invocation.





Just a followup.
The shortest answer was - rebuild the customization from base.
The new version doesn't produce the error.

An Epicor tech looked at the form too & he could reproduce the error but was
unable to identify the cause.

One I found interesting.
He said that even though these should be identical customizations...
The new one is "bigger" (more code).

Now I wonder if somebody could have done some "optimization" to the old
version? Something that would not cause an error unless it were later
revised? I seem to remember one guy using Visual Studio to "clean up" and
"combine" customizations.

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"cooner_55421" <cooner_55421@...> wrote:
>
> Just in case someone is interested in taking a look,
> I uploaded the customization to the Misc. section of the files:
> - PurchaseAdvisor_With_Intermittent_Error.zip
> ---- Unsolved error in a customization
> I'll delete it in a couple of days.
>
> Thanks again for all the help.
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"cooner_55421" <cooner_55421@> wrote:
> >
> > Thanks for all the help.
> > It has given me a few ideas.
> >
> > >>"SignatureStruct& sig," is
> > >>this something you have defined in code?
> > Unfortunately, I just added something small to a previous customization.
Display a couple of fields in testboxes.
> > One FKV for a field from the Part.
> > And one more PartPLant filed to an existing epidataview.
> >
> > Of course the author of the customization I'm working with has left the
company.
> > I do remember he often used Visual Studio while I'm only using the
standard customization tools.
> >
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Zac
Jason Woodward <zac@> wrote:
> > >
> > > What stands out to me is "SignatureStruct& sig," is this something you
have defined in code?
> > >
> > > "Zac" Jason Woodward
> > > Network Administrator
> > > Intermountain Electronics, Inc.
> > > O: 877-544-2291
> > > M: 435-820-6515
> > > F: 435-637-9601
> > > www.ie-corp.com
> > >
> > > Creating customer confidence through extraordinary service and
experienced industry experts.
> > >
> > > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf Of cooner_55421
> > > Sent: Thursday, July 21, 2011 7:04 PM
> > > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > > Subject: [Vantage] Re: Exception has been thrown by the target of an
invocation.
> > >
> > >
> > >
> > > >What is the rest of the error?
> > > Error Detail
> > > ============
> > > Exception has been thrown by the target of an invocation.
> > >
> > > Stack Trace
> > > ===========
> > > at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
> > > at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]
arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> > > at
Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly
assm)
> > >
> > > Inner Exception
> > > ===============
> > > Object reference not set to an instance of an object.
> > >
> > > Inner Stack Trace
> > > =================
> > > at Script.InitializeGlobalVariables(CustomScriptManager csm)
> > >
> > > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@> wrote:
> > > >
> > > > I think the details button on the error message has led me to
finding the answer in the past...What is the rest of the error?
> > > >
> > > > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>] On
Behalf Of cooner_55421
> > > > Sent: Thursday, July 21, 2011 6:40 PM
> > > > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
> > > > Subject: [Vantage] Exception has been thrown by the target of an
invocation.
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I am getting this error when I launch a form customization.
> > > > "Exception has been thrown by the target of an invocation".
> > > >
> > > > The error message doesn't really tell me much & I'm hoping someone
can share some tips on how I might find error details.
> > > >
> > > > Also, on two different test systems it works.
> > > > Of course it's the production server that fails.
> > > > It is intermittent too.
> > > > The form might load multiple times without incident.
> > > > When it does fail, it will continue to do so consistently
> > > >
> > > > I thought I had found the answer to this a while back.
> > > > Not that lucky, I guess it was just hibernating.
> > > >
> > > > Thanks ahead of time...
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>





[Non-text portions of this message have been removed]
I think the details button on the error message has led me to finding the answer in the past...What is the rest of the error?

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cooner_55421
Sent: Thursday, July 21, 2011 6:40 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Exception has been thrown by the target of an invocation.



Hi,

I am getting this error when I launch a form customization.
"Exception has been thrown by the target of an invocation".

The error message doesn't really tell me much & I'm hoping someone can share some tips on how I might find error details.

Also, on two different test systems it works.
Of course it's the production server that fails.
It is intermittent too.
The form might load multiple times without incident.
When it does fail, it will continue to do so consistently

I thought I had found the answer to this a while back.
Not that lucky, I guess it was just hibernating.

Thanks ahead of time...



[Non-text portions of this message have been removed]
Sorry, I tried for some time, now it is up to you or log a case...I pull out some of the words that seem to be key and search EpicWeb - sometimes I got a hit, but nothing looked quite right to me...However, you know your customization better than I do, so have you tried this method?

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cooner_55421
Sent: Thursday, July 21, 2011 8:04 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Exception has been thrown by the target of an invocation.



>What is the rest of the error?
Error Detail
============
Exception has been thrown by the target of an invocation.

Stack Trace
===========
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)

Inner Exception
===============
Object reference not set to an instance of an object.

Inner Stack Trace
=================
at Script.InitializeGlobalVariables(CustomScriptManager csm)

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@...<mailto:kschoenung@...>> wrote:
>
> I think the details button on the error message has led me to finding the answer in the past...What is the rest of the error?
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of cooner_55421
> Sent: Thursday, July 21, 2011 6:40 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Exception has been thrown by the target of an invocation.
>
>
>
> Hi,
>
> I am getting this error when I launch a form customization.
> "Exception has been thrown by the target of an invocation".
>
> The error message doesn't really tell me much & I'm hoping someone can share some tips on how I might find error details.
>
> Also, on two different test systems it works.
> Of course it's the production server that fails.
> It is intermittent too.
> The form might load multiple times without incident.
> When it does fail, it will continue to do so consistently
>
> I thought I had found the answer to this a while back.
> Not that lucky, I guess it was just hibernating.
>
> Thanks ahead of time...
>
>
>
> [Non-text portions of this message have been removed]
>



[Non-text portions of this message have been removed]
shooting in the dark....
Check the custom XML editor and look for references to contols that may have been deleted from the form but still exist in the xml....

--- In vantage@yahoogroups.com, Karen Schoenung <kschoenung@...> wrote:
>
> Sorry, I tried for some time, now it is up to you or log a case...I pull out some of the words that seem to be key and search EpicWeb - sometimes I got a hit, but nothing looked quite right to me...However, you know your customization better than I do, so have you tried this method?
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cooner_55421
> Sent: Thursday, July 21, 2011 8:04 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Exception has been thrown by the target of an invocation.
>
>
>
> >What is the rest of the error?
> Error Detail
> ============
> Exception has been thrown by the target of an invocation.
>
> Stack Trace
> ===========
> at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)
>
> Inner Exception
> ===============
> Object reference not set to an instance of an object.
>
> Inner Stack Trace
> =================
> at Script.InitializeGlobalVariables(CustomScriptManager csm)
>
> --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@<mailto:kschoenung@>> wrote:
> >
> > I think the details button on the error message has led me to finding the answer in the past...What is the rest of the error?
> >
> > From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of cooner_55421
> > Sent: Thursday, July 21, 2011 6:40 PM
> > To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> > Subject: [Vantage] Exception has been thrown by the target of an invocation.
> >
> >
> >
> > Hi,
> >
> > I am getting this error when I launch a form customization.
> > "Exception has been thrown by the target of an invocation".
> >
> > The error message doesn't really tell me much & I'm hoping someone can share some tips on how I might find error details.
> >
> > Also, on two different test systems it works.
> > Of course it's the production server that fails.
> > It is intermittent too.
> > The form might load multiple times without incident.
> > When it does fail, it will continue to do so consistently
> >
> > I thought I had found the answer to this a while back.
> > Not that lucky, I guess it was just hibernating.
> >
> > Thanks ahead of time...
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> [Non-text portions of this message have been removed]
>
What stands out to me is "SignatureStruct& sig," is this something you have defined in code?

"Zac" Jason Woodward
Network Administrator
Intermountain Electronics, Inc.
O: 877-544-2291
M: 435-820-6515
F: 435-637-9601
www.ie-corp.com

Creating customer confidence through extraordinary service and experienced industry experts.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cooner_55421
Sent: Thursday, July 21, 2011 7:04 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Exception has been thrown by the target of an invocation.



>What is the rest of the error?
Error Detail
============
Exception has been thrown by the target of an invocation.

Stack Trace
===========
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)

Inner Exception
===============
Object reference not set to an instance of an object.

Inner Stack Trace
=================
at Script.InitializeGlobalVariables(CustomScriptManager csm)

--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@...> wrote:
>
> I think the details button on the error message has led me to finding the answer in the past...What is the rest of the error?
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of cooner_55421
> Sent: Thursday, July 21, 2011 6:40 PM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Exception has been thrown by the target of an invocation.
>
>
>
> Hi,
>
> I am getting this error when I launch a form customization.
> "Exception has been thrown by the target of an invocation".
>
> The error message doesn't really tell me much & I'm hoping someone can share some tips on how I might find error details.
>
> Also, on two different test systems it works.
> Of course it's the production server that fails.
> It is intermittent too.
> The form might load multiple times without incident.
> When it does fail, it will continue to do so consistently
>
> I thought I had found the answer to this a while back.
> Not that lucky, I guess it was just hibernating.
>
> Thanks ahead of time...
>
>
>
> [Non-text portions of this message have been removed]
>



[Non-text portions of this message have been removed]
Just a followup.
The shortest answer was - rebuild the customization from base.
The new version doesn't produce the error.

An Epicor tech looked at the form too & he could reproduce the error but was unable to identify the cause.

One I found interesting.
He said that even though these should be identical customizations...
The new one is "bigger" (more code).

Now I wonder if somebody could have done some "optimization" to the old version? Something that would not cause an error unless it were later revised? I seem to remember one guy using Visual Studio to "clean up" and "combine" customizations.


--- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@...> wrote:
>
> Just in case someone is interested in taking a look,
> I uploaded the customization to the Misc. section of the files:
> - PurchaseAdvisor_With_Intermittent_Error.zip
> ---- Unsolved error in a customization
> I'll delete it in a couple of days.
>
> Thanks again for all the help.
>
> --- In vantage@yahoogroups.com, "cooner_55421" <cooner_55421@> wrote:
> >
> > Thanks for all the help.
> > It has given me a few ideas.
> >
> > >>"SignatureStruct& sig," is
> > >>this something you have defined in code?
> > Unfortunately, I just added something small to a previous customization. Display a couple of fields in testboxes.
> > One FKV for a field from the Part.
> > And one more PartPLant filed to an existing epidataview.
> >
> > Of course the author of the customization I'm working with has left the company.
> > I do remember he often used Visual Studio while I'm only using the standard customization tools.
> >
> > --- In vantage@yahoogroups.com, Zac Jason Woodward <zac@> wrote:
> > >
> > > What stands out to me is "SignatureStruct& sig," is this something you have defined in code?
> > >
> > > "Zac" Jason Woodward
> > > Network Administrator
> > > Intermountain Electronics, Inc.
> > > O: 877-544-2291
> > > M: 435-820-6515
> > > F: 435-637-9601
> > > www.ie-corp.com
> > >
> > > Creating customer confidence through extraordinary service and experienced industry experts.
> > >
> > > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cooner_55421
> > > Sent: Thursday, July 21, 2011 7:04 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Re: Exception has been thrown by the target of an invocation.
> > >
> > >
> > >
> > > >What is the rest of the error?
> > > Error Detail
> > > ============
> > > Exception has been thrown by the target of an invocation.
> > >
> > > Stack Trace
> > > ===========
> > > at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> > > at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> > > at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)
> > >
> > > Inner Exception
> > > ===============
> > > Object reference not set to an instance of an object.
> > >
> > > Inner Stack Trace
> > > =================
> > > at Script.InitializeGlobalVariables(CustomScriptManager csm)
> > >
> > > --- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@> wrote:
> > > >
> > > > I think the details button on the error message has led me to finding the answer in the past...What is the rest of the error?
> > > >
> > > > From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of cooner_55421
> > > > Sent: Thursday, July 21, 2011 6:40 PM
> > > > To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> > > > Subject: [Vantage] Exception has been thrown by the target of an invocation.
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I am getting this error when I launch a form customization.
> > > > "Exception has been thrown by the target of an invocation".
> > > >
> > > > The error message doesn't really tell me much & I'm hoping someone can share some tips on how I might find error details.
> > > >
> > > > Also, on two different test systems it works.
> > > > Of course it's the production server that fails.
> > > > It is intermittent too.
> > > > The form might load multiple times without incident.
> > > > When it does fail, it will continue to do so consistently
> > > >
> > > > I thought I had found the answer to this a while back.
> > > > Not that lucky, I guess it was just hibernating.
> > > >
> > > > Thanks ahead of time...
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>