AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Automate the Import...
 
Notifications
Clear all

Questions Automate the Import of Multiple Files from FTP Location and Run Import Scenario

 
Everything Else
Last Post by Paul R. 4 years ago
6 Posts
3 Users
2 Reactions
2,563 Views
RSS
Paul R.
Posts: 18
 Paul R.
Topic starter
November 3, 2021 9:55 am
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

I’m working on a new project and I could use some help with the steps I need to complete.  I’m trying to automate the importing of data from an external source on a nightly basis.  Here is what I have:

  1. External system exports multiple Excel files to an FTP location on a nightly basis.
  2. I configured a data provider to connect and sync to the remote FTP location.
  3. I wrote an import scenario to import the external file.

Here is my problem.  I can successfully run the import scenario with a single file, but how do I do it for multiple?  When I perform the “File Synchronization", I end up as multiple versions (one for each new file).  How do I configure Acumatica to execute my IS nightly and to import all the new files it finds?  


5 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
November 4, 2021 11:37 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I've run into this same problem. As far as I could tell, the Data Provider can only sync with one Excel file, not a file folder of Excel files. At least, not if you want to import each file separately.

It's been on my list to learn more about AcuSync (click here) because I wonder if they can help with this situation. But I'm not sure at this point.


Reply
Paul R.
Posts: 18
 Paul R.
Topic starter
November 11, 2021 11:58 am
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

What if I just want to trigger the import of 1 file after synchronizing, what would the steps be to accomplish that?


Reply
Tim Rodman reacted
Paul R.
Posts: 18
 Paul R.
Topic starter
November 12, 2021 5:42 pm
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

I continued playing around with this and I was able to make some progress, but now i have a new question.  In my Data Provider definition, I still have my file source being a remote FTP location and there are multiple files there.  However, in my Import Scenario, I found that I could change the "Sync Type" from the default "Full" value to "Incremental - New Only".  Now, when I am in my Import by Scenario, I first "Prepare" the file.  If there are 10 new files, it finds the first one and prepares it.  I can then "Import".  If all is good, I can then click "Prepare" again and it will prepare the next file in my version list.  I can then "Import".  I repeat this for each file in my revision list.  Once I am all done, I get a red checkbox with the error message that there are no new files to prepare.  

This is much closer to what I am trying to achieve.  My questions is, how can I automate this process?  How can I set up a job that first tries to run a prepare on an import scenario and then tries to import it and repeat over and over?

 


Reply
Kurt Bauer
Posts: 45
 Kurt Bauer
November 12, 2021 5:52 pm
(@kurtybauer)
Trusted Member
Joined: 6 years ago

Paul,

You could try creating an automation schedule of the Import Scenario in the Process Import Scenarios screen (SM206035) to prepare and import.  In the schedule you could set it to run every 2 minutes between 7am and 7:30am, for example.  This should run 15 times and import up to 15 files. You could extend the automation schedule to run longer if needed.

Hope this helps.

Kurt


Reply
Paul R.
Posts: 18
 Paul R.
Topic starter
November 12, 2021 6:06 pm
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

I think this is exactly what I was looking for.  Thanks!


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 97 Online
  • 2,405 Members
Our newest member: Brittany Bartman
Latest Post: Importing Acumatica User Roles / User Security Permissions from Excel
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×