web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Caching issue

(0) ShareShare
ReportReport
Posted on by 1,450

We are having an issue with a user in our Test environment. Every time she performs certain tasks, one being confirming a Sales Quotation, she gets a "Map object not initialized" error.

If I delete the AUC/KTI files in her profile it will work again... once. Then she gets the error again on subsequent tries. No one else seems to be experiencing this, and she's able to perform the same action in other environments without issue.

L_5F00_C4F0.tmp.PNG

Any thoughts?

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Kevin DeVoe,

    In my R3 environment I have only 30 lines in showTaxValue and you have error in line number 73, that makes my think that you have customizations that lead to this error. Could you please share code of this method ?

  • KCDeVoe Profile Picture
    1,450 on at

    No in-house customizations on the table. There is an ISV layer. Avatax from Avalara. I'm not sure of the legality behind sharing their code, but it's calling globalCache.set() and passing a macro that matches the table name, 0, and the third value in a container.

    We've had this ISV for the last 4 years(over a year on the CU8 version) and haven't had anyone else experience this problem.

  • Community Member Profile Picture
    on at

    Have you tried deleting the usage data for that particular user ?

  • KCDeVoe Profile Picture
    1,450 on at

    Yes. Usage data cleared, form reset, cleared all the caches in the tools menu, and deleted the AUC files.

  • Mea_ Profile Picture
    60,284 on at

    Does this error happen during same session or user logs again into AX to get it?

  • KCDeVoe Profile Picture
    1,450 on at

    She does not have to log in again to get the error. I had her try to use a different client to see if that could be the cause and she still received the error (albeit, slightly different). Below is the original error she got when she first started experiencing it (and what she gets trying from a new client), then the screen shot above is what happens the first time she gets the error after clearing her AUC files. The changed error is interesting because it doesn't seem to have the class it's trying to call, which makes me think it's because the map is not initialized so the errors are actually the same just displaying themselves differently.

    New error:

    Error executing code:  object does not have method 'keyType'.
    
    Stack trace
    
    (C)\Classes\\keyType
    (C)\Classes\SysGlobalCache\set - line 29
    (S)\Data Dictionary\Tables\TmpTaxWorkTrans\Methods\showTaxValue - line 73
    (S)\Data Dictionary\Tables\TaxJournalTrans\Methods\initFromTaxWorkTrans - line 16
    (S)\Classes\Tax\saveInJournalTrans - line 57
    (S)\Classes\TaxSalesInvoice\updateAndPost - line 61
    (S)\Classes\SalesCalcTax\post - line 44
    (S)\Classes\SalesQuotationEditLinesForm_Sales_Confir\postTax - line 5
    (S)\Classes\SalesQuotationEditLinesForm_Sales_Confir\updateNow - line 84
    (S)\Classes\SalesQuotationEditLinesForm_Sales_Confir\insertJournal - line 8
    (S)\Classes\SalesQuotationEditLinesForm_Sales_Confir\createJournal - line 24
    (S)\Classes\SalesQuotationEditLinesForm\run - line 50
    (S)\Classes\SalesQuotationEditLinesForm_Sales_Confir\run - line 6
    (S)\Classes\SalesQuotationEditLinesForm\mainOnServer - line 77
    (C)\Classes\SalesQuotationEditLinesForm\main - line 29
    (C)\Classes\FormFunctionButtonControl\Clicked
    (C)\Forms\SalesQuotationTable\Designs\DesignList\ButtonUpdateConfirmation\Methods\Clicked - line 5


  • adam260 Profile Picture
    1,871 on at

    If this is only happening for one users it could be a couple things.

    1. Security related. The other person you tried this out on that didn't get the error do they have the same roles as the user getting the error?

    2. If the user has an instance of ax open on multiple pc's when you delete the cache (.auc/.kti) it could be loading the bad cached data from another machine onto the machine that was just cleared.

    Try the following:

    Clear usage data

    Close out of client

    Admin - login on different pc. look at online users and kill any instances of the account with the issue

    delete .auc/kti temp files on every machine the client uses ax from

    Try now

    3. The cache is made on the server side and is cached for the specific user on the server itself (I have seen this 2-3x over a 4 year period)

    If that doesn't work try the following:

    Server side:

    Stop all AOS instances

    Delete all files on the AOS server under C:\Program Files\Microsoft Dynamics AX\60\Server\<aos instance name>\bin\XppIL

    Connect to the model db via SQL Management studio

    Truncate the table SYSXPPASSEMBLY which lists all of the files found in step 2

    You can do this via the command: TRUNCATE TABLE SYSXPPASSEMBLY

    Client Side:

    delete auc/kti temp files (make sure to do this after the aos is stopped)

    Clear usage data

    Server side:

    Start 1 AOS instance

    Run Full CIL

    Start remaining AOS instances

    4. Try deleting the user account from AX and re-importing from AD. (last resort)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans