@Ketan Bharat | MAQ Software - Thanks for the question and using MS Q&A platform.
The error message you're encountering indicates that the table or view named
job_static_tblDivisionTypes_temp
cannot be found in your notebook activity. This issue is often related to the scope and timing of table creation within your workflow in Azure Data Factory (ADF).
Here are a few potential solutions and troubleshooting steps:
- Check Table Creation Timing: Ensure that the temp table
job_static_tblDivisionTypes_temp
is successfully created by the copy activity before the notebook activity attempts to access it. You can add logging or debugging steps to verify this. - Validate Table Name and Schema: Double-check the exact name and schema of the temp table created by the copy activity. Ensure there are no typos or mismatches.
- Add Wait or Delay: Sometimes, the notebook activity may start before the table creation is fully completed. Adding a small delay or wait activity between the copy activity and the notebook activity can help.
- Refresh Table Command: You mentioned using the
RefreshTable
command, but ensure it is correctly placed and executed within the notebook before any queries that attempt to access the temp table. - Check for Concurrent Operations: With a batch count of 7, ensure that concurrent operations are not interfering with each other. It might be beneficial to reduce the batch count temporarily to see if it resolves the issue.
- Use Fully Qualified Table Names: If you are working with multiple databases or schemas, use the fully qualified table name (e.g.,
schema_name.table_name
) to avoid ambiguity.
By following these steps and validating each part of your workflow, you should be able to identify and resolve the issue causing the "Table or View Not Found" error.
Hope this helps. Do let us know if you have any further queries.
-------------
If this answers your query, do click `Accept Answer`
and `Yes`
for was this answer helpful. And, if you have any further query do let us know.