Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Smartlist broken

Posted on by 915

I was modifying an existing working Smartlist. I added two calculated fields to this, saved and then closed Smartlist Builder.

I loaded up the Smartlist but no data was being returned. I thought there was maybe an issue with one of the calculated fields so I removed both of them and saved the Smartlist.

Running the Smartlist again still resulted in no results so I checked what was happening behind the scenes using SQL Profiler.

I was amazed to find that the SQL being ran was

select top 1000 '','','','','','','','','','','','','','','','','','','',''

The Smartlist looks fine, all the fields are showing, they are selected, etc One thing I do notice is one of the calculated columns is being shown in the smartlist output even though I have deleted it from the Smartlist.

It looks like the Smartlist has become corrupt or an older version is being "cached".

Any ideas how to fix this?

*This post is locked for comments

  • sparkymark75 Profile Picture
    sparkymark75 915 on at
    Re: Smartlist broken

    I gave up trying to fix it and deleted it with the aim of re-creating it. I deleted it via SmartList Builder. It no longer shows up in any lookups but is still shown when looking at SmartLists.

    Is there any way I can force it to vanish? Are SmartLists stored in the db?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Smartlist broken

    Try reviewing if the smartlist builder for some reason is missing a quote, and another would be that, I've seen (fixed) this type of errors, when data, includes a quotation in it.

    example Customer Short Name Brick's the quotation here may break any "select, update" or other statements that include text, just because of that extra quotation.

    Do a DEXSQL.Log and try to trace exactly which stored procedure is failing

  • sparkymark75 Profile Picture
    sparkymark75 915 on at
    Re: Smartlist broken

    I've tried to Refresh the Cache and that had no effect. Trying to perform a Refresh Lists on just this Smartlist results in an error;

    "GPS Error: 58

    SQL Error: 105 [Microsoft][SQL Native Client][SQL Server]Unclosed quotation mark after the character string 'IV_Stock_GL_VW_New]'.

    ODBC Error: 37000"

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Smartlist broken

    Hi,

    Try refreshing the cache of the Smartlist from Microsoft Dynamics GP>> Tools >> Smartlist Builder>> Maintenance >> Refresh Cache

    Close the smartlist before refreshing the cache and open it again

    Rubal,

    http://dynamicsgphelp.com/

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans