diff --git a/packages/server/src/sdk/app/datasources/datasources.ts b/packages/server/src/sdk/app/datasources/datasources.ts index 74c2ff7eb0..21661dd1fd 100644 --- a/packages/server/src/sdk/app/datasources/datasources.ts +++ b/packages/server/src/sdk/app/datasources/datasources.ts @@ -36,11 +36,14 @@ export function checkDatasourceTypes(schema: Integration, config: any) { async function enrichDatasourceWithValues(datasource: Datasource) { const cloned = cloneDeep(datasource) const env = await getEnvironmentVariables() + //Do not process entities, as we do not want to process formulas + const { entities, ...clonedWithoutEntities } = cloned const processed = processObjectSync( - cloned, + clonedWithoutEntities, { env }, { onlyFound: true } ) as Datasource + processed.entities = entities const definition = await getDefinition(processed.source) processed.config = checkDatasourceTypes(definition!, processed.config) return {