Skip to main content
Best answer

Slack message attachments saved to Google Drive are corrupted

  • 6 June 2024
  • 7 replies
  • 32 views

Hello, I have created a zap that triggers every time a new message is posted in our slack #news channel. I want any messages that have an attachment (be it a PDF or XLS etc.) to be stored in a folder on google drive. 

The Zap works - however, the content that is stored on the google drive is corrupted. I cannot open any of the PDFs and get an error. 


Please advise how to fix this!

7 replies

Userlevel 7
Badge +14

Hi @zzizzoo 

To provide more context, post screenshots with how your Zap steps are outlined and configured in EDIT mode.

 

 

 

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

 

Attached screen shots! The Zap works, the problem is the file is corrupted on the drive. I read somewhere there needs to be a delay to allow enough time for it to download the message and then send it, but i can’t seem to add a delay within the action of the file upload. I can only delay between the new message posted and the action of uploading it on the google drive… 

Have tried including a delay between the two steps the result is the same. 

Userlevel 7
Badge +14

@zzizzoo 

Try using this Zap trigger: Slack - New File

You can filter by Channel.

 

 

The File field expects a file url or a file object instead of a file title.

Help article about sending files in Zaps: https://help.zapier.com/hc/en-us/articles/8496288813453

 

Hey just tried that, it worked again -- but the file is still corrupted on the google drive - can’t open the PDF

Userlevel 7
Badge +14

@zzizzoo 

We would need to see updated screenshots with how your Zap steps are outlined and configured to have current context.

Okay got it to work!!!!! thank you! Mapping was wrong, need to select the file it self even though its not show -- selecting the download link was the issue.

Userlevel 7
Badge +11

Yay! Nice working in getting to the bottom of what was causing the issue here @zzizzoo! 🙌

Sounds like you might be all set for now, but if anything changes on that do let us know - always happy to assist if you run into any further issues or questions. 

In the meantime, happy Zapping! ⚡

Reply