Part Master Application Error

Thanks for all the help, I was able to fix the issue by removing the adaptor and saving it.


From: b_ordway <cooner_55421@...>
To: vantage@yahoogroups.com
Sent: Wednesday, March 21, 2012 10:17 AM
Subject: [Vantage] Re: Part Master Application Error


Â

I wonder if a control was added and then deleted?
I often get orphans on a form. I've been getting rid of them a couple of ways.

In customization mode, I use the custom xml editor, custom controls grid. There I can remove the values for orphans too.

In customization maintenance I use the verify action to list error and warnings. I am able to delete some of these.

--- In vantage@yahoogroups.com, John Driggers <waffqle@...> wrote:
>
> I don't see anything that jumps out as wrong. Are you sure that name
> matches your control?
>
> On Wed, Mar 21, 2012 at 10:01 AM, Lori Gustafson <lori_gus@...> wrote:
>
> > **
> >
> >
> > Here is the code
> >
> >
> > '//**************************************************
> > '// Custom VB.NET code for PartForm
> > '// Created: 12/9/2005 11:35:31 AM
> > '//**************************************************
> > Imports System
> > Imports System.Data
> > Imports System.Diagnostics
> > Imports System.Windows.Forms
> > Imports System.ComponentModel
> > Imports Microsoft.VisualBasic
> > Imports Epicor.Mfg.UI
> > Imports Epicor.Mfg.UI.FrameWork
> > Imports Epicor.Mfg.UI.ExtendedProps
> > Imports Epicor.Mfg.UI.FormFunctions
> > Imports Epicor.Mfg.UI.Customization
> > Imports Epicor.Mfg.UI.Adapters
> > Imports Epicor.Mfg.UI.Searches
> >
> > Module Script
> > '// ** Wizard Insert Location **
> > '// Begin Wizard Added Module Level Variables **
> > '// End Wizard Added Module Level Variables **
> >
> > '// Add Custom Module Level Variables Here **
> >
> > Sub InitializeCustomCode()
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Custom
> > Method Calls' lines **
> > '// Begin Wizard Added Variable Intialization
> > '// End Wizard Added Variable Intialization
> > '// Begin Custom Method Calls
> > '// End Custom Method Calls
> > End Sub
> >
> > Sub DestroyCustomCode()
> >
> > '// Begin Custom Code Disposal
> > '// End Custom Code Disposal
> > End Sub
> >
> > Private Sub PartForm_Load(ByVal sender As object, ByVal args As
> > EventArgs) Handles PartForm.Load
> > '//
> > '// Add Event Handler Code
> > '//
> > LoadUDCombos()
> > End Sub
> > Private Sub LoadUDCombos()
> >
> > Dim recSelected As Boolean
> >
> > '// Load UD02 Combo
> > Dim dsUD01 As DataSet =
> > Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> > "UD01Adapter", recSelected, False, "")
> > If recSelected Then
> > ucbEpiCustom1.ValueMember = "Key1"
> > ucbEpiCustom1.DataSource = dsUD01
> > ucbEpiCustom1.DisplayMember = "Character01"
> > Dim fields As String() = New String() { "Character01" }
> > ucbEpiCustom1.SetColumnFilter(fields)
> > End If
> >
> > End Sub
> >
> > End Module
> >
> > From: John Driggers <waffqle@...>
> > To: vantage@yahoogroups.com
> > Sent: Wednesday, March 21, 2012 8:27 AM
> > Subject: Re: [Vantage] Part Master Application Error
> >
> >
> > Did you change the name of the combo box?
> >
> > It looks like your code is trying to reference a control that doesn't exist
> > in the last few lines.
> >
> > The first few could be any number of things. If the code isn't terribly
> > long, post it and we can probably help more.
> >
> > On Wed, Mar 21, 2012 at 9:13 AM, Lori Gustafson <lori_gus@...>
> > wrote:
> >
> > > **
> >
> > >
> > >
> > > Does anyone know what this error means or how to correct it? We built a
> > > table using UD01 and added an ultra combo box to the Part Master that
> > uses
> > > a retriever to pull in the information in this table and it worked fine
> > > until recently and now we are getting this error message when we open up
> > > the Part Master.
> > >
> > > The following application error was encountered:
> > >
> > > --------compile errors------------
> > > Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
> > > Error: BC30035 - line 140 (161) - Syntax error.
> > > Error: BC30035 - line 214 (235) - Syntax error.
> > > Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
> > > Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
> > > Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
> > > Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
> > >
> > > ** Compile Failed. **
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > >
> > >
> >
> > --
> > *John Driggers*
> > *High End Dev, System Design, Profit Drinking*
> > *
> > **:: 904.404.9233*
> > *:: waffqle@...*
> > *:: NO FAXES*
> >
> > *
> >
> >
> > *
> >
> > [Non-text portions of this message have been removed]
> >
> > ------------------------------------
> >
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> > have already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and
> > Crystal Reports and other 'goodies', please goto:
> > http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto:
> > http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
>
>
> --
> *John Driggers*
> *High End Dev, System Design, Profit Drinking*
> *
> **:: 904.404.9233*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
> *
>
>
> [Non-text portions of this message have been removed]
>




