We just upgraded from 12.5.1 to 2017 R3 and started to encounter an issue with an application we are integrating with using OLE. The old version worked fine, but the new version randomly has given the following error trying to run a function on the OLEObject. No code change has been done between the 2 versions regarding this logic.
Incorrect number of parameters calling external object function
The function trying to be called works fine in previous calls within the same application session, but then gives this error and the only way to get around the error is to restart the application. I have verified that the parameters are valid via debugging. The OLEObject is created before each attempt (not an instance or global variable). To make it a little more complex the OLEObject function does take in another OLEObject as a parameter, but I have validated that the parameter OLEObject is valid and is set as expected.
This is the specific call being made:
ole_query.ExecuteQuery(lole_filters, ab_indexmode)
Has anyone else had an issue like this? What else can I do to troubleshoot as I cannot reproduce the issue myself and there is no pattern to what users are getting it and when.
This is an big issue as I cannot finish upgrading all of our apps to the new PowerBuilder version until this is resolved as it would be too inconvenient for users of some apps to have to restart their app potentially multiple times a day!