function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
goodonegoodone 

Email2Case LargeAttachmentDirectory

Newbie here..any help appreciated.

In my sfdcConfig.txt, I have:

<largeAttachmentDirectory>\\sfdcfiles\</largeAttachmentDirectory>
<largeAttachmentURLPrefix>file:\\sfdcfiles\</largeAttachmentURLPrefix>

Where exactly should this dir be? I keep getting "Invalid directory specified for large attachments"

TIA
goodonegoodone
It is failing at this line:

                logger.info("dir:" + dir); // outputs: "dir: //sfdcfile/"
                File f = new File(dir);
                boolean isValid = f.exists();
                logger.info("isValid: " + isValid); // outputs "isValid: false"
                if (!isValid) isValid = f.mkdirs();
                logger.info("isValid: " + isValid); // outputs "isValid: false"
                if (!isValid) throw new InvalidConfigurationException(ConfigurationExceptionCode.SFDC_INVALID_LARGE_ATTACHMENT_DIR);


Why is it unable to create dir's?

saariko.ax241saariko.ax241
Hi there,

1. The directory has to sit where the deamon is running. (A local directory)
2. Unfortunatly, with my server it still doesn't work, so if yours will, I am happy for you.

Saar
goodonegoodone
Well, it is where the deamon is running, alright!
But what did work is giving the full-path (instead of relative path - something like C://sfdcfiles/