Skip to main content

Does the latest Box CLI v3.9.1 have an issue executing bulk commands


Forum|alt.badge.img

Hi Team,

The latest Box CLI v3.9.1 doesn’t recognize the file or folder id in CSV files, does anyone encounter the same issue.

7 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • August 2, 2023

Hi,

Can you narrow down the command your using, or even better can you paste the command you are having issues with?

Cheers


Forum|alt.badge.img
  • Author
  • Known Participant
  • 15 replies
  • August 4, 2023

Kindly find below



rbarbosa Box
  • Developer Advocate
  • 553 replies
  • August 4, 2023

Hu @user711

Thanks, I think I see the issue.

Can you convert your id column to string, instead of numbers?

Cheers


Forum|alt.badge.img
  • Author
  • Known Participant
  • 15 replies
  • August 4, 2023

Thanks for the feedback, I changed the column to text and still gives the same error.

Also I wanted to confirm that I am using the above excel sheet with Box/cli3.9.0 win32-x64 node-v14.19.3 and it works fine but the same excel sheet with Box/cli/3.9.1 win32-x64 node-v14.19.3 and it doesn’t work.


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • August 4, 2023

Hummm,

In that case let me ask the CLI team.


  • Participating Frequently
  • 21 replies
  • August 7, 2023

Hi @user711

The error you mentioned:

Missing 1 required arg:
id ID of the folder to add metadata to

I could reproduce on @box/cli/3.9.1 win32-x64 node-v14.19.3 only in case of incorrect header definition in the .csv file after I added an extra space after id ,template-key,data,as-user. But when I removed that space everything works fine again.

Can you open your file in plain notepad and make sure the header looks exactly like this:

id,template-key,data,as-user

, with no spaces or other characters between the fields?

Regards,
Artur


Forum|alt.badge.img
  • Author
  • Known Participant
  • 15 replies
  • August 22, 2023

Sorry for the late reply and thanks for your help but I checked my file and didn’t find any spaces and yet I am getting the same error

Here is my file sample

id,templateKey,Data,as-user
783151390695,recordRetentionClassificationCreationDateTrigger,retentionCode=ADMN-001 | Temporary Records,3875303392
820208934485,recordRetentionClassificationCreationDateTrigger,retentionCode=ADMN-001 | Temporary Records,3875303392
821974654544,recordRetentionClassificationCreationDateTrigger,retentionCode=ADMN-001 | Temporary Records,3875303392
821973706932,recordRetentionClassificationCreationDateTrigger,retentionCode=ADMN-001 | Temporary Records,3875303392


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings