microsoft / SDCM

Surface Dev Center Manager tool to automate WHQL/Attestation submissions and Shipping Label creation for Microsoft Hardware Dev Center
MIT License
34 stars 17 forks source link

Getting error as "COMMAND_LINE_OPTION_PARSING_FAILED" #52

Closed MansiBharadwaj closed 1 year ago

MansiBharadwaj commented 1 year ago

Describe the bug The sdcm tool has returned this error when I retried to submit the package "COMMAND_LINE_OPTION_PARSING_FAILED "

To Reproduce Its an uncertain behavior didn't get every time but 1-2 times I get this when retrying to submit the package in partner center using sdcm tool

Expected behavior Does not happen like this

Desktop (please complete the following information)

Additional context Can anybody help to know why this occurred and how I can solve this!

Ben-Carpenter commented 1 year ago

@MansiBharadwaj could you please provide the argument(s) you are passing as defined in Create a Submission. Please obfuscate any identifiable values.

MansiBharadwaj commented 1 year ago

@Ben-Carpenter { "createType": "submission", "createSubmission": { "name": "$ProductName`_Attestation_Submission", "type": "initial" } } I have used this tool thousand times before but this error I observed first time.

Ben-Carpenter commented 1 year ago

We are looking for the argument line you passed to the tool sdcm.exe -create Create_ProductName_Submission_HLK.json -productid PID

The error returned was COMMAND_LINE_OPTION_PARSING_FAILED, meaning that something was not correct in the command line arguments which you entered.

MansiBharadwaj commented 1 year ago

yes, this only I passed and it's not like I am using the tool first time I used it before 1000 times but this time when submission request failed, I retried three times and, in the end, Got error For example: - sdcm.exe -create "path to Json" -productid "id" :: id I got after the product submission.

Ben-Carpenter commented 1 year ago

Are you blocked or just reporting that it happened but were able to get it to run successfully?

MansiBharadwaj commented 1 year ago

I am not blocked I am just reporting because I also need to find a solution so this problem will not occur or if occur I will be able to handle but dont know how to handle

Ben-Carpenter commented 1 year ago

Alright, glad to hear you're not blocked. You can always try debugging the args being passed in.

This error is thrown here at the beginning of the program when it parses the provided args.

COMMAND_LINE_OPTION_PARSING_FAILED

I will go ahead and close this issue.