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:
Behalf Of cooner_55421
RuntimeTypeHandle typeOwner)
RuntimeTypeHandle typeOwner)
skipVisibilityChecks)
assm)
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>] On
Behalf Of cooner_55421
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:
>"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> ,
> >Display a couple of fields in testboxes.
> > 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.
> > One FKV for a field from the Part.company.
> > And one more PartPLant filed to an existing epidataview.
> >
> > Of course the author of the customization I'm working with has left the
> > I do remember he often used Visual Studio while I'm only using thestandard customization tools.
> >Jason Woodward <zac@> wrote:
> > --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> , Zac
> > >have defined in code?
> > > What stands out to me is "SignatureStruct& sig," is this something you
> > >experienced industry experts.
> > > "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
> > >[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
> > > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Behalf Of cooner_55421
> > > Sent: Thursday, July 21, 2011 7:04 PMinvocation.
> > > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > > Subject: [Vantage] Re: Exception has been thrown by the target of an
> > >Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes,
> > >
> > >
> > > >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,
RuntimeTypeHandle typeOwner)
> > > at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]arguments, Signature sig, MethodAttributes methodAttributes,
RuntimeTypeHandle typeOwner)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlagsinvokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
skipVisibilityChecks)
> > > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlagsinvokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> > > atEpicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly
assm)
> > ><mailto:vantage%40yahoogroups.com>, Karen Schoenung <kschoenung@> wrote:
> > > 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>
> > > >finding the answer in the past...What is the rest of the error?
> > > > I think the details button on the error message has led me to
> > > ><mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
> > > > From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>] On
Behalf Of cooner_55421
> > > > Sent: Thursday, July 21, 2011 6:40 PM<mailto:vantage%40yahoogroups.com>
> > > > To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> > > > Subject: [Vantage] Exception has been thrown by the target of aninvocation.
> > > >can share some tips on how I might find error details.
> > > >
> > > >
> > > > 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
> > > >[Non-text portions of this message have been removed]
> > > > 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]
> > >
> >
>