question

Upvotes
Accepted
2 0 0 1

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 512.0 KiB each and 1.0 MiB total.

Hello @m.ghanim

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

@m.ghanim

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
25.3k 87 12 25

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 512.0 KiB each and 1.0 MiB total.

Upvotes
25.3k 87 12 25

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 512.0 KiB each and 1.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)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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