-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build hangs on importing linked table having invalid path. #409
Comments
possibly related: #307 |
Thanks, Josh! I will see if I can test this on the latest |
I was able to test this using There may be some types of errors, such as ODBC connection timeouts that we may not be able to easily trap before they go into a timeout phase. I am open to suggestions on better ways to handle those, but I would guess that these should be pretty infrequent on actively developed projects. |
If an object fails to import during a build operation, we may encounter an error when attempting to assign a document property to a non-existent object. This should be logged but not break code execution. #409
Thanks Adam. I've tried to recreate the problem with an Access linked table using testing.accde (after removing the code that relinks tables to current path on open) but it handles a bad path gracefully with error and continues. Also, I tested build of my export after creating the file/tbl at the bad path (making it good) and the build ran fine. Then I renamed the file and re-build hangs again. Further, after crashing out of Access and opening the partial built file I can see it hung on the table in question due to import sequence. So either fixing the bad path or deleting the table from the project json builds successfully. Why? Tried to debug in the add-in and ImportLinkedTable function is definitely throwing 3044 error at Mystery I guess. Thanks again. |
Different types of linked tables can throw different errors if Access is unable to link to the table. Adding the error numbers for file not found and invalid path. #409
Thanks! It looks like there are at least a couple more error numbers Access uses when it has problems linking to a Microsoft Access database table. I added these to the error handler, so that should fix the issue, at least for these two situations. I need to review things a little further because the following |
Not one to give up i tried to debug the addin further. I got Error: 28 out of stack space after
I prevented The only side effect noticed is the progress textbox and build log had many blank lines (123-996) and the 3044 error did not post to either place. Perhaps an endless logging loop(?) Hope this helps |
Thanks! Yes, that is helpful, and explains why Access was hanging. It probably does have to do with the function that checks for unhandled errors going into a loop... I know I refactored that recently, and might have introduced a bug. I will look at this when I have a chance. |
The cascading call stack involved in logging an error also includes checking for unhandled errors, which was triggering a second error handling process before the first one completes. This change provides a state variable to monitor whether we are in the process of handling an error, and will not recursively trigger the error handling routines. #409
@joyfullservice Is this solved? |
Yes, I believe this has been resolved. We can reopen the issue if we have any further problems with this. |
I found build hangs on importing tables when we have a linked table with an old, non-existent path.
No error pops and it hangs indefinitely 'not responding' with high cpu. I was able to delete the respective tbldefs files(s) and remove the same from the index.json file and the build worked rather fast as expected.
It'd be nice if the error was handled gracefully. "UNABLE TO LINK TABLE BLAH. PATH NOT FOUND" Continue?
Thanks for this tool. wish I knew about it years ago. keep up the great work!
The text was updated successfully, but these errors were encountered: