Form customization opens different version when opened the first time vs opened the second time

I have a part customization where our application developer created a new tab to add UD field to. One user (myself😊) seems to have all kinds of trouble with the new customization.

After starting E10 and opening the part form the new tab in the customization is there. I close the part form and move on to other tasks. Epicor is still open and at a later time I need to open the part form again. This time I the new tab is not visible. To add to the puzzle if I do the same test in our test and development environments (different servers) the tab is there when I open the form the second time but I only see part of the customization - almost like it is a version or two behind from the latest saved customization.

We have determined it only happens to me (of course…) so my pc must have something cached somewhere. I have cleared my client cache for all of the environments with no luck getting the customization to open consistently.

Except for clearing the client cache, can anyone point me in a direction where I could look to correct this.

TIA,
Kristine

We started versioning every Customization because of such things like xyz_PartEntry_19.3.13

Make sure you do a hard cache cleanup by deleting the C:\ProgramData\Epicor folder for your instance. The Clear Cache Button within the Epicor Menu seems not to be doing a great job, ever.

Subsequent launches of Part Entry are done the same exact way (i.e. via the same exact menu). And not through a favorite, the history list, or an “Open with …” context menu?

Try purging your personalizations for that form. And not just the one related to the specific customization, but all of them.

Something that would be interesting to see, would be to do a simple personalization to the “bad form” (the 2nd time its launched), and exit the form. Then go into Personalization purge and see when that form was last updated. Was the personalization for the desired customization updated, or another one?

And FWIW - I always change the title bar of customized forms to include the customization number.

image

1 Like

I noticed in the change log that a fix is introduced referring to something like the issue you are experiencing in 10.2.300.10:

Hmmmmm

2 Likes

Interesting. We are currently on 10.2.200.10.
First I thought it was related to the fact that I access multiple databases on one server that can have different customization’s loaded. While I still think that is an issue, my theory fell apart when I also were having issues on our production server (physical box, one db only).

I followed @hkeric.wci suggestion and renamed by Epicor folder in ProgramData and that allowed for a new folder and files to be created when I logged into our production environment again. My customization seems to open consistently in live now.

I did some review of the files sitting in the Customization and CustomDLLs folder. I am suspecting there is a cleaning process that is not happening even if I clear the client cache or a new customization is applied to the company. We are also multi company and there could be something between an all company vs individual companies customization. We have two companies running this particular part customization and one company that does not that use an all company customization.

I am probably one of the few that bounce back and forth between live, test and development environments all day long testing customizations in different stages and then right now different versions as we get ready to start testing 10.2.300. Hence I am the only one we know this is happening to.

@jgehling - Thanks! Good find.

@kfierce - I’m seeing the same on a Sales Order Entry customization. When I first open the form after clearing cache (I don’t have any personalizations), I get the current version. When I close and re-open, I get an older version.

Learning the ScreenToGif program too:
SOEntry_2xDifferent

@askulte what version of E10 are you running?

We have a scheduled task that runs on everyone’s machine that attempts to clear out the cache every 5 minutes as long as they don’t currently have a session open. It has alleviated much of this problem.

I’ve seen this recently with doing development on handhelds, made a change to the menu and one login the menu is there, then the next time it’s gone. This was in the context of running through the data collection menu. Logging out of the E10 completely and back in fixed it. I agrees it does sound like a caching issue.

10.2.300.7

For me it happens in 10.1.500.31 to 10.1.500.46

FYI - I just deleted the ‘808’ CustomDLLs and Customization folders, and now it’s not pulling the old form the 2nd time.

Here’s our path:
C:\ProgramData\Epicor\yourserver-808\3.2.300.0\ESAPCO\CustomDLLs
C:\ProgramData\Epicor\yourserver-808\3.2.300.0\ESAPCO\Customization

I am just going to assume that the “Clear Cache” button within Epicor (Under Main Menu) probably fails due to some permissions behind the scenes. No different then when you open Epicor, you can’t delete the Folder or some DLLs within that path. So Exiting out of Epicor and Deleting those Cache folder is the only way.

They also do recommend you use a Shared Cache Directory, like UserShares – But I don’t see how that can help if User has Epicor open you won’t be able to delete it anyways as an Admin :slight_smile: Deploy it to every Desktop or a mini C# App .exe

IDEA

I guess you could create a ClearCache.bat file that kills the Epicor Process and Clears the Cache for your Users and then launches epicor.exe again - where they have to login :slight_smile:

Or Version your Customizations, which means Personalizations are Lost.

Also FYI they do not share the Cache between Servers. But they do Between Instances. Meaning if all your Servers are on MYSERVER and you have E10_Pilot, E10_Test, E10_Dev - it would be shared, if you are in a VM Environment and VM Like Setup it wouldn’t… But it hasn’t stopped the Issue.

2019-03-14_1125

We are tossing around the idea of a bat file that will clear the C:\ProgramData\Epicor folder each time you log into Epicor. I first thought it was related to multiple instances on one server but the theory broke when I had it happen in live. I am curious to know if the fix in 10.2.300.10 as reference above will fix the issue. I have a test environment with one instance setup that I will try to re-produce the issue.

This is a longstanding issue that was finally found and corrected in 10.2.300.10 and 10.2.200.23. I have requested that we also patch older versions.

The issue is caused by mismanagement of the Customization in regards to “All Company” vs “Company Specific” during the first time per session form load - All Company Customization are incorrectly stored as Company Specific. Subsequent form loads correctly look for the All Company cached version but depending on some complex usage patterns may load the correct version or an older version.

3 Likes

Awesomesauce! This must be it, indeed.

1 Like

I know this is old but we’ve just hit this, seemingly out of nowhere, on 10.2.400.

I’ve cleared the cache, deleted the ‘%programdata%\Epicor’ folder and uplifted the customisation to a new name but the problem persists on every machine we open, close and reopen the forms on

So far we’ve spotted it on our CustomerEntry and SalesOrderEntry forms but we’ve only just realised that this is there underlying issue of several other intermittent problems our users were reporting so on Monday I’m going to check other commonly used forms.

This could have been happening for a while but most users may not notice they’re on an uncustomised screen or may not even close/re-open screens each session so who knows :man_shrugging:

I don’t suppose anybody else has seen this recently?

Are people launching from Favorites or Recent list? Does it happen if they launch from the Menu too?

My testing used both recents and directly from menu items so yes to your final question.