FTP not working? (File drop) Stop here for a sec

Our environment had some of the work they had queued up done for AKS this weekend.

About 3:30 AM, we could no longer print to Bartender, as we use a file drop to FTP.

This behavior was somewhat inconsistent, which I don’t quite understand, but the solution was this:

If in your code to your file drop you normally write to:

  • \\machinename\12345\RestOfPath

Change your code to write to:

  • \\machinename.epicordt.local\12345 \RestOfPath

And you should be good.

Stop hard coding server addresses. Use epicors helper.


string filePath = Ice.Lib.PathHelper.GetFolderPath(Epicor.ServiceModel.Utilities.SpecialFolder.CompanyData) + @"\";

Or use bartender REST

This is a different computer my friend, where there is no helper method, and it’s not hard coded, I have my own helper method.

You Do You Boo GIFs - Find & Share on GIPHY

It’s nice

Gives an error

Could not find a part of the path 'C:\epi\storage\epicordata\Number of Company\Companies\Number of Company'.

It’s slightly changed

Review my post here

Hey

It doesn’t compile, the first line blows up.

image

var filePath = new FilePath(ServerFolder.CompanyData, “SubFolder”, “FileName.txt”);

I changed the SubFolder to be one of our subfolders and the filename to be a text file that I dropped in there but no surprise that did not fix the compile error.

Is something else supposed to be substituted for ServerFolder.CompanyData?

Adding the Ice.Customization.Sandbox reference did not help the cause either.

FilePath only takes 2 arguments. No “SubFolder”.

var filePath = new FilePath(ServerFolder.CompanyData, "SubFolder/FileName.txt");