Skip to main content
Known Participant
Aug 2, 2023 12:12 AM UTC

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

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
    Aug 2, 2023 2:36 PM UTC

    Hi,

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

    Cheers

    Translate
    user711Author
    Known Participant
    Aug 4, 2023 3:55 PM UTC

    Kindly find below


    Translate
    Amr Salama Khalil
    rbarbosa Box
    Developer Advocate
    Aug 4, 2023 6:23 PM UTC

    Hu @user711

    Thanks, I think I see the issue.

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

    Cheers

    Translate
    user711Author
    Known Participant
    Aug 4, 2023 8:11 PM UTC

    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.

    Translate
    Amr Salama Khalil
    rbarbosa Box
    Developer Advocate
    Aug 4, 2023 9:29 PM UTC

    Hummm,

    In that case let me ask the CLI team.

    Translate
    Box Employee
    Aug 7, 2023 9:30 AM UTC

    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

    Translate
    user711Author
    Known Participant
    Aug 22, 2023 2:41 AM UTC

    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

    Translate
    Amr Salama Khalil