When applying includes on a string variable :
I’m getting the following error :


CustomerOrderHandling_Error_Log is well a string and i’m not able to apply the includes function.
any idea why? please?
When applying includes on a string variable :
I’m getting the following error :
CustomerOrderHandling_Error_Log is well a string and i’m not able to apply the includes function.
any idea why? please?
String.includes() is an ES6 function, which is not supported by the script task. Can you try .IndexOf() instead?
that did it for me
thank you
could we have more explanation on what is es6 and the compatibility behind it please?
ES6 stands for ECMAScript 6. It is a major revision of JavaScript language. ES6 added some new functionalities, including the String.includes() function. Currently, JavaScript in script task only supports functionalities before ES6.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.