Getting cannot cast a string to map error need help

I am using my api’s to first get the details of student and if status is 200 than update the details which I am sending in variables my payload - {
“variables”: {
“userId”: {
“value”: “sxuzEfbheZBTpLejwaCi9”,
“type”: “String”
},
“sr_id”: {
“value”: “66d58e83c27213adb47bf8d1”,
“type”: “String”
},
“token”: {
“value”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhVVNzVzhHSTAzZHlRMEFJRlZuOTIiLCJkX3R5cGUiOiJ3ZWIiLCJkaWQiOiJhZGE2OTk5YS1iNGNmLTQxNTktOGM5MS00NTRiMjBjYmRmYjAiLCJlX2lkIjoiOTU2Njk5Nzg2IiwiZXhwIjoxNzI5NzQ5MDc3LCJpYXQiOiIyMDI0LTEwLTIzVDA1OjUxOjE3LjQwNDYyOTYxNloiLCJpc3MiOiJhdXRoZW50aWNhdGlvbi5hbGxlbi1zYW5kYm94IiwiaXN1IjoiIiwicHQiOiJJTlRFUk5BTF9VU0VSIiwic2lkIjoiYjNhMmRmOTktMDI0Ny00N2E3LWEzMWItYzY3OGIxOGI4NDkzIiwidGlkIjoiYVVTc1c4R0kwM2R5UTBBSUZWbjkyIiwidHlwZSI6ImFjY2VzcyIsInVpZCI6IjZXZFh1c1ZTZGNDTVBwV2Z3SHMzeiJ9.OGGLjlOIKSt32zN9tNFJJdqWjLwH0A8RclZjCAy9__s”,
“type”: “String”
},
“requestDetails”: {
“value”: “{"email": "mohit.solanki@profit.in", "phoneNumber": "9123233943", "full_name": "Rony Singh Solanki"}”,
“type”: “String”
}
}
}
Error I am getting -{
“type”: “ClassCastException”,
“message”: “class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader ‘bootstrap’)”,
“code”: null
}


Final.bpmn (9.9 KB)

Hi @MohitSinghSolanki-A

Could you please share a screen shot of the variables view from the cockpit app?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.