How to resolve 'INVALID_OPERATION_WITH_EXPIRED_PASSWORD' error while getting meta data using Salesforce Tools 'Get Metadata' of Salesforce Plugin.

How to resolve 'INVALID_OPERATION_WITH_EXPIRED_PASSWORD' error while getting meta data using Salesforce Tools 'Get Metadata' of Salesforce Plugin.

book

Article ID: KB0075659

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com -

Description

Customer might get below error while getting meta data using Salesforce Tools 'Get Metadata' of Salesforce Plugin even though the Salesforce Connection Test is successful:
***************************************
Caused by: Error occurred while executing the Salesforce SOAP method: The method is [ describeGlobal ], details - [ INVALID_OPERATION_WITH_EXPIRED_PASSWORD: The users password has expired, you must call SetPassword before attempting any other API operations ].
    at com.tibco.plugin.salesforce.axis.AxisDynamicInvoker.invokeMethod(AxisDynamicInvoker.java:125)
    at com.tibco.plugin.salesforce.axis.DescribeMetadata.getGlobal(DescribeMetadata.java:45)
    at com.tibco.plugin.salesforce.axis.DescribeMetadata.getGlobalTypes(DescribeMetadata.java:54)
    at com.tibco.ae.tools.palettes.salesforce.GetMetadataAction.busyGetGlobalTypes(GetMetadataAction.java:768)
    ... 7 more
Error occurred while executing the Salesforce SOAP method: The method is [ describeGlobal ], details - [ INVALID_OPERATION_WITH_EXPIRED_PASSWORD: The users password has expired, you must call SetPassword before attempting any other API operations ].
    at com.tibco.plugin.salesforce.axis.AxisDynamicInvoker.invokeMethod(AxisDynamicInvoker.java:125)
    at com.tibco.plugin.salesforce.axis.DescribeMetadata.getGlobal(DescribeMetadata.java:45)
    at com.tibco.plugin.salesforce.axis.DescribeMetadata.getGlobalTypes(DescribeMetadata.java:54)
    at com.tibco.ae.tools.palettes.salesforce.GetMetadataAction.busyGetGlobalTypes(GetMetadataAction.java:768)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.tibco.util.Trampoline.invoke(Trampoline.java:136)
    at com.tibco.ui.BusyWait.run(BusyWait.java:428)
    at java.lang.Thread.run(Thread.java:748)
***************************************

Issue/Introduction

How to resolve 'INVALID_OPERATION_WITH_EXPIRED_PASSWORD' error while getting meta data using Salesforce Tools 'Get Metadata' of Salesforce Plugin.

Environment

Salesforce Plugin v2.5.0, v6.x

Resolution

Above error indicates that the password of the Salesforce user has been expired and must be reset. Salesforce automatically forces users to reset the password after certain period. Using expired password, user can login until it is changed or forced to change the password but the user is restricted to make few api calls and only allowed operation is the setPassword call. Since user can login using expired password, the test connection is successful.

To resolve this issue, please reset your password or contact Salesforce Admin to reset the password and use the new password. Also Salesforce user can be set for password to never expiry so that password doesn't required to change periodically. 

Please note that when password is changed new security token is generated. This newly generated security token needs to be used with new password in Salesforce connection.