vSphere - "Session has been closed. Validation has failed."

vSphere - "Session has been closed. Validation has failed."

87
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:11 PM


Symptom


When connecting to Vsphere via PVWA, after 5 minutes it crashes and an error window pops up.


vmware error.png


#Dispatcher.log for the component


[03/08/2022 | 11:26:40] | :: | PSMDU018E Dispatcher error: [HTMLPageController :: FindElement -> Timeout error. Element 'search-field' was not found in new page. ]

[03/08/2022 | 11:28:11] | :: | PSMDU018E Dispatcher error: [HTMLPageController :: FindElement -> Timeout error. Element 'menu-container' was not found in new page. ]

[03/08/2022 | 11:29:41] | :: | PSMDU018E Dispatcher error: [HTMLPageController :: FindElement -> Timeout error. Element 'esx-main-content' was not found in new page. ]


[03/08/2022 | 11:29:42] | :: | PSMDU018E Dispatcher error: [ConnectionComponentController :: PopUpErrorMessageBox -> Title="Error Occurred" Message="Validation failed. Refer to the log for more information." Timeout=30 Subtitle="Login failed"]



Environment


11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.4;12.3;12.5;12.6 Privileged Access Manager (PAM, self-hosted) PSM

PSM 12.1 Component.



Cause


Based on the log entries in the dispatcher log, the web component is failing the validations of the fields and web content that it should run validations for.



Resolution


  • Switching off the validations in the webform settings. The webform may contain the following;


Under PVWA>Options>Connection Component>Target Settings>Web Form Settings


username; {Username}(searchby=id);

password; {Password}(searchby=id);

loginButtonRow;

(Button)(searchby=id);search-field;

(Validation)(searchby=id);menu-container;

(Validation)(searchby=class);esx-main-content;

(Validation)(searchby=class)

-----


# You can switch off validation by deleting the (Validation) tags in the webform code so it looks like this from the above example.


username; {Username}(searchby=id);

password; {Password}(searchby=id);

loginButtonRow;

(Button)(searchby=id);search-field;

(searchby=id);menu-container;

(searchby=class);esx-main-content;

(searchby=class)


or


# 1. PVWA>Options>Connection Component>Target Settings>Client Specific>RunValidations

2. Set this to "No".




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001Zv2CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail