Cannot open Sales invoice journal

Hi there, I'm a development partner. One question about the latest SDK - 2015.1. I'm developing some interface and  need to open sales journal. I found a good example in SDK. So, I tried to follow it and it worked for a while. But out of blue, I got an error message:

An unhandled exception of type 'System.NullReferenceException' occurred in Sage_SA.Domain.Utility.dll
Additional information: Object reference not set to an instance of an object.


My original code is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using Simply.Domain.Utility;
using SimplySDK;
using SimplySDK.Support;
using SimplySDK.GeneralModule;
using SimplySDK.PayableModule;
using SimplySDK.ReceivableModule;
using SimplySDK.PayrollModule;
using SimplySDK.InventoryModule;
using SimplySDK.ProjectModule;
using System.Data;
using System.Threading;

Namespace.....

public class clSage
    {

           SalesJournal salJourn;

    }

 public void OpenSalJournal()
       {
            salJourn = SDKInstanceManager.Instance.OpenSalesJournal();
       }

So, when I enter this method OpenSalJournal() - I get this error message.


Please, let me know if you need more info. Thank you in advance!

Parents Reply
  • Sorry, Link might be down

    Cause

    The project module may not have a name.

    Resolution

    If Project (Job Site) module is shown in the home window:

    Go to Setup, User Preferences, View.

    Add checkmarks to the items referring to Project (you may have renamed it differently such as Job Site).

    Click OK.

    If you do not see Project/Job site on this page:

    Go to Setup, Settings, Company, Features

    Select My company uses Project/Job site

    If you do not see the name for My company uses Project/Job site,  click the empty checkbox which has no name beside it just above Banking.

    Click OK.

    Adding the project name:

    Go to Setup, Settings

    Click on the + which has no name beside to expand.

    Click on Names

    Enter text in the Project Title field.

    Click OK.

Children
No Data