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)

TempDB table type causing intermittent SSRS report rendering error: Invalid object name

(0) ShareShare
ReportReport
Posted on by

I'm seeing some issues as customisations of a report have been promoted from the Development environment to the Test environment, as the custom table that underlies the report (InvoiceReportTmp) was inadvertently left as a Regular table during the promotion.  Initially this meant each instance of the report used the same data: quickly spotted, table type changed in Test, full compile of project & incremental CIL compile completed, with XPPIL folder cleared down before an AOS restart.  Test is now in a state whereby report generation intermittently throws the error "Invalid object name dbo.InvoiceReportTmp" when running an insert statement.

I think the simple solution is probably to take a new export of the customisations model from the Dev environment and load into Test, but the fact that the error is intermittent has me pretty confused.  Can anyone please advise whether there's something else I've missed in the attempt to rectify the problem?  Changing the table type from Regular to TempDB in Dev and running the report without a project & CIL compile gives me a reliable error, with the error reliably not occurring following the project & CIL compile, so I'm not able to reproduce the state of the Test environment. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: TempDB table type causing intermittent SSRS report rendering error: Invalid object name

    Seems the issue was down to cached CIL on one or more of the AOS servers in the Test environment: once a colleague pointed out that there was more than one AOS service to restart, a simple restart alone was enough (XPPIL appeared to be refreshed from the model store on restart).

    Redeploying the model or the project may not have done the job if I hadn't known to restart multiple servers...

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

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans