Shadowchamber
Shadowchamber

Reputation: 103

How to disable cache in Business Connector Dynamics AX 2009

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.

Upvotes: 0

Views: 582

Answers (2)

Shadowchamber
Shadowchamber

Reputation: 103

I changed code to

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

I restarted AOS clear all caches and *.auc files

Now it works fine

Upvotes: 0

Alex Kwitny
Alex Kwitny

Reputation: 11544

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

Upvotes: 1

Related Questions