Regenerate Data Model while DB is in use

(Calvin Krusen) #1

Is there any danger to regenerating the data model (because UD fields were added), while people are using the system?

And what about letting users use it in between regenerating the data model and restarting IIS?

(tyler fenwick) #2

I would highly be against this as you are talking about regenerating your entire data structure for the database while active user sessions and active transactions are taking place. I have always informed the company as to when a regen was needing to take place and we allocated down time for it. As you never know what may occur.

(Calvin Krusen) #3

That’s what I’ve always done. But was curious as the Regen Data Model function is run within the Epicor Admin Console, which would have access to see if there were active sessions. Since the Admin Console doesn’t even give you a warning about doing it while sessions are active - and the fact that you don’t need to stop the App instance - I thought maybe it was designed to be performed “on the fly”.

(Nathan your friendly neighborhood Support Engineer) #4


(Chris Conn) #5

But how do you REALLY feel about it Nathan lol

(tyler fenwick) #6

how @aidacra really feels

(Nathan your friendly neighborhood Support Engineer) #7

Fair point, and one that I will get corrected for 10.2.300. There should be a message telling you not to proceed if there are active user sessions.

(Calvin Krusen) #8

So you’re saying I should add "Prevent Data Model Regeneration while sessions are active " to the Feature Requests and Suggestions category? :slight_smile:

(Nathan your friendly neighborhood Support Engineer) #9

No need, this one I can push through with just my force of will :slight_smile:

(Calvin Krusen) #10

While they’re updating the Admin Console, can you have the sorts for date and time columns actually be by date(or time) and not the string displayed.


(Calvin Krusen) #11

Serious follow-up question …

Should the App instance be stopped before running the Data Model Regen?

(If for no other reason than to prevent people from logging in while the regen is in process)

(Nathan your friendly neighborhood Support Engineer) #12

That is what I would recommend, yes.

(Pierre Hogue) #13

That is odd,

The Companny from which we bought Epicor and who installed, trained and supported us have told us that you can do a regenerate data model while users are in the system… But is is the Recycle IIS that was the action to make sure no one is running active tasks… If there is no active task, recycle!

We have been doing that for the last 3 years !!!

I guess we got lucky!



(Calvin Krusen) #14


(tyler fenwick) #15

@aidacra has heart attacks when he see’s “IISRESET”

(Nathan your friendly neighborhood Support Engineer) #16

IISRESETs makes Dawson sad. LOOK AT THAT FACE!! Please don’t make Dawson sad.

(Richard Riley) #17

This has been discussed previously. See this thread for Best Practice on Data Model Regeneration.

(Ed Stang) #18

Worse - I have been told the same thing from an Epicor support person in the Monterrey office…I found a polite way to say No to that idea.

(Bart Elia) #19

@Rich is dead on.

I need more time to go on about the life cycle of the app server and how the data model fits into that, etc than I have at the moment. Needless to say - the DM regen is an app pool recycle - everything cached needs to be torn down and stood back up again on the server.

I have had some folks say they can do things while developing on a stand alone box and they can - because they are making changes that force the app pool to restart with what they are doing so it’s ‘safe’ - in the sense that the thing is automatically restarting! Unfortunately things get misunderstood when you play telephone…