Thursday, May 8, 2014

Variable Symmetry has not been declared Compilation error in Ax 2012

Hello everyone,

I would like to share an information regarding Symmetry error in Microsoft Dynamics Ax 2012.

Scenario:
After compiling the whole application if you get errors on tables and classes related with Standard payroll.
Then you need to follow below procedure to solve the compilation errors.

Solution:
Check whether the ste-net.dll related with payroll is available in both client and server bin.

Then in the AOT --> References node  right click and add a new reference.
click on browse and select the ste-net.dll and press ok.
Compile the classes where you are facing errors on symmetry.

It must work fine.

Happy Daxing..!!!


 

13 comments:

  1. Thanks!!!!!! You save me a lot of time!!!

    ReplyDelete
  2. Thanks!!!!!! You save me a lot of time!!!

    ReplyDelete
  3. hi,

    I tried the above, but its not working for me..

    ReplyDelete
    Replies
    1. Hi Sathish,

      Have you compiled the objects where you have got these errors.
      Sometimes AOS need to be restarted.

      On AX 2012 R3 CU8,Microsoft have added few more payroll objects which require other references.
      So,add the other references and compile the project.

      If you still face the issue,provide the compilation errors list,so that I can analyze.

      Regards,
      Prakash.

      Delete
    2. Hi prakash,

      Still im facing error after i restarted the AOS many times.

      What are the other references u told above??

      this is the error list:

      Description Path Line Method/Property name Diagnostic ID
      Syntax error. \Classes\PayrollTaxEngineUtil\checkInTaxEngine 7 checkInTaxEngine Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\checkOutTaxEngine 7 checkOutTaxEngine Err:9999
      Variable Symmetry has not been declared. \Classes\PayrollTaxEngineUtil\getGNISLocations 40 getGNISLocations Err:9
      Variable Symmetry has not been declared. \Classes\PayrollTaxEngineUtil\getMunicipalities 39 getMunicipalities Err:9
      Syntax error. \Classes\PayrollTaxEngineUtil\getPoliticalSubDivision 31 getPoliticalSubDivision Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\getPoliticalSubDivisionByTaxCode 20 getPoliticalSubDivisionByTaxCode Err:9999
      Variable Symmetry has not been declared. \Classes\PayrollTaxEngineUtil\getSchoolDistricts 41 getSchoolDistricts Err:9
      Variable Symmetry has not been declared. \Classes\PayrollTaxEngineUtil\getTaxEngineLocationCodeList 38 getTaxEngineLocationCodeList Err:9
      Syntax error. \Classes\PayrollTaxEngineUtil\getTaxEngineVersion 10 getTaxEngineVersion Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\getTaxTableVersion 10 getTaxTableVersion Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\money2Real 11 money2Real Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\real2Hours 11 real2Hours Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\real2Money 11 real2Money Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\real2Rate 11 real2Rate Err:9999
      Syntax error. \Classes\PayrollTaxEngineUtil\taxCalculation2TaxCode 11 taxCalculation2TaxCode Err:9999

      Delete
    3. Hi Sathish,

      Can you post the error generated in eventviewer ?
      There you can find the assembly name which is missing.

      You need to search for the assembly name in google and try to update the client and server bin folders.

      Regards,
      Prakash.

      Delete
    4. Use the below link to download the .dll and add it to client and server bin folders.
      Follow the blog post and hope it fixes your issue.

      https://app.box.com/s/n2y6uaus08r85jfvj11p8511yd2im38n

      Regards,
      Prakash.

      Delete
    5. The description for Event ID 110 from source Microsoft Dynamics AX cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

      If the event originated on another computer, the display information had to be saved with the event.
      The following information was included with the event:

      Microsoft Dynamics AX Business Connector Session 3.


      Failed loading assembly ste-net, Version=1.0.1.74, Culture=neutral, PublicKeyToken=5542884f620dbde5

      Microsoft Dynamics AX Business Connector Session 3.


      Failed loading assembly Microsoft.Dynamics.Retail.StoreConnect.TransAutomClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64

      Microsoft Dynamics AX Business Connector Session 3.


      Failed loading assembly RetailControls, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null

      Delete
  4. I have tried with new downloaded ste-net.dll But still error is coming.
    Please help me...

    ReplyDelete
  5. I am not sure about the errors and its resolution.

    It is just an experiment :
    You can follow three methods for resolution:

    Method 1:
    Take backup of server and client bin folders.

    Try to copy the dlls(ste-net & ste) of server/bin folder and copy it in client/bin folder.
    Add the reference in AX,restart AOS and compile the objects where you have faced error.

    Method 2:
    Copy the client folder from other environments where there are no compilation errors on Payroll objects.

    Method 3:(Last method not suggested)
    Try to install the client (AX 2012 R3 RTM setup) once again and install CU8 Payroll components.

    Regards,
    Prakash.

    ReplyDelete
  6. HI Prakash,

    Method 1 : I alredy tried the Method 1.
    Method 2 : I dont have Other environments which is working.
    Method 3 : How to install CU8 payroll components alone.

    ReplyDelete
  7. @Darshana or Sathish : Have you fixed this issue ??

    ReplyDelete
  8. Hello All,
    In my environment we are using AX2012R3CU9. My issue resolved after following below steps.

    1. Un-installed Ax client by using ax setup
    2. Deleted *.AUC and *.KTI files
    3. Restarted AX server
    4. Installed AX client and Compiled Payroll related classes. This time i haven't faced any issue.

    Best Regards.,
    Ravi Theja Madisetty
    http://techguns.wordpress.com

    ReplyDelete