web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Object reference not set to an instance of an object.

(0) ShareShare
ReportReport
Posted on by

Hi,

I created General ledger journal and dropped into lines, then i click Functions - Import account statement (transactions) and choose method of import (i can see only FINNISH BASIC), choose file and get error from topic name:

_21043D0438043C043E043A04_-_4D043A04400430043D043004_-2017_2D00_06_2D00_26-_3204_-12.37.26.png

Object reference not set to an instance of an object.

- Whats the source of the error? How to fix it?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Object reference not set to an instance of an object.

    Hi,

    Have you/your colleagues run a full CIL compilation?

    Best regards,

    Ludwig

  • Maxim_msk Profile Picture
    on at
    RE: Object reference not set to an instance of an object.

    Hi Ludwig, i run build after uploading package, it was couple weeks ago.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Object reference not set to an instance of an object.

    Hi Maxim_msk,

    I just noticed that you try to import a bank statement in a GL journal. Have you setup the bank statement import methods for general journal?

    Best regards,

    Ludwig

  • Maxim_msk Profile Picture
    on at
    RE: Object reference not set to an instance of an object.

    Sure, Ludwig

    i setup one method and choose it. Method based on FINNISH BASIC - only available option for now.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Object reference not set to an instance of an object.

    Hi Maxim_msk,

    This GL journal-based bank statement Import does not work for each and every country and required in the previous versions some modifications. I am not sure for which country your AX system is setup but it might be the case that some country-specific features need to be extended/modified to make it properly work in your environment. Your best chance is to talk to a developer who can provide you more details of what might be required to be done to make this feature working for you.

    Best regards,

    Ludwig

  • Maxim_msk Profile Picture
    on at
    RE: Object reference not set to an instance of an object.

    Hi Ludwig,

    i work in demo data in USSI company, suppose it should have at list several applicable formats.

    Or maybe you may advise company there i can see more formats?

    Unfortunately i don't have developer, so no-one can help me %)

  • Suggested answer
    Nagendra Varma K Profile Picture
    on at
    RE: Object reference not set to an instance of an object.

    HI Maxim_msk,

    For now the Demo Format is for (FIN) Localization legal entities whose primary address is in Finland. In Previous version AX 2012 R3 we need to set import format and also in-bound port. May be you can try setting up entity with FIN localization and Define definition group as per format.

    refer below

    402267.Capture.PNG

    Refer here it may help you.

    community.dynamics.com/.../dynamics-365-for-operations-import-bank-statement-using-bai2-format

    Thanks

    Nagendra Varma K

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Object reference not set to an instance of an object.

    Hi Maxim_msk,

    Please have a look at Nagendra Varma K's screenprint.

    The functionality you want to work with has only a limited number of predefined import formats available and you need a development to get your country-specific format in this list.

    Making those country-specific formats available resp. adjusting the available ones requires the help of a developer. This is something you can't do as a 'end-user' in the AX client.

    Best regards,

    Ludwig

  • Nandor Szin Profile Picture
    on at
    RE: Object reference not set to an instance of an object.

    Hi,

    This error causes a bug in the LedgerInAccountStatementFI_BASIC class. When the file upload is successfully finished then (in the base class) the uploadCompleted method calls the setDialogOkButtonEnabled method, which tries to be enable the dialog's OK button, but the LedgerInAccountStatementFI_BASIC class cannot access the baseDialog variable in the base class, so cannot assign the created dialog baseDialog variable. Add the following code snippet to the LedgerInAccountStatementFI_BASIC class and create a class level DialogRunBase variable which holds the newly created dialog:

    protected void setDialogOkButtonEnabled(DialogRunbase _dialog, boolean _isEnabled)
    {
        super(dialog, _isEnabled); //dialog != _dialog
    }

    Regards,
    Nandor

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans