I am working on a time series analysis application using R programming and it is working fine on my local machine and now the problem started with the deployment procedure of R program code to azure cognitive services.
As per my research I found that under batch processing we can implement MSR server creation and I am unable to find the document which was created.
Error: Could not index document because some of the document's data was not valid
I was expecting to create MSRdeploy procedure and received this error.
Any error rectification mechanisms are helpful.
CodePudding user response:
Error: Could not index document because some of the document's data was not valid
This could be the error occurred because of the data type of the fields extracted using the indexer is not compatible with the model. The indexer of the corresponding model and the target model might be different. There is also another chance there to get error while extracting the JSON entry with the string value.
As there is error in deployment, check with the flow of deployment using MSRdeploy.
Follow the below steps to perform the MSRdeploy.
- R programming supporting deployment models on azure platform are different in style. We can deploy using the following services: o Data science virtual machine o ML services with HDInsight o Azure Databricks o Azure Machine learning o Azure batch o Azure SQL managed instance. Note: MSRDeploy is available in Azure Databricks and not available in batch processing. Considering that the operation is based on MSRdeploy, the following procedure will help to re-check the work on the same deployment.
- Go to portal.azure.com
- Under the services, Search for r server
- Select the Ubuntu version and give a name
- Login with Virtual Machine and get the path of R executable
- MSR is also considered as Revo64
- Check with the configuration
alias rserver='/usr/local/bin/Revo64-9.0'
alias radmin='sudo /usr/local/bin/dotnet/usr/lib64/microsoft-deployr/9.0.1/Microsoft.DeployR.Utils.AdminUtil/Microsoft.DeployR.Utils.AdminUtil.dll'
- Using “radmin” setup the MSR deploy
- For reference, consider checking the following document. link
Credit: Revolution Analytics