question

ChrisBrennanJessonCompleteITSuppor-4266 avatar image
0 Votes"
ChrisBrennanJessonCompleteITSuppor-4266 asked SumanthMarigowda-MSFT answered

WaImortExport error

i am trying to do a data import into azure for using waimportexport tool and it fails with an error

Command failed - The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: top

actual value was 300

the command i ran was waimportexport prepimport /j:journal.jrn logdir:log /id:myid /t:e /encrypt /srcdir:f:\ /dstdir:destfolder/

it goes through the initial phase of the command and encrypts the drive and then comes up starting new session for block blobs.. then enabling bitlocker on drive... then calculating disk space required... then the comes up saying disk space required 2.5TB the available 6TB then sits there for ages, then comes up with the above error about command failed - the value must be greater than or equal to zero and less than the console's buffer size in that dimension. parameter name: top actual value was 300.

on the list of commands there doesnt seem to be a top paramater to choose from.

please help.

azure-data-box-family
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered

@MaheshVempati-8312 Welcome to Microsoft Q&A platform, Thank you for posting your query!

Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

May I know which version are you using? Are you importing for Azure Blob or Files?
May I know when exactly are you getting this error?
Also, before you create an import job to transfer data into Azure Files or blob, carefully review and complete the following list of prerequisites.

The WAImportExport tool is available in two versions, version 1 and 2. We recommend that you use: Version 1 for import/export into Azure Blob storage. Version 2 for importing data into Azure files.

The WAImportExport tool is only compatible with 64-bit Windows operating system. For specific OS versions supported, go to Azure Import/Export requirements.

Can re-install the latest version and try again: https://docs.microsoft.com/en-us/azure/import-export/storage-import-export-data-to-blobs?tabs=azure-portal

For blob: To prepare the disk, run the following command. Depending on the data size, disk preparation may take several hours to days.

 ./WAImportExport.exe PrepImport /j:<journal file name> /id:session<session number> /t:<Drive letter> /bk:<BitLocker key> /srcdir:<Drive letter>:\ /dstdir:<Container name>/ /blobtype:<BlockBlob or PageBlob> /skipwrite

For Azure files refer to this article: Use Azure Import/Export service to import data to Azure Files

The Microsoft Azure Import/Export service may fail to copy some of your files or parts of a file to the Windows Azure Blob service. Some reasons for failures include:

Corrupted files, Damaged drives, The storage account key changed while the file was being transferred.

RepairImport parameters

After referring to the pre-requisites and if you are still facing any difficulties can you please share the screenshot of the error message. I wish to engage with you offline for a closer look and provide a quick and specialized assistance, please send an email with subject line “Attn:subm” to AzCommunity[at]Microsoft[dot]com referencing this thread and the Azure subscription ID, I will follow-up with you. Once again, apologies for any inconvenience with this issue.
Thanks for your patience and co-operation.

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.