When compiling dataform project we encounter this error :
{
"error": {
"code": 400,
"message": "Retrieving remote files took too long; repository or diff is too large.",
"status": "INVALID_ARGUMENT"
}
}
We expect that the project compile and the api return a compilation id
knowing that :
dataform compile --timeout 4m commad took : 25.99s
dataform compile --timeout 4m --json > graph.json command generate a 17MB json file
Hi @mks0ff,
Welcome to Google Cloud Community!
The error you're seeing can be caused by several factors:
While your local dataform compile command completes in about 26 seconds and generates a 17MB JSON file, the remote API operates in a sandboxed environment with stricter resource constraints and no internet access. This can sometimes cause timeouts or performance issues.
Here’s what you can try to resolve the issue:
Additionally, you may find this documentation useful for resolving common issues with Dataform.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.