question

Upvotes
Accepted
1 0 0 3

JKN client in Thailand found field name "52WK_HIGH" coming with RKD feed starting from May 1, 2023. Their app returned error.

Hi Team


On behalf of JKN client in Thailand, they found field name "52WK_HIGH" coming with RKD feed starting from May 1, 2023. Their app returned the following error in below screenshot.

error.jpg

Client said , they did not received this field and could retrieve data properly before May 1, 2023.


The following are example RIC (Stock in Thailand)

PTTEP.BK

AOT.BK

AAV.BK

BA.BK


From the error, client is wondering if their program cannot capture / handle field name beginning with digit well or not. From example error, it shows that field name starting with 52xxx and then program returned error.


I have shared some source code as following. Do you think there is something wrong on Line 89 why the error referred to that line ?

sourcecode.png


Thank you very much and looking forward for your suggestion.


#technologyrkd-api
error.jpg (157.9 KiB)
sourcecode.png (32.1 KiB)
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.

@nopporn.maneewong0

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

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

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

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@nopporn.maneewong0

Thanks for reaching out to us.

I found that this could be a limitation of the XML.

XML names may only start with letters, ideograms, and the underscore character. They may not start with a number, hyphen, or period. 

Therefore, the XML element name could not be "52WK_HIGH". You can validate the XML by using the XML Validator page at https://www.w3schools.com/xml/xml_validator.asp.

1683880707327.png

The workaround is if the name starts with a number, the client needs to prefix it with the underscore. Therefore, the name will be "_52WK_HIGH".

Otherwise, the client uses this XML syntax instead.

<field fieldname="52WK_HIGH" ...> </field> 

I hope that this information is of help.


1683880707327.png (86.0 KiB)
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.

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.