Data entity export error – Azure Storage Emulator issue

I was working on a one-box developer VM that I downloaded from LCS Asset library and updated many times to the newest platform update (It is on PU32, 10.0.8 now). I faced issues with exporting data. Execution log just said “Error(s) while uploading the file-“.

Figure 1.: Entity export execution log: Error(s) while uploading the file-

Event log said: “Error in uploading file to target uri”…”The remote server returned an error: (400) Bad Request.”

Figure 2.: Event log: “Error in uploading file to target uri”…”The remote server returned an error: (400) Bad Request.”

The reason was that Azure Storage Emulator was not running, but I could not start it. I tried to install the newest version from Microsoft docs site here and initialize using ‘AzureStorageEmulator.exe init’ command. An error was thrown while it was trying to initialize at “Creating database AzureStorageEmulatorDb510 on SQL instance ‘(localdb)\MSSQLLocalDB'” at step granting database access to the user:

“Cannot create database ‘AzureStorageEmulatorDb510’ : The login already has an account under a different user name”

Figure 3.: AzureStorageEmulator.exe init error

I could have tried to fix the login name, but an easier solution was to manually create the database AzureStorageEmulatorDb510 (see detailed script below), open cmd as administrator and start the emulator by “AzureStorageEmulator.exe start” command.

Script for creating the database:

Leave a Reply

Your email address will not be published. Required fields are marked *