Forum Discussion

dortego's avatar
dortego
Ideator III
7 years ago

Cmd Batch Loader: 'Not a single item' error

I'm trying to load some data using the cmd batch loader tool for a number of different ItemTypes. When the script gets to the last ItemType, an error occurs in the cmd window that states "Not a single item" for each row of data to be imported. I ran into this issue when creating an onBeforeAdd server method for this ItemType. My workaround was to enclose the method's logic in a for-loop to iterate through each item individually. So there's no problem with adding these items manually through the Aras interface, but the batch loader still complains. Is there a fix I can make to the method itself? Or is there a way to change my batch script to get around this problem? 

3 Replies

  • By keeping ServerEvents='0' in your batch script will prevent running the server events while execution.

    • dortego's avatar
      dortego
      Ideator III

      Thank you for your response. I tried setting serverEvents='0' in AML template file for the ItemType, but it made no difference. Do you mean set the serverEvents flag inside the batch script itself (.bat file, where the BatchLoaderCmd command is called)? I'm not sure how that would be done.

      • Gopikrishnan's avatar
        Gopikrishnan
        Accelerator II

        Hi,

        Can you please confirm what is the onbeforeAdd event is doing?. Also please validate the input with the list values if you have any.