-
Notifications
You must be signed in to change notification settings - Fork 40
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
Export with data fails for linked tables #385
Comments
Hmm... I am able to export a linked table as XML data with no problem... I tried linking the users table from your sample database, and this exported with no issues for me. What type of a linked table is this? I am assuming that it would be a Microsoft Access database table linked to a back-end database. Also, just as a consideration here, after splitting to a front-end/back-end database setup, you may not need to include the table data as part of your export. The linked table allows you to develop various versions of the front end that all connect to the same back end data. |
Strange, I get the error as described.
Yes, it's a MS Access database as you can see in my sample database you can access in our private repo.
Yes, sure, there's no need to include data. That was a leftover after splitting database as VCS option for this table hasn't be edited to exclude data. But as the error occurred I wanted to address it. Sure, I don't need data for linked tables 😉 Access is Microsoft® Access® für Microsoft 365 MSO (Version 2302 Build 16.0.16130.20186) 64 Bit What else do you need? |
During build linked tables are built correct.
I wonder what would happen if table data for a linked table would have been exported and tried to import during build. I've updated our private repo, you'll find everything there. |
This message seems to indicate that the table was not found in After reviewing this, I found an issue with the
Well, at the moment it did nothing because the I think I will update this code to ensure that data is only being loaded into local tables, and show a warning message if a user attempts to load data into a linked table. |
Fixed an issue with table detection and adjusted to prevent importing table data into a linked table during a build or merge operation. #385
Attempting to export table data as XML can throw an error if you use the acEmbedSchema option on a linked table. #385
Thanks for pointing out the error on export. It should be fixed now with fae2ee6. |
For me it looks fine now, no data being imported. But where should this be logged? It's not in Build.log. |
Unfortunately spotted another issue on export for linked table when link source is not accessible: Either inspect if link source is accessible, table data can be read etc. or just fetch error, give warning and ask user to check (as there is no need to export linked table data IMHO). |
Thanks, @ollypsilon for identifying this oversight! #385
Good catch. I have fixed the logging for warning messages to make sure they get written to the log file. 👍 |
Error handling has been added here.
I agree. For purposes of managing source code, there are very few cases where you need to export table data, and probably not many reasons to export data from a linked table. But people can be very creative in how they use the system, so I am not preventing them from doing this. 😄 Hopefully most people that understand the concept of version control also realize that version control is not a backup solution for their data. |
Well, I think I would omit With
|
Beside the export table data part I wonder if on table definition export it should be checked if linked table is defined correct. |
I'll close this issue as the main reason has been fixed 👍 |
Thanks! Feel free to open a new enhancement issue for the items you mentioned. |
https://github.com/joyfullservice/msaccess-vcs-integration/blob/0ff31fe6ba208356d774ace113a67f48df4e000e/Version%20Control.accda.src/modules/clsDbTableData.cls#L62
For me export of linked table with data fail with error 31532.
When replacing
acEmbedSchema
' with 0 or better withacExportAllTableAndFieldProperties
all seems to be fine (needs to be verified).The text was updated successfully, but these errors were encountered: