question

Upvotes
Accepted
2 0 0 0

Contribution via RFA Error

Hello,

Contribution to the field 1003 returns an error when the text size is larger than 3 characters.

Contribution via Insertlink works fine with the same size.

How we should format the text so the contribution using RFA works the same way as Insertlink?

Thanks in advance.

treprfarfa-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
20.3k 73 10 20

Hi @m.ghanim

Your internal contributeSRRFA function appears to be adding the hex values "1B 25 30" to the start of the string. e.g. from your trace file:

FIELD_ENTRY 1002: 1b253041424344 // where 41424344 = ABCD

This is why when try to post anything more than 3 characters you exceed the 6 character limit of FID 1002.

You should only need to add "1B 25 30" when posting under the circumstances described in the article Encoding and Decoding non-ASCII text using EMA and RFA C++/.NET.

If you do need to post the above character set switch codes, then you will need to use some other FID that can handle the additional 3 bytes.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
20.3k 73 10 20

Hi @m.ghanim

You have not stated the error text - please advise what error you receive so we can better understand what is going wrong.

Please also share the code you use to encode and submit the field. Are there any local language characters in the string?

Also, it would be useful to see the low level trace to ascertain what is being set to the server and response received back, by setting the following parameters for your connection, and attach the output:

\Connections\<Connection_RSSL>\traceMsgToFile = True
\Connections\<Connection_RSSL>\traceMsgFileName = "<your trace file location and name>"  

The above parameters are for RFA C++ / RFA.NET - if you are using RFA Java please refer to this post for instructions on enabling the Trace.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi @Umer Nalla,

The error returned by RFA is NACK_DENIED_BY_SRC, "(409) String Too Big" when the string is larger than 3 characters.

Below is the code used to post the field 1003 :

Map<String,String> contrib = new HashMap<String,String>();  contrib.put("GV3_TEXT", "ABCD");
String ric = "XXXX"
basic.contributeSRRFA(ric, contrib);

The value is encoded to OMMTypes.RMTES_STRING.

You can also find, attached, the log for the contribution after traces have been activated on RFA.

rfa-trace.txt (8.4 KiB)
Click below to post an Idea Post Idea