Error: Specified Cast isn't Valid


How can I fix the below issue? I'm unable to step into the add record function in the debug mode and couldn't understand the reason. As per my understanding, it could be an issue related to data type but how can I narrow it down? Please help...
Screenshot


Error Details:

StackMML_Create System.InvalidCastException: Specified cast is not valid.    at Object.s [as getException] (https://myapps-dev.basf.com/MML/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:2:10241)    at c.onSuccess (https://myapps-dev.basf.com/MML/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:3:6706)    at XMLHttpRequest. (https://myapps-dev.basf.com/MML/scripts/OutSystems.js?eq9LGmzdgJbMq6dbNoVMvQ:3:2122)


Solution

Never mind, the underlying issue stands resolved. Thanks!

Hi,


Are you able to give us some more information, like the oml, or parts of the code. 

It seems to be an exception that you want to cast e.g. a test to an integer, perhaps when calling the MML_Create action. Check the given variables and the parameters where you want to put in those variables. It could be that you've changes to variables. 

Hans

@Hans Dollen - Nope, I've checked it and it seems to be correct! :(


Solution

Never mind, the underlying issue stands resolved. Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.