I have a customization that triggers off of an AfterAdapterMethod as per the below. A custom field which is not anywhere in my code always error’s out when I am on our SSO application pool. When I am on the normal application pool, it does not error out. The error i get is:
private void oTrans_imAdapter_AfterAdapterMethod(object sender, AfterAdapterMethodArgs args)
{
// ** Argument Properties and Uses **
// ** args.MethodName **
// ** Add Event Handler Code **
// ** Use MessageBox to find adapter method name
// EpiMessageBox.Show(args.MethodName)
switch (args.MethodName)
{
case "OnChangeToJobSeq":
Same app server. Desire was to separate SSO and traditional authentication. Regen of datamodel was done from Production application and confirmed in sync when launching UD Column Maintenance from both applications.
Regen DataModel you have to do on the Database once (if all AppServers share same DB)
Recycle IIS you have to do on each Application Server which also will update the DataModel DLL Files. If the column is used in a BPM also on Task Agent App Servers.
Restart Epicor Client(s).
Also make sure Comment_c is indeed a String, double check it wasnt set by accident to Int.
Regen of DataModel was done on the database. (We only have 1 AppServer and 1 DB on separate servers).
We recycled both both Application Pools.
We run Epicor in a RemoteApp environment and I have done a clear client cache.
The code doesn’t reference Comment_c at all. I can confirm in the udcolumn maintenance that it is still a string. If there was a variable type issue, would it not create an error on both application pools, not just the one?
It may not be in the code, but go in Customization Mode and Export it to an XML, then search XML for Comment_c - or look at the Custom XML Fields… it may be a EpiBinded field to a textbox thats lurking.
If you have exported the XML and inspected the XML (not just code).
Can you double check in UD Columns Maintenance on Table JobMtl_UD what you have. Worst case I would regen again. Because its enough for the Comment_c to exist in UD Columns Maintenance with wrong type or default value, despite you not using it, it still intializes the DataTable on the UI behind scenes.
Also once you check UD Columns Maintenance, XML you said you checked, you can also post the “Details” of the error. Stack Trace.
Well thanks for pushing me to triple check… JobMTL_UD is not in sync. I checked this multiple times on the weekend before we went live and this was synced. I did check this from the Production application pool instance of the Epicor client though, not SSO.
Check your Comment_c types, settings… and atleast you have something to work with… Remember to Recycle all Instances and perhaps redo Regen on or something odd
If you look at your Server Directory inside Assmblies there is going to be a dll Erp.Data.910100.dll check the Modified Date on both Instances
Thanks again for the heads up on the DLL. It was great to be able to check the date modified of both files to ensure it worked as expected. We are back up and running without errors.