CA AA Adapter AFM says profile name is invalid

Document ID : KB000109833
Last Modified Date : 06/08/2018
Show Technical Document Details
We have installed and configured CA Advanced Authentication v 9.0.0 to work with CA SSO. However, when we try to access protected resource, error log indicates that "Profile name received by AFM is invalid."  How to fix the issue?
CA AA 9.x
This issue will happen if someone copies over the old file or they have deployed the old arcotafm.war file to carry forward the customizations they have done previously.
Deploy the arcotafm.war file which comes after installing the CA Adapter and use the file which is generated after running the ArcotAFMWizard.