Hi Tom, I did some testing with that file and found a couple of cases where potential issues arose – If the FMP table name has a space in it, the SQL command wasn’t handling it correctly, and the export doesn’t get interpreted as a proper CSV file if the FM table has container data. I have a newer version of the demo file with some corrections. If you’re interested I can send you a copy. Thanks, John Reply
Hi Tom, I’m not sure any of our team have used this technique in FM19 yet. One of us will give it a try and reproduce your results and post our findings back here. Thanks for your input! John Reply
I used the script in this demo file with FMP19 and it often has issues building the headers and data to write into the files. It also caused some weird issues with the test file where layouts would have no layout parts. The tables the layouts were based on were the ones with no data in the export files. This was repeatable and each run had the same issue for random tables each time. It seemed to occur more often in tables with more data. FMP needed a restart for things to work properly again. While this is an interesting idea I think using eSQL in this way might not be the most reliable thing to do. Reply
Hi John, I tried to download the sample file and it seems that it downloads a wrong file. The file I downloaded from the provided link is called “PBS Demo – Key Relationship.fmp12”. Is this a correct file? Reply
Hello! Thank you for bringing that to our attention. We’ve updated the link and it should be taking you to the correct file now. Please give it another try. It will be titled PBS Demo – Modular Export.fmp12. Reply
Hey Jon, I downloaded this file and I’m attempting to view the scripts and custom functions to see the specifics and see if it would work for what I’m trying to do. However it looks like I have limited access to the file. Is there a login I should be using? Reply
Hi Paul, I just downloaded the demo file as a typical person browsing the blog and the only active account in that file is a full access account. If you keep having difficulty, please email info@portagebay.com and we can email you a copy directly that we’ve tested. Reply
I had to do something very similar a few years ago, and I wrote it up in July 2014. http://peterngort.blogspot.com/2014/07/doing-mass-export-of-all-data-using.html I did it using a virtual table, which had ramifications in complexity, and Karstyn McCoy commented that 360Works ScriptMaster could have exported it to a file pretty easily too (see comment at the end). Reply
Thanks Peter, I went back and skimmed your post. Good stuff – we’re big fans of virtual lists for reporting and complex exporting at Portage Bay. John Reply