[Non-text portions of this message have been removed]
Does anyone know what this error means or how to correct it? We built a table using UD01 and added an ultra combo box to the Part Master that uses a retriever to pull in the information in this table and it worked fine until recently and now we are getting this error message when we open up the Part Master.
Â
The following application error was encountered:
Â
--------compile errors------------
 Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
 Error: BC30035 - line 140 (161) - Syntax error.
 Error: BC30035 - line 214 (235) - Syntax error.
 Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
 Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
 Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
 Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
Â
 ** Compile Failed. **

[Non-text portions of this message have been removed]
Did you change the name of the combo box?

It looks like your code is trying to reference a control that doesn't exist
in the last few lines.

The first few could be any number of things. If the code isn't terribly
long, post it and we can probably help more.

On Wed, Mar 21, 2012 at 9:13 AM, Lori Gustafson <lori_gus@...> wrote:

> **
>
>
> Does anyone know what this error means or how to correct it? We built a
> table using UD01 and added an ultra combo box to the Part Master that uses
> a retriever to pull in the information in this table and it worked fine
> until recently and now we are getting this error message when we open up
> the Part Master.
>
> The following application error was encountered:
>
> --------compile errors------------
> Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
> Error: BC30035 - line 140 (161) - Syntax error.
> Error: BC30035 - line 214 (235) - Syntax error.
> Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
> Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
> Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
> Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
>
> ** Compile Failed. **
>
> [Non-text portions of this message have been removed]
>
>
>



--
*John Driggers*
*High End Dev, System Design, Profit Drinking*
*
**:: 904.404.9233*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
Here is the code
Â
Â
'//**************************************************
'// Custom VB.NET code for PartForm
'// Created: 12/9/2005 11:35:31 AM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Â
Module Script
   '// ** Wizard Insert Location **
   '// Begin Wizard Added Module Level Variables **
   '// End Wizard Added Module Level Variables **

   '// Add Custom Module Level Variables Here **
Â
   Sub InitializeCustomCode()

       '// ** Wizard Insert Location - Do not delete 'Begin/End Custom Method Calls' lines **
       '// Begin Wizard Added Variable Intialization
       '// End Wizard Added Variable Intialization
       '// Begin Custom Method Calls
       '// End Custom Method Calls
   End Sub
Â
   Sub DestroyCustomCode()

       '// Begin Custom Code Disposal
       '// End Custom Code Disposal
   End Sub
Â
   Private Sub PartForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles PartForm.Load
       '//
       '// Add Event Handler Code
       '//
       LoadUDCombos()
   End Sub
   Private Sub LoadUDCombos()
       Â
       Dim recSelected As Boolean
      Â
       '// Load UD02 Combo
       Dim dsUD01 As DataSet = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans, "UD01Adapter", recSelected, False, "")
       If recSelected Then
           ucbEpiCustom1.ValueMember = "Key1"
           ucbEpiCustom1.DataSource = dsUD01
           ucbEpiCustom1.DisplayMember = "Character01"
           Dim fields As String() = New String() { "Character01" }
           ucbEpiCustom1.SetColumnFilter(fields)
       End If
     Â
   End Sub

End Module

From: John Driggers <waffqle@...>
To: vantage@yahoogroups.com
Sent: Wednesday, March 21, 2012 8:27 AM
Subject: Re: [Vantage] Part Master Application Error

Did you change the name of the combo box?

It looks like your code is trying to reference a control that doesn't exist
in the last few lines.

The first few could be any number of things. If the code isn't terribly
long, post it and we can probably help more.

On Wed, Mar 21, 2012 at 9:13 AM, Lori Gustafson <lori_gus@...> wrote:

> **
>
>
> Does anyone know what this error means or how to correct it? We built a
> table using UD01 and added an ultra combo box to the Part Master that uses
> a retriever to pull in the information in this table and it worked fine
> until recently and now we are getting this error message when we open up
> the Part Master.
>
> The following application error was encountered:
>
> --------compile errors------------
>Â Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
>Â Error: BC30035 - line 140 (161) - Syntax error.
>Â Error: BC30035 - line 214 (235) - Syntax error.
>Â Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
>Â Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
>Â Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
>Â Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
>
>Â ** Compile Failed. **
>
> [Non-text portions of this message have been removed]
>

>



--
*John Driggers*
*High End Dev, System Design, Profit Drinking*
*
**:: 904.404.9233*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links



[Non-text portions of this message have been removed]
I don't see anything that jumps out as wrong. Are you sure that name
matches your control?

On Wed, Mar 21, 2012 at 10:01 AM, Lori Gustafson <lori_gus@...> wrote:

> **
>
>
> Here is the code
>
>
> '//**************************************************
> '// Custom VB.NET code for PartForm
> '// Created: 12/9/2005 11:35:31 AM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
>
> Module Script
> '// ** Wizard Insert Location **
> '// Begin Wizard Added Module Level Variables **
> '// End Wizard Added Module Level Variables **
>
> '// Add Custom Module Level Variables Here **
>
> Sub InitializeCustomCode()
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Custom
> Method Calls' lines **
> '// Begin Wizard Added Variable Intialization
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
> '// End Custom Method Calls
> End Sub
>
> Sub DestroyCustomCode()
>
> '// Begin Custom Code Disposal
> '// End Custom Code Disposal
> End Sub
>
> Private Sub PartForm_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles PartForm.Load
> '//
> '// Add Event Handler Code
> '//
> LoadUDCombos()
> End Sub
> Private Sub LoadUDCombos()
>
> Dim recSelected As Boolean
>
> '// Load UD02 Combo
> Dim dsUD01 As DataSet =
> Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> "UD01Adapter", recSelected, False, "")
> If recSelected Then
> ucbEpiCustom1.ValueMember = "Key1"
> ucbEpiCustom1.DataSource = dsUD01
> ucbEpiCustom1.DisplayMember = "Character01"
> Dim fields As String() = New String() { "Character01" }
> ucbEpiCustom1.SetColumnFilter(fields)
> End If
>
> End Sub
>
> End Module
>
> From: John Driggers <waffqle@...>
> To: vantage@yahoogroups.com
> Sent: Wednesday, March 21, 2012 8:27 AM
> Subject: Re: [Vantage] Part Master Application Error
>
>
> Did you change the name of the combo box?
>
> It looks like your code is trying to reference a control that doesn't exist
> in the last few lines.
>
> The first few could be any number of things. If the code isn't terribly
> long, post it and we can probably help more.
>
> On Wed, Mar 21, 2012 at 9:13 AM, Lori Gustafson <lori_gus@...>
> wrote:
>
> > **
>
> >
> >
> > Does anyone know what this error means or how to correct it? We built a
> > table using UD01 and added an ultra combo box to the Part Master that
> uses
> > a retriever to pull in the information in this table and it worked fine
> > until recently and now we are getting this error message when we open up
> > the Part Master.
> >
> > The following application error was encountered:
> >
> > --------compile errors------------
> > Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
> > Error: BC30035 - line 140 (161) - Syntax error.
> > Error: BC30035 - line 214 (235) - Syntax error.
> > Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
> >
> > ** Compile Failed. **
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> --
> *John Driggers*
> *High End Dev, System Design, Profit Drinking*
> *
> **:: 904.404.9233*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
>
> *
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
> [Non-text portions of this message have been removed]
>
>
>



--
*John Driggers*
*High End Dev, System Design, Profit Drinking*
*
**:: 904.404.9233*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
I would suggest trying to Type cast the EpiGUID, like this instead of using the actual named control :

Dim eucSales As EpiUltraCombo = CType(csm.GetNativeControlReference("5483cdef-3049-4705-b597-28ae93bc7fdf"), EpiUltraCombo)

I had the same issue when I tried to use EpiUltraCombos, but I was attaching an adapterCombo to them such as UD01AdapterCombo. I was then trying to use the ComboBox and I would get that error.

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of John Driggers
Sent: Wednesday, March 21, 2012 7:27 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Part Master Application Error

I don't see anything that jumps out as wrong. Are you sure that name matches your control?

On Wed, Mar 21, 2012 at 10:01 AM, Lori Gustafson <lori_gus@...> wrote:

> **
>
>
> Here is the code
>
>
> '//**************************************************
> '// Custom VB.NET code for PartForm
> '// Created: 12/9/2005 11:35:31 AM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
>
> Module Script
> '// ** Wizard Insert Location **
> '// Begin Wizard Added Module Level Variables **
> '// End Wizard Added Module Level Variables **
>
> '// Add Custom Module Level Variables Here **
>
> Sub InitializeCustomCode()
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End
> Custom Method Calls' lines **
> '// Begin Wizard Added Variable Intialization
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
> '// End Custom Method Calls
> End Sub
>
> Sub DestroyCustomCode()
>
> '// Begin Custom Code Disposal
> '// End Custom Code Disposal
> End Sub
>
> Private Sub PartForm_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles PartForm.Load
> '//
> '// Add Event Handler Code
> '//
> LoadUDCombos()
> End Sub
> Private Sub LoadUDCombos()
>
> Dim recSelected As Boolean
>
> '// Load UD02 Combo
> Dim dsUD01 As DataSet =
> Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> "UD01Adapter", recSelected, False, "")
> If recSelected Then
> ucbEpiCustom1.ValueMember = "Key1"
> ucbEpiCustom1.DataSource = dsUD01
> ucbEpiCustom1.DisplayMember = "Character01"
> Dim fields As String() = New String() { "Character01" }
> ucbEpiCustom1.SetColumnFilter(fields)
> End If
>
> End Sub
>
> End Module
>
> From: John Driggers <waffqle@...>
> To: vantage@yahoogroups.com
> Sent: Wednesday, March 21, 2012 8:27 AM
> Subject: Re: [Vantage] Part Master Application Error
>
>
> Did you change the name of the combo box?
>
> It looks like your code is trying to reference a control that doesn't
> exist in the last few lines.
>
> The first few could be any number of things. If the code isn't
> terribly long, post it and we can probably help more.
>
> On Wed, Mar 21, 2012 at 9:13 AM, Lori Gustafson <lori_gus@...>
> wrote:
>
> > **
>
> >
> >
> > Does anyone know what this error means or how to correct it? We
> > built a table using UD01 and added an ultra combo box to the Part
> > Master that
> uses
> > a retriever to pull in the information in this table and it worked
> > fine until recently and now we are getting this error message when
> > we open up the Part Master.
> >
> > The following application error was encountered:
> >
> > --------compile errors------------
> > Error: BC30183 - line 69 (90) - Keyword is not valid as an identifier.
> > Error: BC30035 - line 140 (161) - Syntax error.
> > Error: BC30035 - line 214 (235) - Syntax error.
> > Error: BC30451 - line 72 (290) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 73 (291) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 74 (292) - Name 'ucbEpiCustom1' is not declared.
> > Error: BC30451 - line 76 (294) - Name 'ucbEpiCustom1' is not declared.
> >
> > ** Compile Failed. **
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> --
> *John Driggers*
> *High End Dev, System Design, Profit Drinking*
> *
> **:: 904.404.9233*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
>
> *
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access.
> )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
> [Non-text portions of this message have been removed]
>
>
>



--
*John Driggers*
*High End Dev, System Design, Profit Drinking*
*
**:: 904.404.9233*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links