Generate Random and unique directory name

More
5 years 1 month ago #21215 by bruce.gibbins
Hi Peter.

No, not at all. The function works well when used from within a script. But it does not appear to be available in the context of the screenshot I included. In this case I just need to generate a temporary file to hold the list of files in a directory. I can of course use a hardcoded file and path. But I suspect that if a another task happens to start that does something similar and by chance uses the same filename and path then we would have contention on the file.

So my thought was that if the GetTemporaryFile() function could within the FileOperation action and then store the generated filename in an "After Execution" function it could be used later.

I have tried to do this and generally AETL locks up if I try to use the GetTemporaryFile() function as I have shown in the screenshot,.

cheers

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #21219 by admin
Works fine here

Information 03/07/2021 16:50:10 Preparing to execute: 0004 Read Single Excel Cell Value
Information 03/07/2021 16:50:10 Started
Information 03/07/2021 16:50:10 Executing:0004 Read Single Excel Cell Value
Information 03/07/2021 16:50:10 Executing File Operation: File Operation
Information 03/07/2021 16:50:10 Path: C:\nextcloud\Examples\0004 Read Single Excel Cell Value\
Information 03/07/2021 16:50:10 Mask: *"
Information 03/07/2021 16:50:10 Path Is Valid: True
Information 03/07/2021 16:50:10 Include Directory: False
Information 03/07/2021 16:50:10 In Sub Folders: False
Information 03/07/2021 16:50:10 Attributes: ReadOnly
Information 03/07/2021 16:50:10 Attribute: Hidden
Information 03/07/2021 16:50:10 Attribute: SysFile
Information 03/07/2021 16:50:10 Attribute: aArchive
Information 03/07/2021 16:50:10 File Age: 30
Information 03/07/2021 16:50:10 Which File: 0
Information 03/07/2021 16:50:10 Found: 1 File(s)
Information 03/07/2021 16:50:10 List of Files is stored in: C:\Users\dbsl\AppData\Local\Temp\dbs5621tmp
Information 03/07/2021 16:50:11 Finished

Mike
ETL Architect
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #21222 by bruce.gibbins
Ok. Yep can see that. So it must be something environmental at my end. When I run my sample, Aetl becomes unresponsive even after a few minutes of leaving it run. There are 91 files in the folder that I am using in the List Operation and there are 10 CSV files in that 91 that should be picked up by the mask. So it is a small sample.

The screen shots show how AETLP has become unresponsive and I have included details of the Action Item. I am on fully patched Windows 10.

cheers



File Attachment:

File Name: FileOp.wfp.txt
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save