cancel
Showing results for 
Search instead for 
Did you mean: 

SAP - An error occurred retrieving the application model

manishganapathy
Level 4

We are trying to use the Application Navigator when scoping SAP but we have been getting the following error. 

"An error occurred retrieving the application model

BluePrism.Server.Domain.Models.BluePrismException: Failed to get snapshot - ERROR - ERROR:Object reference not set to an instance of an object.
BluePrism.AMI.clsAMI.GetElementTree(String mode, Boolean includeInvisible, clsProgressMonitor monitor, String snapshot)
AutomateUI.frmApplicationTreeNavigator.DoRefreshTreeWork(Object sender, DoWorkEventArgs e)
System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)"

image.png

Can someone help us with this? 

 

BP version: v7.1.1

SAP Version: 760

Blue Prism Enterprise v7

5 REPLIES 5

Hello,

Does the problem only occur with SAP? Have you checked if the SAP GUI is enabled? To enable SAP GUI scripts, open the SAP client and log in with administrative credentials. Start an RZ11 transaction. Type 'sapgui/user_scripting' in the Maintain Profile Parameters window and click View. Click Change Value in the View Profile Parameter Attributes window and type TRUE in the New Value field. Save the settings and log out of the SAP GUI.

Regards,

Leonardo Soares RPA Developer América/Brazil

asilarow
MVP

I second @LeonardoSQueiroz here - this definitely looks like a case of disabled scripting in SAP.

Read on here how to enable it (account registration required).

One thing to add here, enabling scripting requires admin permissions, so you most likely will need to ask your SAP admin to do this.

Andrzej Silarow

manishganapathy
Level 4

Thanks for your response @LeonardoSQueiroz , @asilarow . 

We have it enabled. 

If am not wrong we wont be able to scope anything if we have it disabled. And we have 15-20 other SAP processes which runs without issues. We have issue only when we open the application model. 

 

Thanks,

Manish

Ah.. in that case, does this happen on every machine you try? or just this specific one?

Also, are you able to spy an element without using the application navigator?

Andrzej Silarow

It happens on every machine. 

Yes, we are able to spy without using the application navigator. For one or two specific cases we just wanted to use it but for some reason after the 7.1.1 update it isn't working.