ValueError: The name 'dash_assets' is already registered for a different blueprint. Use 'name=' to provide a unique name

Our dashboard application is build in flask using dash library.Our application is to load a dashboard for the different institutions based on the institution id id that we retrive from another java application.The dashboard is loading for the institution when the id is passed in url as an argument. when we try to load one more institution using another id from a different browser we are getting below error. ValueError:The name '‘dash_assets’ is already registered for a different blueprint. Use ‘name=’ to provide a unique name.
app.py

def create_app():

app = Flask(__name__)
# app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
environment_configuration = os.environ['CONFIGURATION_SETUP']
app.config.from_object(environment_configuration)
logging.basicConfig(level=logging.DEBUG)
@app.route('/')
def load_index_page():
   return  render_template('index.html', title='Index')
@app.route('/login/')
def login():
 id=**
 hosp_id=**

if logout_date_time=='None':
        print("VALID SESSION")
        register_dashapps(app,hosp_id,id)
        return redirect('/dash/')
else:
        print("INVALID SESSION")
        return  render_template('error.html', title='Error')

return app

In dash_setup.py

def register_dashapps(app,hosp_id,id):

assetpath = get_root_path(__name__)
print('**ASSET PATH**',assetpath)

dashapp = dash.Dash(
    __name__,
    # This is where the Flask app gets appointed as the server for the Dash app
    server = app,
    url_base_pathname = '/dash/',
    assets_folder = get_root_path(__name__) + '/dashapp//assets//', 
    meta_tags = meta_viewport, 
    external_scripts = external_scripts,
    external_stylesheets =  [external_stylesheets,dbc.themes.CERULEAN]
)

error
ERROR:app.app:Exception on /login/ [GET]

Traceback (most recent call last): File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\app.py”, line 2073, in wsgi_app response = self.full_dispatch_request() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\app.py”, line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\app.py”, line 1516, in full_dispatch_request rv = self.dispatch_request() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\app.py”, line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File “D:\ehealth Dashboard\analytics_dashboard\app\app.py”, line 54, in login register_dashapps(app,hosp_id,id) File “D:\ehealth Dashboard\analytics_dashboard\app\dash_setup.py”, line 55, in register_dashapps dashapp = dash.Dash( File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\dash\dash.py”, line 426, in init self.init_app() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\dash\dash.py”, line 441, in init_app self.server.register_blueprint( File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\scaffold.py”, line 57, in wrapper_func return f(self, args, *kwargs) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\app.py”, line 1028, in register_blueprint blueprint.register(self, options) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\blueprints.py”, line 305, in register raise ValueError( ValueError: The name ‘dash_assets’ is already registered for a different blueprint. Use ‘name=’ to provide a unique name.

Hello. Have you solved that issue?
I’m struggling to solve it.

I have the same structure of app:
Flask at the top and Dash apps with server corresponds to Flask. This errors occure for my when i try use import_app from dash.testing.application_runners

I also encounter this error when I try to build a multi page app.