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)

Form loading takes longer time

(0) ShareShare
ReportReport
Posted on by

Hi All,

I am facing a issue with the Newly created form. Form is having so many display methods and using containers. 

When I try to open the form with System Administrator Role it gets loaded within 5 secs and when I try to load this from role other other System Administrator Role it takes almost 2 minutes to load.

I know the when there are display methods on the form performance gets low but it should be applicable to System Administrator role as well.

Any suggestions on this?

Regards,
Tarun Lekhwani 

*This post is locked for comments

I have the same question (0)
  • Rustem Galiamov Profile Picture
    8,072 on at
    RE: Form loading takes longer time

    Hi, Tarun!

    Try to use Trace Parser for resolve this issue because other role may use more ranges than System Administrator role.

  • André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Form loading takes longer time

    Hi Tarun,

    Are you caching the display methods on the form? What exact data is being retrieved? Verify if there are missing indexes or possibly also some security policies (XDS) involved. Do you have caching enabled on the tables used at the form data source or display methods? If so, what tables are used here? Using the Trace Parser, but also SQL performance monitoring and AXperf, you can try to find the culprit if there are no obvious reasons.

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at
    RE: Form loading takes longer time

    Hi,

    Clear cache of system:

    static void RefreshLocalCache(Args _args)
    {
    xSession::removeAOC();
    SysTreeNode::refreshAll();
    SysFlushDictionary::main(null);
    SysFlushAOD::main(null);
    SysFlushData::main(null);
    SysBPCheckAIFDataObject::flushCache(true);
    SysFlushReportServer::main(null);
    SysFlushSystemSequence::main(null);
    xSession::updateAOC();
    }


  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at
    RE: Form loading takes longer time

    Hi,

    Check this link:

    community.dynamics.com/.../87286

  • Community Member Profile Picture
    on at
    RE: Form loading takes longer time

    Used trace parser found one query on the display method which is taking longer execution time.

  • PA-22040759-0 Profile Picture
    6,194 on at
    RE: Form loading takes longer time

    You should make sure that the query part of this runs on the server tier on not directly on the client tier. So from the display method, call a server bound method to do the actual work.

  • Community Member Profile Picture
    on at
    RE: Form loading takes longer time

    Hi,

    Could you please explain this in detail.

    Thanks in advance

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