Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Uno de los errores que puedes encontrar cuando validas tu LookML es Model <model_name> is not allowed to use connection <connection_name>.
Este error significa que debes revisar la configuración del proyecto de LookML y verificar que el modelo tenga los permisos necesarios y correctos para hacer referencia a las conexiones que necesita.
Por ejemplo, el siguiente error indica que el modelo lauren_ecommerce no tiene permitido usar la conexión athena:
Existen dos maneras de corregir el error:
Cambiar la conexión a la que se hace referencia en el parámetro connection del archivo del modelo
Editar la configuración del proyecto para proporcionar acceso a la conexión
En esta página, se proporcionan instrucciones para editar la configuración del proyecto.
Cómo editar la configuración del modelo
Para editar la configuración del modelo, haz lo siguiente:
Selecciona el vínculo Administrar proyectos en el mensaje de error. Esta acción te llevará a la página Proyectos de LookML.
También puedes navegar a la página Proyectos de LookML con la URL https://<your_looker_domain.com>/projects o seleccionando Proyectos en el menú Desarrollar del panel de navegación izquierdo.
En la página Proyectos de LookML, busca el modelo que activó el error. En este ejemplo, busca el modelo lauren_ecommerce para el proyecto l_ecommerce. Un error crítico en rojo hará que el modelo sea más visible:
Selecciona el botón Configurar para abrir la página Editar configuración del modelo.
Revisa las conexiones seleccionadas actualmente para el modelo en la sección Conexiones permitidas. En este ejemplo, el error indica que model 'lauren_ecommerce' is not allowed to use connection 'athena'. la conexión athena no está seleccionada en Conexiones permitidas del modelo. En este caso, se seleccionó la conexión ecommerce_demo por error:
Marca la casilla junto a la conexión correcta, en este caso, athena. Como alternativa, puedes seleccionar la opción Todas para otorgarle al modelo acceso a todas las conexiones, incluidas las nuevas que se agreguen en el futuro.
Ajusta otras selecciones de conexión según sea necesario.
Selecciona Guardar.
Vuelve a tu modelo de LookML y vuelve a validar para verificar que el error de configuración del modelo ya no esté presente:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-31 (UTC)"],[],[],null,["# How to fix model configuration errors\n\nOne of the errors you may encounter when you [validate](/looker/docs/lookml-validation#validating_your_lookml) your LookML is `Model \u003cmodel_name\u003e is not allowed to use connection \u003cconnection_name\u003e`.\n\n\nThis error means that you need to look at the LookML [project settings](/looker/docs/manage-projects#projects_with_only_a_configuration) and verify that the model has the necessary and correct permissions to reference the connections it needs.\n\n\nFor example, the following error indicates that the model `lauren_ecommerce` is not allowed to use the **athena** connection:\n\n\nThere are two ways to fix the error:\n\n- Changing the connection referenced in the model file's [`connection` parameter](/looker/docs/reference/param-model-connection)\n- Editing the project's configuration settings to provide access to the connection\n\n\nThis page provides instructions for editing the project's configuration settings.\n\n\u003cbr /\u003e\n\nEditing the model's configuration settings\n------------------------------------------\n\n\nTo edit the model's configuration settings:\n\n1. Expand the [validation error](/looker/docs/lookml-validation#lookml_errors) in the IDE.\n2. Select the **Manage Projects** link in the error message. This will take you to the LookML Projects page.\n\n \u003cbr /\u003e\n\n You can also navigate to the LookML Projects page by using the URL `https://\u003cyour_looker_domain.com\u003e/projects`, or by selecting **Projects** from the **Develop** menu in the left navigation panel.\n3. On the LookML Projects page, find the model that triggered the error. In this example, look for the `lauren_ecommerce` model for the **l_ecommerce** project. The model will be made more visible by a critical error in red:\n4. Select the **Configure** button to open the **Edit Model Configuration** page.\n5. Review the connections currently selected for the model in the **Allowed Connections** section. In this example, the error states that `model 'lauren_ecommerce' is not allowed to use connection 'athena'.` The connection **athena** is not selected in the model's **Allowed Connections** . The `ecommerce_demo` connection was selected by mistake in this case:\n\n \u003cbr /\u003e\n\n6. Check the box next to the correct connection --- in this case, **athena** . Alternatively, you can select the **All** option to grant the model access to all connections, including new connections added in the future.\n7. Adjust other connection selections as needed.\n8. Select **Save**.\n9. Navigate back to your LookML model and re-validate to verify that the model configuration error is no longer there:"]]