Skip to main content
Answer

sql view not refreshed data

  • November 24, 2025
  • 2 replies
  • 40 views

Forum|alt.badge.img+1

I have sql view for process screen. When I refresh grid. Data not updated. When I refresh page data is updated. How to solve this ?

Best answer by jinin

Hi ​@bihalivan15 ,

It appears to be a cache issue. Have you tried clearing the cache and checking if the issue is resolved?

Sample:

public PXSelect<DACName> Records;

protected virtual IEnumerable records()
{
    // Clear previous cached data
    Records.Cache.Clear();
    Records.Cache.ClearQueryCache();
   

    // Re-run the BQL which points to SQL view
    return PXSelect<DACName>.Select(graph);
}

2 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • November 24, 2025

Hi ​@bihalivan15 ,

It appears to be a cache issue. Have you tried clearing the cache and checking if the issue is resolved?

Sample:

public PXSelect<DACName> Records;

protected virtual IEnumerable records()
{
    // Clear previous cached data
    Records.Cache.Clear();
    Records.Cache.ClearQueryCache();
   

    // Re-run the BQL which points to SQL view
    return PXSelect<DACName>.Select(graph);
}


snikomarov36
Acumatica Employee
Forum|alt.badge.img
  • Acumatica Employee
  • November 24, 2025

Hi ​@bihalivan15 .
It’s not recommended to map DACs to SQL views in Acumatica precisely because of such issues with refresh of the data. You should use Projection DACs instead. You can check out my post on projection DACs:
 

Or you can find similar info on the Help Portal:
https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=e8f097ea-69a0-496d-84d1-807f21b072b4