Troubleshooting¶
AST.VERSION or AST.Utils is undefined in consumer script¶
Cause:
- Library identifier/namespace shape mismatch.
Fix:
Then call ASTX.VERSION, ASTX.Utils, ASTX.DataFrame, etc.
Both inputs must be valid Date objects. when using ASTX.Utils.dateAdd/dateSub/dateDiff¶
Cause:
- Invalid/non-date values passed to date utilities.
Fix:
- Ensure values are real date instances (or ISO strings converted to
Datebefore calling). - Confirm you are on the latest published version (cross-context date hardening shipped in
v0.0.1and later).
Provider must be one of: databricks, bigquery¶
Cause:
- Invalid
providervalue in SQL or table-write request.
Fix:
- Use exact values:
databricksorbigquery.
Missing required AI configuration field 'apiKey'¶
Cause:
- No API key was resolved from per-call
auth, runtime AI config, or script properties.
Fix:
const ASTX = ASTLib.AST || ASTLib;
ASTX.AI.configure(PropertiesService.getScriptProperties().getProperties());
Or pass per-call auth explicitly:
Unsafe placeholder interpolation is disabled by default¶
Cause:
placeholderswere provided without explicit opt-in.
Fix:
Only do this for trusted, controlled queries.
clasp run runAllTests fails from local shell¶
Common causes:
- Missing
claspauth. - No API-executable deployment.
- Network/API auth issues.
Quick checks:
Docs deploy failed on tag¶
Possible causes:
- GitHub Pages environment protection rules.
- Missing Pages permissions/config.
Fix:
- Verify repository Pages source is GitHub Actions.
- Re-run
docs.ymlvia workflow dispatch onmaster.