Best answer

Moving a file in Google Drive

  • 30 March 2020
  • 5 replies
  • 2381 views

Userlevel 1

Hi community !

I’ve a problem with the last step of my Zap. The error message is “'NoneType' object has no attribute 'get'”.

The Zap does the following things :

  1. First, it checks when a new file is saved in a “bills” folder in my Google Drive
  2. It extracts the name of the company from the file name
  3. It creates an Evernote note with the company as a tag
  4. It extracts the date of the bill from the file name
  5. It searches for a sub-directory in Google Drive that matches the date of the file, with the YYYY-MM pattern. If the sub-directory doesn’t exists, it creates it.
  6. It moves the file to that sub-directory. This step doesn’t work.

The parameters under “customize file” section for that last step are :

FILE : 1.File : Exists but not shown

FOLDER : 5.Title : 2020-03

Any idea about what’s going wrong ?

Thanks !

icon

Best answer by Danvers 20 April 2020, 12:16

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 7
Badge +10

Hi @Thibaut 

Can you show us a screenshot of the error and how the zap steps are setup.

Userlevel 1

Hi @AndrewJDavison_Luhhu , here you are :

 

 

 

 

 

Are these pieces of information helpful ?

Thank you for your help,

Best regards,

Thibaut

Same issue here - trying Box too and getting similar results.

Userlevel 7
Badge +12

Hi @Thibaut I’m sorry for the delay in getting back to you on this! 

 

The reason for the error here is that Google Drive is expecting the ID of a file rather than the file object. If you try adding the ID of the file (that you should have from the previous step) then Google Drive will know which file you’re referring to and will be able to move it. 

 

@manattweb if you’re getting the same error, could you try the same thing? If that doesn’t work it will probably be best to contact the Support Team to take a look at your Zap, you can do that using the contact form: https://zapier.com/app/contact-us

Userlevel 1

Hi @Danvers ,

This perfectly works now !

Thank you !