How to disable cache in Business Connector Dynamics AX 2009

558 views Asked by At

When I try to get data from PriceDiscTable I get old data. In this case I need to reconnect or disable cache in table properties (CacheLookup).

How can I get correct data without disabling CacheLookup property?

I tried

priceDiscTable.disableCache(true);

but problem still exist.

2

There are 2 answers

0
Alex Kwitny On BEST ANSWER

Try priceDiscTable.reread(). This will query the database to reread the record.

0
Shadowchamber On

I changed code to

priceDiscTable.disableCache(true);
priceDiscTable.reread();

I restarted AOS clear all caches and *.auc files

Now it works fine