survey error

could s.one help me with this error msg i get in sm.log file

i have s cheduled a survey and it was worling fine tell i porge the data and iport a new data aging including counter and number now the survey seems to have error and i can't figure out the issue

  2628( 2960) 11/22/2015 18:14:17 JS I SMIS [INFO][Survey_TaskProducer]: producing tasks for survey: S00010
2628( 2960) 11/22/2015 18:14:17 RTE I -Memory : S(4119928) O(1124116) MAX(5244044) - MALLOC's Total(304481)
2628( 2960) 11/22/2015 18:14:17 RAD I Survey Integration record updated.
2628( 2960) 11/22/2015 18:14:17 JS I SMIS [INFO][Survey_TaskProducer]: Update last processing time successfully.
2628( 2960) 11/22/2015 18:14:17 JS E SCFile.setSortOrder() expects two ARRAY parameters, for sort fields and sort sequences, and the array lengths must be equal.
2628( 2960) 11/22/2015 18:14:18 JS I SMIS [INFO][Survey_TaskProducer]: 2 tasks will be pushed to task queue.

Tags:

  • In the error message it lists Survey_TaskProducer.  In the ScriptLibrary there is a record by the same name.  Within that there is code that does use the setOrderBy function:

    if (surveyDefinition.predefinedFilterId != null) {

    var inbox = new SCFile("inbox", SCFILE_READONLY);

    var result = inbox.doSelect("inbox.id=" surveyDefinition.predefinedFilterId);

    if (result == RC_SUCCESS) {

    var sorting = lib.Survey_Utilities.getSortFields(inbox.sortBy);

    entry.setOrderBy(sorting[0], sorting[1]);

    }

    It gets the sort fields from the associated inbox ( inbox.sortBy ).   It appears that if there are no sort fields you can get this error message.  Try adding a sort field to the inbox record.

    ( Note an open defect exists stating that the error message is incorrect, JS E SCFile.setSortOrder(), the correct function name in the message should be 'setOrderBy', this is just a typo in the message text )

  • Link to related Defect:

    http://support.openview.hp.com/selfsolve/document/LID/QCCR1E129807

    Message - "SCFile.setSortOrder() expects two ARRAY parameters, for sort fields and sort sequences, and the array lengths must be equal" - refers to the wrong function name