You are viewing limited content. For full access, please sign in.

Discussion

Discussion

How do I generate a CSV File in LF Cloud?

posted on January 26, 2024

I've been trying several different methods for generating a CSV file for our Accounts Payable process but have hit a wall with all of them. Lookup tables may work, but their usability is limited as I need to be able to write data to it, export that data after some time, and clear the old data while retaining previous versions of the table.

I figured the best way to do this was to use a CSV data source; however, I needed to install the Access 2010 runtime just to get it to work. Even when I did, the only options provided to me was to Select data from the file. When I tried to Insert or Update data, the CSV I had "verified" was greyed out. Is that a limitation of using a CSV as a data source?

The next thing I tried was to build a python script that would create a CSV file and input data by sending it through parameters. Now I'm stuck with that as I get the following error:

" Process python.exe: the system cannot find the file specified. Make sure python.exe has been setup. --> The system cannot find the file specified"

When I run python.exe in the command line, it works just fine. I have verified the filepath, and verified that the script works (right now it's a very basic script that just creates a CSV and puts one row in without any input parameters). Why is this error happening?

Is there some better way of generating a CSV file in Laserfiche Cloud that I'm missing?

Thanks in advance.

lf-py.png
lf-py.png (56.73 KB)
0 0
replied on January 29, 2024

I believe the Python install is per user not per machine. Is the Laserfiche Remote Worker service running as the same user as you were logged in for the screenshot above?

1 0
replied on February 6, 2024

I ended up installing Python on a separate local server. I received the same error as before, even though Python was installed for all users. After I restarted the server however, it worked. Anytime I changed the path in the LFPA config file, it didn't take effect until I restarted the server again, which seemed to be the problem. I imagine I could get away with just restarting the service, but the script is executing now.

0 0
replied on January 29, 2024 Show version history

I also have a customer asking for this, but you can not install Access Runtime "in the Cloud" and a CSV is just comma delimited text so it should not be necessary to install Access. If we want to do this in the Cloud we have to find an activity that can write text to a file in the repository directly.

Using the custom script rules agent requires an On-Prem server and in that case the most straight forward solution is just to use the System.IO TextWriter class.

But what we really want is a way to do this without an On-Prem server.

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.