Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP 2010 - Error accessing SQL data - Inquiry/Financial/Summary

Posted on by 1,325

When you open the Account Summary form in GP 2010( Build 11.00.2197 SP3 ) then click the print icon GP generates an invalid SQL statement and return an error dialog with the message 'Error accessing SQL data'

Is there any fix?

The illegal code fragments are:

  AND T43.PERIODID AND

and

  AND ( T43.PERIODID AND (

The statement generated is:

SELECT T518.AMNTFROM, T518.YEARID, T518.ACTINDX, T518.PERIODID, T518.CRDTAMNT, T518.DEBITAMT, T518.DOLLAR1, T3.ACTINDX, T3.ACTNUMBR_1, T3.ACTNUMBR_2, T3.ACTNUMBR_3, T3.ACTNUMBR_4, T3.ACTNUMBR_5, T3.ACTNUMBR_6, T3.ACTNUMBR_7, T3.ACTNUMBR_8, T3.ACTNUMBR_9, T3.ACTNUMBR_10, T3.ACTDESCR, T3.ACCTTYPE, T3.ACTALIAS, T3.ACCATNUM, T3.MNACSGMT, T43.DEX_ROW_ID, T43.FORIGIN, T43.YEAR1, T43.PERIODID, T43.SERIES, T43.ODESCTN, T43.PERNAME, T43.PERIODDT FROM ##1313115 T518 LEFT OUTER JOIN TB.dbo.GL00100 T3 ON ( T518.ACTINDX = T3.ACTINDX AND T3.ACTINDX = 1243 ) LEFT OUTER JOIN TB.dbo.SY40100 T43 ON ( T518.PERIODID = T43.PERIODID AND T43.YEAR1 = 2014 AND T43.PERIODID AND T43.SERIES = 0 ) WHERE ( T3.ACTINDX = 1243 ) AND ( T518.YEARID = '2014' ) AND ( T43.YEAR1 = 2014 OR T43.YEAR1 IS NULL) AND ( T43.PERIODID AND ( T43.SERIES = 0 OR T43.SERIES IS NULL) ORDER BY 1, 2, 3, 4, 27, 26, 24

*This post is locked for comments

  • Suggested answer
    Tom Mathew Profile Picture
    Tom Mathew 1,750 on at
    RE: GP 2010 - Error accessing SQL data - Inquiry/Financial/Summary

    Itz happening with the period setup table if I'm not wrong...just check for the period setups comparing the date parameters selected for generating the report.

  • Verified answer
    soma Profile Picture
    soma 24,406 on at
    RE: GP 2010 - Error accessing SQL data - Inquiry/Financial/Summary

    Is this modified Report? If yes, change it to standard and try again. Also have a look on the below links.

    support.microsoft.com/.../857827

    support.microsoft.com/.../863262

    Hope this helps!!!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans