Skip to main content
Solved

Can Acumatica working with SFTP client in automation.


Forum|alt.badge.img+5
  • Captain II
  • 398 replies

Hello,

     Our vendor is requiring us send files which are exported from Acumatica to them by SFTP in daily basis.
       Yes, this can be done manually, I can export the file to my local computer and then I use a SFTP client to send the file. 
      However, I am wondering can this be done in an automation way?
      Thanks in advance.

Best answer by vkumar

Hi @ray20 

Here are the steps,

  • You can create a GI to pull required results
  • Create a data provider for an export scenario to be built using GI. You can use an excel file with required columns
  • Create an export scenario to export the result of the Gi
  • On data provider, enable Synchronization to move exported file required destination folder based on date or file version
  • Set an automation schedule to run the export scenario on the required interval

Here are the screenshots:

Created a GI to pull Customer Code and Customer description

Created data provider to export details to an excel 

Created an export scenario to export the data from GI result

 

Export by scenario exports GI result content to the file specified on provider

 

Click here to open file maintenance on data provider and enable synchronization

 

 

Screate a schedule to automate running the export scenario on required time interval

Hope this helps,

Regards,

View original
Did this topic help you find an answer to your question?

23 replies

Forum|alt.badge.img+1
  • Varsity III
  • 73 replies
  • November 24, 2020

Yes

On the File Synchronization (SM202530) Page, you can set up a clock to create an Automation Schedule (SM205020). 

Note that synchronization needs to be enabled on the file maintenance to display on the File Synchronization page. 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • November 25, 2020
schneur96 wrote:

Yes

On the File Synchronization (SM202530) Page, you can set up a clock to create an Automation Schedule (SM205020). 

Note that synchronization needs to be enabled on the file maintenance to display on the File Synchronization page. 

@schneur96  Thank you. It is a bright idea.
However, in this way, it is a semi-automation not a full automation. The key question here is how can I get the “file” in an automation way.
The way you suggested is in the precondition that we already have a file in system, and then define the sync schedule based on that file.
Can we also to generate that kind of file like from a GI or from a report run in an automatically way?
thank you in advance.


Forum|alt.badge.img+11
  • Acumatica Support Team
  • 783 replies
  • Answer
  • November 25, 2020

Hi @ray20 

Here are the steps,

  • You can create a GI to pull required results
  • Create a data provider for an export scenario to be built using GI. You can use an excel file with required columns
  • Create an export scenario to export the result of the Gi
  • On data provider, enable Synchronization to move exported file required destination folder based on date or file version
  • Set an automation schedule to run the export scenario on the required interval

Here are the screenshots:

Created a GI to pull Customer Code and Customer description

Created data provider to export details to an excel 

Created an export scenario to export the data from GI result

 

Export by scenario exports GI result content to the file specified on provider

 

Click here to open file maintenance on data provider and enable synchronization

 

 

Screate a schedule to automate running the export scenario on required time interval

Hope this helps,

Regards,


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • November 25, 2020

@vkumar 
wonderful, wonderful, fantastic, amazing, super. I don’t know how to choose the words to express how I feel about the workflow you pointed out. This is why I love Acumatica so much, it is powerful, strong, efficient tool. And with so many nice people to help us with. Thank you.
Thank you very much, it is the best solution I can imagine.
Wish you a happy and safe thanksgiving day.


Forum|alt.badge.img+11
  • Acumatica Support Team
  • 783 replies
  • November 25, 2020

@ray20 wish you a happy thanksgiving day :)  stay safe

 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • December 1, 2020

@vkumar 
I have repeated your steps, all is OK. however, in your steps, you didn’t mention the File Synchronization screen, ScreenId=SM202530.
The only scheduler I set is on “process export scenarios” screen, will the export of file automatically trigger the synchronizaion file? 
or I still have to add a scheduler maybe 1 to 2 minutes later on “file synchronizaion” screen after the scheduler on “file exporting”.
Please advise, thank you.


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • December 2, 2020

@vkumar 
hello, it looks like I still have to set scheduler on “file synchronization”
thank you. vendor successfully received our report.


