"Class doesn't support Automation" error thrown by fcSDK API Toolkit COM Compatibility Layer (Article # 168)
View products that this article applies to.
Problem:
When calling various toolkit APIs on the fcSDK API Toolkit COM Compatibility Layer, you may receive an error: "Class doesn't support Automation".
Resolution:
Though this error can be thrown for a number of reasons, the most likely reason is that incorrect types of data have been passed as arguments to the API.
For example, the FCINTER 'create_update_contract_list' method takes various combinations of strings and numeric types. If you, for example, pass a string (i.e. "xyz") to the 'units_purch' parameter, you will receive this error. This is because the 'create_update_contract_list' API documentation states that the 'units_purch' parameter is of type (VB6) Double.
To correct this error, ensure that the correct types of data are being passed into the toolkit APIs.
If all parameters and types have been double-checked and the error persists, please contact First Choice Software support.
Applies To:
-
Dovetail SDK – Dovetail Software Development Kit for Clarify