Hi
I get a "directory not found error" while I try to post my invoices in batch.
For until some time ago it used to work fine, but suddently it keeps crashing, and throwing a directory not found error.
We used to create those "temp" directory and put the invoice in them and after the invoice were posted. the directory get deleted.
The following code throws the error.
@SYS72247: "Directory %1 is not found!"
public str fileName(str _value = fileName) { #WinAPI str directory; // if setter is called, then get directory and check if valid, else throw error. if (_value && !prmisDefault(_value)) { directory = System.IO.Path::GetDirectoryName(_value); // if the directory is empty then use the users temp path. if (!directory) { directory = SRSPrintDestinationSettings::getTempFilePath(); // create the file name by combining the temp path the filename. fileName = System.IO.Path::Combine(directory, _value); } else { if (printMediumType == SRSPrintMediumType::File && !System.IO.Directory::Exists(directory)) { throw error(strFmt("@SYS72247", directory)); } if (printMediumType == SRSPrintMediumType::NCEBoks && !System.IO.Directory::Exists(directory)) { throw error(strFmt("@SYS72247", directory)); } // if directory is valid, then just assign the value to member variable. fileName = _value; } // if file name is changed, user may be prompted for overwriting existing file; pass false to allow this prompt to happen this.parmOverwriteFileIsSet(false); } return fileName; }