Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Cannot convert value [true] of type class java.lang.String to Object Array for field

avatar
Expert Contributor

Hello Team,

I have JSON like following

[
{
"INTEGRATION_ID": "1",
"ISSUE_STATUS_CAT": "Done",
"SPRINT_LIST": [
"24-w1-2",
"24-w1-3",
"24-w1-4"
]
},{

"INTEGRATION_ID": "2",
"ISSUE_STATUS_CAT": "Done",
"SPRINT_LIST": "24-w1-2"

}
]

My requirement is to check whether SPRINT_LIST is array or not. so I am using UpdateRecord processor with following formula 

${field.value:startsWith(" [ ")}

I was getting the correct output earlier, where it returned 'True' when the value was a list and 'False' when it was null or not a list. However, after making some changes and then reverting back to the original settings, I started encountering issues. "Cannot convert value [true] of type class java.lang.String to Object Array for field error"

Shakib M.
1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
2 REPLIES 2

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

Thank you @SAMSAL , I tried using JOLT, but when it didn't work, I resorted to using the UpdateRecords process. However, this is ultimately what I need.

Shakib M.