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.

def create_app():

app = Flask(__name__)
# app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
environment_configuration = os.environ['CONFIGURATION_SETUP']
def load_index_page():
   return  render_template('index.html', title='Index')
def login():

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

return app


def register_dashapps(app,hosp_id,id):

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

dashapp = dash.Dash(
    # 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 on /login/ [GET]

Traceback (most recent call last): File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 2073, in wsgi_app response = self.full_dispatch_request() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 1516, in full_dispatch_request rv = self.dispatch_request() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File “D:\ehealth Dashboard\analytics_dashboard\app\”, line 54, in login register_dashapps(app,hosp_id,id) File “D:\ehealth Dashboard\analytics_dashboard\app\”, line 55, in register_dashapps dashapp = dash.Dash( File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\dash\”, line 426, in init self.init_app() File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\dash\”, line 441, in init_app self.server.register_blueprint( File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 57, in wrapper_func return f(self, args, *kwargs) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, line 1028, in register_blueprint blueprint.register(self, options) File “C:\Softwares\Anaconda3\envs\ML\lib\site-packages\flask\”, 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.