I am currently working with a SQL workflow using Dataform. Within this workflow, I have declared certain tables and established dependencies among them. Everything is functioning as expected in this regard. However, I encountered an issue when attempting to create a table that depends on other tables which have not been declared explicitly.
The problem arises from the fact that the query doesn't compile due to the error message:
Not found: Dataset *****:dataform was not found in location US
Even though my repository is configured in the EU.
For illustration, here's an example:
simple_table
config {
type: "table",
description: ""
}
SELECT 1 AS number
UNION ALL
SELECT 2 AS number
dependent_table
config {
type: "table",
description: ""
}
SELECT * FROM ${ref("simple_table")}
I tried to change the repository location, it didn't work.
Check the
dataform.json
in your project root. In my case there wasthat was causing the same issue. In your case, "US" is probably set there.