Forum|alt.badge.img+11
  • Acumatica Support Team
  • 783 replies
  • December 2, 2020

Hi @ray20 

Glad to know its working. Yes, you need to set the scheduler on ‘file synchronization’ as well. Did not get a chance to respond to your previous question sooner.

Regards,


Forum|alt.badge.img+1

Hi Vijay,

Brilliant work! 

I did not manage to get a data provider using SFTP working correctly. Is it possible to have a sample/screenshots of the data provider you created ? just want to check how you specified it. 

Please send e at eudes.coelho@tascoli.com.

 

Many thanks


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 46 replies
  • July 7, 2021

Here are the couple steps to automate the export of the file to the FTP server. 

  1. Once the file is created via the export scenario you can go into the File Maintenance and setup the synchronization tab.  You can test the sync by clicking on the Synchronization > Export File action to test if it works.
  2. Once the sync is working manually it can be automated via the File Synchronization processing screen by setting up an automation schedule.

 

 


  • Freshman I
  • 1 reply
  • March 2, 2022

Hello,

Thanks for the above.

New query - How can you export one or more SO Sales Order and export to ftp with different file name.

ie Order1.csv, Order2.csv, Order3.csv

And to remove them for next lot of SO orders

ie Order4.csv, Order5.csv, Order6.csv

Appreciate your assistance.

Mac

 


Forum|alt.badge.img+1

Hi Mac,

I have never tried to do what you need using Export Scenarios but I can tell you that my approach in most of the cases is a 2 step procedure:

  1. I use Export Scenarios to extract the required data ;
  2. I use ETL tools to read , transform and distribute the data according to multiple business rules (by order/invoice, all together by customer, etc.) , multiple media formats (csv, Excel, pdf, etc.) and multiple destinations (upload to SFTP or other sites, copies via email, and so on)

I believe this approach gives me the best and fastest results as extracting the data from Acumatica database using Export Scenarios saves me a great deal of time and by using ETL tools I can add distributing rules, schedules, business rules and media choice that I would not be able to add to Export Scenarios. There are other indirect benefits as well such as:  transferring all that secondary workload from Acumatica to an external application or even environment; higher flexibility to adapt the distribution of data to new requirements; it is a solution that fits very well to instances running in cloud.  
 

I hope this helps. 


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 46 replies
  • March 2, 2022

Mac,

The standard Acumatica export scenario and FTP sync is not able to name a file specifically based on the order number.  We looked at the AcuSync product for a couple clients in the Acumatica marketplace.  It has a lot of features and could easily support your custom file names.

AcuSync - Marketplace - Acumatica Cloud ERP

Thanks,

Kurt


  • Freshman II
  • 6 replies
  • May 12, 2022

Hey guys, thanks for all the answers on this.  I have a scenario where we do have to ftp a file out and I’ve done all the steps outlined.  Everything is working when I do the steps manually.  The file is exported and the sync puts the file out on the ftp server.  great.  My issue is this will need to be run nightly and when I setup the automations to test this, it didn’t work.  The automation history said it was all completed successfully, but I don’t see any evidence that the export scenario was prepared, exported, or the file was sent out.  What  I’m noticing or seeing now, is that even if I just go into the Process Export Scenario screen, pick the scenario and choose either just Prepare, or Prepare and Export, nothing seems to happen.  No error, but nothing changes.  The status of the export scenario doesn’t change to Prepare if I just do Prepare, etc.  I’m thinking that maybe that is why the automations also didn’t seem to do anything.  Any thoughts or ideas on why the Process Export Scenario screen doesn’t seem to do anything or what else I can try?   Thanks.

 


Forum|alt.badge.img+1
  • Varsity III
  • 73 replies
  • May 12, 2022

Hi

 

When you are on the Export Scenario screen (SM207036) dose prepare and Export work? 


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 46 replies
  • May 12, 2022

