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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Microsoft Dynamics AX Business Connector Session

(0) ShareShare
ReportReport
Posted on by

Hey guys,

currently I am facing a problem with SQL Server Reporting Service, Microsoft Dynamics AX 2009 and the .NET Business Connector 5:

When I am starting to print a report (report will have round about 520 pages), the SSRS fetches all data and then in a subreport I am receiving in the generated PDF "subreport - error: Subreport could not be shown".  But only at the last pages (last 6 pages). All pages before are looking perfertly fine!

 

Digging into it, I created some Debug Traces (System.Diagnostics.Trace) to locate the problem. But so far, I am not receiving some Error-Traces. Nervermind, I can see in the Windows-Event-Log 3 Errors:

Error 1:

Microsoft Dynamics AX Business Connector Session 8.

Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_ExecuteStmt(tagVARIANT* , Int32 )
bei Microsoft.Dynamics.BusinessConnectorNet.Axapta.ExecuteStmt(String statement, AxaptaRecord[] paramList)

EventID: 110

Error 2:

Microsoft Dynamics AX Business Connector Session 8.

Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_DeleteRecord(UInt64 )
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.ReleaseAxaptaRecord(Boolean disposing)

Error 3:

Microsoft Dynamics AX Business Connector Session 8.

Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
bei AxCore_DeleteRecord(UInt64 )
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.ReleaseAxaptaRecord(Boolean disposing)
bei Microsoft.Dynamics.BusinessConnectorNet.AxaptaRecord.Dispose()
bei Microsoft.Dynamics.BusinessConnectorNet.Axapta.Logoff()

So, how am I trying to access the SessionManager? 

// get the current Session
AxaptaWrapper ax = SessionManager.GetSession();



// this is the SessionManager implementation
namespace Microsoft.Dynamics.Framework.Reports
{
    public abstract class SessionManager
    {
        protected SessionManager();

        protected abstract AxaptaWrapper CreateSession();
        public static AxaptaWrapper GetSession();
        protected virtual void OnEndRequest();
    }
}

How can I get rid of this problem? Should I try to programm more defensive? (try-catch around the GetSession?) Any other ideas? 

Thank you so much in advance!

Regads,

Peter Detzner

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Microsoft.Dynamics.Framework.Reports.dll is used in Version 5.0.0.0, so is there maybe somewhere a "newer" Version sth. like Version 5.x.y.z?!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans