klincecum
(Kevin Lincecum)
May 5, 2024, 12:21pm
1
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.
aarong
(Aaron Gulley)
May 6, 2024, 10:15am
3
Stop hard coding server addresses. Use epicors helper.
string filePath = Ice.Lib.PathHelper.GetFolderPath(Epicor.ServiceModel.Utilities.SpecialFolder.CompanyData) + @"\";
klincecum
(Kevin Lincecum)
May 6, 2024, 11:55am
5
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.
Gives an error
Could not find a part of the path 'C:\epi\storage\epicordata\Number of Company\Companies\Number of Company'.
Hey
It doesn’t compile, the first line blows up.
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.
klincecum
(Kevin Lincecum)
January 5, 2026, 5:48pm
11
FilePath only takes 2 arguments. No “SubFolder”.
var filePath = new FilePath(ServerFolder.CompanyData, "SubFolder/FileName.txt");