Here are the high-level steps to get the process working to automatically send out data created via a generic inquiry.

  1. Create the GI with the data
  2. Create the export scenario to export the GI to a data provider (Excel or CSV)
  3. Setup the synchronization on the file maintenance tab of the file created by the export scenario
  4. Schedule the export scenario to run using the Process Export Scenarios screen (SM207035)
  5. Schedule the synchronization of the file using the File Synchronization screen (SM202530)

Do you have both #4 and #5 setup?  The file synchronization will only work when a new version of the file has been created by the export scenario.

I just setup something similar for a client that needs to export daily transactional data to a parent company.

Thanks,

Kurt


  • Freshman II
  • 6 replies
  • May 12, 2022

Thanks for replying Kurt.  I have double and tripled check things.  I did discover that if the data did not change, mine is from a GI of some stock item data, since the last time a prepare and export are done, that it will not generate a new version of the file and based on what you said, then the file sync will not occur.  I thought that was going to be my issue, but that would be way to easy to explain!!  After playing around with it some more, it’s just that the Process Export Scenario screen is simply not processing the export scenario no matter what I try and at the moment, I’m doing this outside of the automation, just doing it directly on the screen.  I am changing an item, before trying so that the data is different from the previous try, and whether I do either prepare or prepare and export, nothing happens  The screen seems to be behaving a little weirdly too although I haven’t had any experience with the screen before.  When I check the box and click process (after saving), I am seeing the checkbox  become unchecked.  From what I remember from other screens, that seemed strange.  Even did the prepare on the Export by Scenario screen and just tried the Export on the Process screen and again, it just doesn’t do anything. The status doesn’t change and there is no sign that anything happened.


Forum|alt.badge.img
  • Jr Varsity III
  • 47 replies
  • September 12, 2022

Any ideas on how to export only prepared records?  Overwriting anything previously exported?


Forum|alt.badge.img+1
  • Varsity III
  • 73 replies
  • September 12, 2022

Can you share a bit more details of current process and the gole?


Forum|alt.badge.img+1
  • Varsity III
  • 73 replies
  • September 12, 2022

If you are exporting the data to a file, You can always name the file with the same naming convention, and it will override. 


Forum|alt.badge.img
  • Jr Varsity III
  • 47 replies
  • September 13, 2022

Thanks for the quick response!!  I figured it out.  Kinda like going to the doctor and then feeling much better. :-)


Forum|alt.badge.img
  • Jr Varsity II
  • 23 replies
  • November 8, 2024
rskieresz88 wrote:

Thanks for replying Kurt.  I have double and tripled check things.  I did discover that if the data did not change, mine is from a GI of some stock item data, since the last time a prepare and export are done, that it will not generate a new version of the file and based on what you said, then the file sync will not occur.  I thought that was going to be my issue, but that would be way to easy to explain!!  After playing around with it some more, it’s just that the Process Export Scenario screen is simply not processing the export scenario no matter what I try and at the moment, I’m doing this outside of the automation, just doing it directly on the screen.  I am changing an item, before trying so that the data is different from the previous try, and whether I do either prepare or prepare and export, nothing happens  The screen seems to be behaving a little weirdly too although I haven’t had any experience with the screen before.  When I check the box and click process (after saving), I am seeing the checkbox  become unchecked.  From what I remember from other screens, that seemed strange.  Even did the prepare on the Export by Scenario screen and just tried the Export on the Process screen and again, it just doesn’t do anything. The status doesn’t change and there is no sign that anything happened.

Did you ever figure out how to get that Process Export (or Import) Scenarios screen to work? I’m seeing the same behavior you are w the checkbox check disappearing and nothing happening.

Thanks!


KurtBauer
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 46 replies
  • November 8, 2024

Once you run the Process Export scenario screen if there is any new data to export it will be exported and attached as a new revision to the file on the export scenario.

So in my scenario below, once the export is run, you can click on the file attachement (1) to see the files.  Then click edit (2) to show the file maintenance window.  There you can see all the revisions of the file from running th export (3).  Then if you setup the synchronization as I mentioned above in the synchronization tab (4), you can then use the file synchronization screen to schedule the SFTP of the file.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings