![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: FTP Long_list with no files Topic Summary: How do you test for the possibility there are no files to download? Created On: 09/08/2009 04:53 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
||||||||||
I am using the FTP Advanced 'Long_List' command to get files from an FTP server and populating the results to a dataset. All the sample tasks show you should loop on the dataset to download the individual files, but if there are not files to download, the task fails with 'myDataSet' variable does not exist. If there are files, the task works as expected. So, how to you test for this condition to exit gracefully?
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi PeteMeyer,
Can you please tell me your Server Connection type?
------------------------- // Ronak Patel, // Automate Development Team // Network Automation, Inc. - No Code, No Limits Business Process Automation |
||||||||||
|
||||||||||
![]() |
||||||||||
I'm using SFTP, port 22
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
This will be corrected in the next maintenance release. http://www.networkautomation.c...sueid=a20099883028144 There are 2 workarounds for this issue: 1. Connect using the standard FTP connection rather than SFTP. 2. Use compatibility mode.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Arrgh... this bug also exists when trying to connect to a FTP server using Explicit SSL, passive mode.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
Are you running v7.1.1.0?
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Yes
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
I have forwarded this to our QA dept for verification.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
We cannot reproduce the problem internally. Can you post the contents of your output tab? What is the exact error you are receiving?
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Variable "FTPFileList" does not exist
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
Do you mind exporting your task and sending the .aml file to support@networkautomation.com? I would like to verify the issue with our DEV team.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Task has been emailed to you.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
We received your task and it's being reviewed. We may have to schedule another GotoMeeting session in order to verify the issue. I will keep you posted.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Any update on this???
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Pete,
Did you receive the email from our support team earlier today?
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
I was in the same situation like this, what I did was, I used an If statement before download If dataset.FTPFileType = 1 Loop dataset download files Increment countfile ---Variable so after finishing the loop, I used the condition If Countfile = 0 send mail "No Files to Download"
|
||||||||||
|
||||||||||
![]() |
||||||||||
Suresh, Can you attach your code so we can better examine the issue?
------------------------- Thank you for choosing AutoMate. Marjo <a class="ftalternatingbarlinklarge" href="http://www.networkautomation.com" target="_blank">Network Automation, Inc. - No Code, No Limits Business Process Automation</A> |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello, I'm trying Automate 7.1.3.0 and I have a problem with Tutorial Module 4 - FTP Uploads by Files Last Modified Datein particular "FTP Advanced/Get long file list" function doesn't create any daset (slide 102/138). Can you help me please?
|
||||||||||
|
||||||||||
![]() |
||||||||||
Claudio,
Are there files present in the folder you are monitoring? A dataset only gets created if files are present. Please post what you can of your task.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Yes, there are files in the remote directory, but I think the problem is in the function "Get long list file". In it I selected the data label, and in the field "Create a dataset with..." I inserted the dataset name "FTPFileList". In the next step I have to use this dataset in a "IF" condition, but I DON'T FIND my dataset name in the DataSet folder. I should find it looklike in the tootorial. What do you think about?
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Claudio,
Which field in your FTPFileList dataset did you want to reference? For example if the field name is FileName, then you would refer to FTPFileList.FileName to address that specific fiel with the current dataset row. If there is still an unresolved case, can you post your task steps using the Attach Code button?
------------------------- - Rick Johnson Network Automation |
||||||||||
|
||||||||||
![]() |
||||||||||
Sorry Rick, <AMVARIABLE NAME="TheLocalFileDate"></AMVARIABLE>
<!-- here I want to compare the local file date with "FTPFileList.FTPFileDate" but iI don't find my dataset in the folder "Datasets" because the "long_list" function doesn't create the dataset. --> <AMIF EXPRESSION="%TheLocalFileDate% > ">
</AMLOOP>
Edited: 10/07/2010 at 11:58 PM by ClaudioRossi |
||||||||||
|
||||||||||
![]() |
||||||||||
Claudio,
I would suggest that in addition to creating a dataset you also specify a variable to populate with the returned data. If the variable is empty, that means there is nothing in the list, and then you can avoid looping the dataset, which is for sure not created.
------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello Jean, Link to tutorial lesson 4: http://www.networkautomation.com/urc/tutorials/module-4-ftp-uploads-by-files-last-modified-date/82D9F52F-9E82-4024-86992221C22E0578/ I wonder why on my pc with automate 7.1.3.0 doesn't work like in the tutorial.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Claudio,
In one of my ftp sites I have manually created an "emptyfolder" folder the task below navigates first to the parent folder then to the emptyfolder and issues a longlist with results in a var "list" and a dataset "ds2" The second message box displays that in the emptyfolder "list" is empty and ds2.totalrows=0 Testing these values will tell you that there are no files in there. You can experience it on one of your own ftpsites just by changing the credentials and paths
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
I am having the same issue, I am using Automate 10, the system is issuing an error in the event of a blank data set.
FTP faile (Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
------------------------- William Doyle Director, IT Southco, Inc. 210 N. Brinton Lake Rd. Concordville, PA 19331 Edited: 05/02/2016 at 12:07 PM by WilliamDoyle |
||||||||||
|
||||||||||
![]() |
||||||||||
The message went away....No idea, sometimes when there are no files, it is timing out while looking.
------------------------- William Doyle Director, IT Southco, Inc. 210 N. Brinton Lake Rd. Concordville, PA 19331 |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello William,
Many servers set the timeout on their side. You may want to enquire to see if there is a timeout, and if so, we may adjust for it accordingly.
------------------------- ![]() Alex Escalante | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi William, Is there still issues with this? If so, could you please provide the task involved and the specific error message it's giving?
------------------------- ![]() Devin Cannon | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
AutoMate Discussion
» AUTOMATE » AutoMate 7
»
FTP Long_list with no files
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.