This topic contains 3 replies, has 0 voices, and was last updated by Olivier Gagnon NC 7 years, 11 months ago.

  • Author
    Posts
  • #1450

    girieshg

    I’m facing a weird problem. My CSV Imports do not always trigger the deployed user event scripts. Even a simple script like the one below sometimes works and sometimes doesn’t. The CSV Import preferences are correctly set (Run server suitescript and trigger workflows is checked).

    Anyone else experienced this?

    Code:
    /**
    * @NApiVersion 2.x
    * @NScriptType UserEventScript
    * @NModuleScope SameAccount
    */
    define([],

    function() {

    function beforeLoad(scriptContext) {
    log.debug(‘BeforeLoad’, ‘triggered’);

    }

    function beforeSubmit(scriptContext) {
    log.debug(‘BEforeSubmit’, ‘triggered’);
    }

    function afterSubmit(scriptContext) {
    log.debug(‘AfterSubmit’, ‘triggered’);
    }

    return {
    beforeLoad: beforeLoad,
    beforeSubmit: beforeSubmit,
    afterSubmit: afterSubmit
    };

    });
    This is a cached copy. Click here to see the original post.

  • #1451

    Olivier Gagnon NC

    Well there is now the per-Import “trigger scripts” preference, so did you check if that was always ticked in? Otherwise, no, I haven’t had the problem of CSV misbehaving like that.

  • #1452

    girieshg

    Yes, that preference is checked on the individual saved import.

  • #1453

    Olivier Gagnon NC

    I’d get NS Support involved. Should be an adequately patience-testing experience, but there doesn’t seem to really be anything else obviously wrong.

You must be logged in to reply to this topic.