douglascayers / sfdc-convert-attachments-to-chatter-files

📎 Easily migrate your Attachments to Salesforce Files.
https://douglascayers.com/2015/10/10/salesforce-convert-attachments-to-chatter-files/
BSD 3-Clause "New" or "Revised" License
73 stars 29 forks source link

Attachments not converting on custom objects? #11

Closed melsherm3 closed 7 years ago

melsherm3 commented 7 years ago

Hi,

Thanks for posting this! I ran it in my sandbox and it worked great for my standard objects, but attachments were not converted to files for my custom objects. Any idea why that might happen? I enabled convert if feed tracking is disabled and confirmed that the attachments are not private.

Melissa

douglascayers commented 7 years ago

Hi Melissa,

Glad it worked for you (somewhat)! Thanks for clarifying that it does work for your standard objects and what options you have enabled.

Some questions to help troubleshoot:

Thanks,

Doug

melsherm3 commented 7 years ago

Thanks for the help! The owners weren't active, so I'll try again with active owners.

Melissa

On Sun, Feb 19, 2017 at 3:46 PM, Doug Ayers notifications@github.com wrote:

Hi Melissa,

Glad it worked for you (somewhat)! Thanks for clarifying that it does work for your standard objects and what options you have enabled.

Some questions to help troubleshoot:

  • Did you receive any error emails or do you see any error messages in the Debug Logs when you run conversion for the custom objects? To receive a success/error email you may need to set the custom setting Convert_Attachments_to_Files_Settings__c.ConversionResult Email_Notifications__c to your email address.
  • Are the owners of the attachments active users?
  • Did you set the custom setting Convert_Attachments_toFiles Settingsc.Convert_in_Near_Real_Timec to true? The Attachment trigger looks for that value to be true to enqueue the conversion job otherwise waits for you to manually perform the conversion by executing the batch job.
  • You mention you enabled "convert if feed tracking is disabled", if indeed the custom objects do not have Feed Tracking enabled then the files will only appear in the Chatter Files tab, they won't have been shared to the records and displayed in the Files related list. Can you confirm how you were testing that the files were converted?
  • What volume of attachments are you trying to convert? Do note there is a 36,000 limit of ContentVersions that can be created in a 24/hour period.

Thanks,

Doug

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/11#issuecomment-280956256, or mute the thread https://github.com/notifications/unsubscribe-auth/AI8uoZ0e29t1dO3ELlTQVAa_b2SLoKpVks5reMY5gaJpZM4MFnBm .

douglascayers commented 7 years ago

Hi Melissa,

Did trying with active owners resolve your issue?

Thanks,

Doug

melsherm3 commented 7 years ago

Yes it did. Thanks for your help!

Melissa

On Sat, Feb 25, 2017 at 10:52 PM, Doug Ayers notifications@github.com wrote:

Hi Melissa,

Did trying with active owners resolve your issue?

Thanks,

Doug

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DouglasCAyers/sfdc-convert-attachments-to-chatter-files/issues/11#issuecomment-282535124, or mute the thread https://github.com/notifications/unsubscribe-auth/AI8uofqfGtS7gC19OaAcpI0yBSHpEEW8ks5rgRMtgaJpZM4MFnBm .