N ntuser04 Member Licensed User Jun 2, 2021 #1 I have successfully received data from an API call and have gotten back a JSON response but I am getting an error when I try to assign one of the response entries to a string. The value of the entry I am trying to assign to a string is a varchar(max). I set a breakpoint and see that the key I am using is correct "CLAIMMEMO" and a value exists. The value from the JSON is an encoded base 64 byte array. Below is the error and the line of code which is giving me the error, there is only two lines every time the error message is displayed. I also get the same error when I try to log the Get("CLAIMMEMO") but I do not get an error when the log the row it self and see the truncated value for CLAIMMEMMO. Please assist. Error occurred on line: 139 (ClaimItemsProcessActivity) java.lang.NumberFormatException: For input string: "CLAIMMEMO" B4X: Copy Dim signatureinputstring As String Dim su As StringUtils signatureinputstring = row.Get("CLAIMMEMO")
I have successfully received data from an API call and have gotten back a JSON response but I am getting an error when I try to assign one of the response entries to a string. The value of the entry I am trying to assign to a string is a varchar(max). I set a breakpoint and see that the key I am using is correct "CLAIMMEMO" and a value exists. The value from the JSON is an encoded base 64 byte array. Below is the error and the line of code which is giving me the error, there is only two lines every time the error message is displayed. I also get the same error when I try to log the Get("CLAIMMEMO") but I do not get an error when the log the row it self and see the truncated value for CLAIMMEMMO. Please assist. Error occurred on line: 139 (ClaimItemsProcessActivity) java.lang.NumberFormatException: For input string: "CLAIMMEMO" B4X: Copy Dim signatureinputstring As String Dim su As StringUtils signatureinputstring = row.Get("CLAIMMEMO")
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2021 #2 1. You are not posting enough code. 2. Post the full error message. Upvote 0
mc73 Well-Known Member Licensed User Longtime User Jun 3, 2021 #3 Makes sense if row is a list instead of a map. Should follow Erel's recommendations. Upvote 0