Trouble while installing the template



I downloaded the template "Opportunity scoring for Microsoft Dynamics CRM" from Cortana intelligence Gallery.
When I run crmInstaller.exe from the package, I keep on getting javascript error at the time of Azure Portal login verification. I'm not able to complete the installation because of the error.

I see the following error in error log:

2016-10-23 05:07:27 CrmInstaller.exe 4272-1 [ERROR]: An error occurred.One or more errors occurred. at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task
at AzureModelInterfaces.AzureModel.Authenticate() in C:\a\1\s\Common\AzureModelInterfaces\AzureModel.cs:line 76
at CrmInstaller.CrmDetails.BackgroundActivityWorkerTD_DoWork(Object sender, DoWorkEventArgs e) in C:\a\1\s\OpportunityScoring\Installer\Installer\SFDCDetails.xaml.cs:line 217
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

file attachments


snelso1 wrote Nov 2, 2016 at 11:33 PM

I'm also getting this same JavaScript error when trying to login to Azure. The login prompt has "cisnativeinstaller [wsfed enabled]" as the title, I put in my Azure credentials and then receive the JavaScript exception.

IntelligentTester wrote Nov 7, 2016 at 6:08 PM

I have the exact same problem, is there any work around?

pajoshi wrote Nov 8, 2016 at 7:52 AM

I've not heard from anyone from Codeplex on this issue. I've also tried to get help from Microsoft Azure support team. But they were not able to solve this problem either.

jeffsaremi wrote Nov 9, 2016 at 3:21 PM

This has to do with the authentication in Azure. Could you tell us if you see any errors on the Azure login browser? Could you use Skype or other tools to record what you see and send us that?

pajoshi70 wrote Nov 14, 2016 at 5:39 AM


No, I don't see any error while logging into Azure Portal.
I have two accounts on Azure and both of them work without problems.
Do I have to hold some resources on these accounts? The account free subscription has expired on both.

Yes, I can skype if you want to see the issue. My skype id is: pajoshi.

Regards and thanks

jeffsaremi wrote Nov 15, 2016 at 9:40 PM

I need a screenshot of this Javascript error to see what the problem is. On the login-to-Azure window which shows "CIsNativeInstaller" at the top some error is likely to show up at the bottom of the screen. I need that

Also if you can use a tool such as Skype or other tools to record the interaction would be helpful

Another thing to consider is you need a valid and not-expired subscription with some dollars left over in it to be able to create the resources needed for this solution to work.

jeffsaremi wrote Nov 15, 2016 at 10:23 PM

I almost forgot. Another requirement is to have a valid Dynamics CRM-online instance and the administrative userid/password for that

pajoshi70 wrote Nov 25, 2016 at 7:37 AM

Hello Jeff,

Did you get a chance to look at the javascript error?

pajoshi70 wrote Feb 8 at 1:17 PM

Has this been resolved?
I had given up on this template for couple of months, but felt like trying again today.

pajoshi70 wrote Feb 9 at 7:29 AM

Please take a look at attached files.

msharath wrote Feb 9 at 10:09 AM

Hi Pratima,

I spoke to Jeff who was in communication with you earlier on this topic. From what I understand, the Azure subscription that you were using did not have enough credits left and that was what the javascript error was about.

Could you try out the latest version (version 1.2.4) by taking an Azure trial subscription on the same CRM Dynamics account (so do not use the Azure subscription with an MSA account, if that is what you were doing earlier).


pajoshi70 wrote Feb 10 at 10:03 AM

With a fresh Azure portal subscription and after downloading v 1.2.4 of opportunity scoring ML model,
I was able to get through to step 6 (Email) of CRMInstaller. I did not provide any email server details since it is optional. Then I clicked on Finish.

After step 2 of 10 of the final setup, I again saw an error. "One or more errors occurred. Please check the log...".
The screen shots and log are attached.

If I click on the error dialog and click on "Finish" again, the installer asks me if I want to delete existing resource group "free trial" and create a new one. I clicked on "No" for this.

I can see 2 experiments created in my workspace in Azure ML Studio. Is that all?
Am I missing something here because the installation did not complete?

Please help me.

pajoshi wrote Feb 14 at 1:05 PM

would someone please look into this?
I need urgent help on this.

msharath wrote Feb 16 at 2:04 AM

Hi Pratima,

Could you delete the resource group and try to run the install again please.
I have seen the log and it appears that it was an intermittent failure.


pajoshi wrote Feb 21 at 11:27 AM

Hi Sharath,
I tried the installation once again. The installer asked me if I wanted to delete existing resource group and create new ones. I said yes and the installer proceeded upto step 9 of 10. There again I saw some error dialog that asked me to open the log.

The log is attached. I'm not sure if the installation is complete yet or not.

Please help.


msharath wrote Feb 22 at 7:35 PM

Hi Pratima,

In the log file that you attached, I see an error "PrivilegeName: prvImportCustomization" when the installation is attempting to import a CRM solution package into Dynamics CRM. I suspect that this is because the CRM account that you are using does not have the right privileges to upload a package.

To avoid these issues, could you use a CRM account that has admin access to run the installation.


pajoshi wrote Feb 25 at 12:41 PM

Hi Sharath,
I don't know whether my CRM account has admin access or not. I've installed a 30-day trial of Dynamics CRM.

Regards and thanks

pajoshi wrote Mar 9 at 10:26 AM

Can you help me to run this experiment without depending on Dynamics CRM?
Can I get the data sources as CSVs or something?