Wednesday, May 24, 2017

How to Solve Task Recorder Error in Dynamics 365

Hi,
Like earlier versions of AX ,D 365 also having the Task Recorder  tool.We can use Task Recorder for recording business process in client.it may use as end user guide as well.

Problem :

In D365 ,when you are using Task recorder first time and saving the recording ,you may get the following error like  Unable to connect to Azure storage.


Error text:
Sorry, something went wrong and the file wasn't downloaded. 
Sorry, something went wrong and the file wasn't uploaded. 
Unable to connect to the remote server at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.PerformOperation(CloudStorageAccount storageAccount, String tableName, Func`1 operation) at Microsoft.DynamicsOnline.Infrastructure.Components.TableAccessor.TableStorageAccessor.AddRecord[T](CloudStorageAccount storageAccount, String tableName, T record) at Microsoft.DynamicsOnline.Infrastructure.Components.SharedServiceUnitStorage.SharedServiceUnitStorage.UploadData(SharedServiceUnitStorageData data, Stream stream) at Dynamics.AX.Application.FileUploadTemporaryStorageStrategy.completeUpload(Boolean _blobAlreadyExists, String _uniqueFileName, String _originalFilename, String _fileId, Stream _stream, String _contentType, Boolean @_contentType_IsDefaultSet) in xppSource://Source/ApplicationPlatform\AxClass_FileUploadTemporaryStorageStrategy.xpp:line 135

Cause:
Not able to  connect to Azure storage.
The “AzureStorageEmulator.exe” service was  not running on the machine
Solution : we need to do the following steps to start the service .
click on windows start  and find the Microsoft azure Emualator.

will get new window for permission to start click on Yes and continue.
now in below screen shot,we can observer that the storage emulator was successfully started.  

Installing and running the “AzureStorageEmulator.exe” service resolved the issue.
we can find the some other commands as well in the screen shot to stop the service  and other operations.

By follow the above steps we can solve the Task recorder error,now we can use task recorder with out any errors.