Quantcast
Channel: SCN: Message List - SAP Identity Management
Viewing all articles
Browse latest Browse all 5016

Re: need help in java script receiving a small error ; is missing

$
0
0

Hello experts,

 

Received runtime exception while executing the below script. based on the hint when i have looked at the line 27 i couldn't find the '.' in the script. kindly please help me

 

 

RuntimeException - org.mozilla.javascript.EvaluatorException: uSelect(select [priv].SNO,[priv].ATTRIBUTE,A.searchvaluefrom dbo.priv_notification_attribute [priv]left join (select MSKEY,AttrName,SearchValue from idmv_value_basic with (nolock) where MSKEY =216) A on priv.ATTRIBUTE = A.attrname) got exception com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '.'. HINT: Check line 27 in the script hei_l_getIdentityDateEmailReady

 

 

// Main function: hei_l_getIdentityDateEmailReady

 

function hei_l_getIdentityDateEmailReady(Par){

 

//mskey of the mx_person entry type would be passed as the parameter

   

 

    var script            = "hei_getIdentityDateEmailReady::";

    logLevel            = uGetConstant("glb.HEI_LOG_LEVEL");

    selectDelimiter        = "!!"; // used for delimiting the two column values returned by query

    queryDelimeter        = "|"; // user for delimiting the bulk records;   

   

    if(logLevel >= 2) {

        uErrMsg(1, script + "Par: [" + Par + "]");

 

    }

 

    // the below query returns the results in the format Attribute and mcValue, for attributes which are empty it returns Null values

   

    var query =  "select [priv].SNO,[priv].ATTRIBUTE,A.searchvalue" +

                 "from dbo.priv_notification_attribute [priv]" +

                 "left join (select MSKEY,AttrName,SearchValue from idmv_value_basic  with (nolock)                    where MSKEY =" + Par + ") A " +

                 "on priv.ATTRIBUTE = A.attrname"

                 "Order by [priv].SNO;";

   

 

    var retVal            = uSelect(query);

    var tempArr            = retVal.split(queryDelimeter); // To separate each row and save it in the array list

 

   

    retValue = "";

   

   

    for (i=0;i<tempArr.length;i++) // this is used for iterating the array

    {

        tempArr1 = tempArr[i].split(selectDelimiter); // here the columns returned by the above query are delimited using !!

       

        switch (tempArr1[0])

        {

            case 'MX_FS_SALUTATION_ID' :

            retValue  =  retValue  +  "Form-of-Address: "  +  tempArr1 [i] +  "\n";

            break;

 

            case 'MX_LASTNAME' :

            retValue  =  retValue  +  "Last name: "  +  tempArr1 [i] +  "\n";

            break;

 

        }

    }

   

    if(logLevel >= 2) {

        uErrMsg(1, script + "Par: [" + Par + "]; retvalue: [" + retValue + "]");

    }   

   

    return retValue;

}


Viewing all articles
Browse latest Browse all 5016

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>