when I am trying to upload a custom protocol or a copy of deployed protocol on a localhost agent showing this error even these protocol working well with a cloud agent
Hi,
The error message being displayed ("TabletPC inking error code. API calls were made in an incorrect order" / TPC_E_OUT_OF_ORDER_CALL) is an incorrect representation of the DataMiner error 0x80040237.
The actual error message should have been "DataMiner version is too low to use this protocol. Please check the protocol's Compliancies tag." (SL_PROTOCOL_VERSION_NOT_CORRECT)
This error indicates that the protocol defines a minimum DataMiner software version and that the DataMiner agent where you are trying to upload the protocol is running an older version.
Best to verify which DataMiner version you are running on and what the protocol is expecting.