cancel
Showing results for 
Search instead for 
Did you mean: 

Error on new Pco Tag Fixed query Mode with Socket Agent

Former Member
0 Kudos

Hi All,

I am trying to use the new PCo TagFixedQuery Mode in order to open a TCP Socket connection with a TCP Server program. I am using the below function. I hope other parameters of the START function are optional.

CALL START(address='xx.xx.x.159',PORT='8888');

I am getting the below error. Can anyone help on this?

Exception occured while trying to call 'START' [Cause: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at SAP.Manufacturing.Connectivity.SocketAgent.StartPort(Dictionary`2 inputParams)]

Thanks in advance

Shaji

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Shahji,

Were you able to fix this issue? I'm facing the same issue and would appreciate if you could share your findings.

Kevin_Hunter
Advisor
Advisor
0 Kudos

Hi Ruchika,

I dont know if the original posters issue was resolved but as the error message says, the command is not in the correct format. Here is the documentation for the command.

START(byte conversionType, string address, string port, string ewmstartchar, string plcstartchar, string terminator, string length, string plcendchar ) o Opens a new connection by IPV4 address and port o conversionType is 0=Byte, 1=UTF-8, 2=UTF16=2 o ewmstartchar, plcstartchar, plcendchar are either ASCII or escaped control characters (i.e., \\02 for STX, etc.). These characters are only used in conjunction with SAP EWM integration o set either terminator or length, not both; control terminators are escaped (ex: \\0D\\0A) o use empty string for unassigned parameters) o returns 0 for success, non-zero for error

Hope this helps

Kevin