Dynamics Axapta Coverage of Technical Tutorials Version 2009, 2012,Ax Rainier or version 7

Microsoft Dynamics Ax, Application Integration Framework, X++ programming, AX 2009 , 2012.Ax Rainier or version 7, Enterprise portal, SharePoint , BI Tools, OLAP, Performance Tuning, SSRS,SSIS,SSAS, Workflow.

Sunday, August 2, 2015

Reporting extension installation error -Unable to back up the SQL Server Reporting Services encryption key for ax 2012 R3

Solution on below error

Problem and Error

Reporting extension installation error for ax 2012 R3.
Verifying the credentials for the Microsoft Dynamics AX .NET Business Connector proxy.
Back up the SQL Server Reporting Services encryption key.
The reporting server is not set up correctly, and cannot be configured by Setup. For information about setting up a reporting server, see SQL Server Books Online.
An error occurred during setup of Reporting Services extensions.
Reason: Unable to back up the SQL Server Reporting Services encryption key. The operation failed with error code 2147944645.
System.InvalidOperationException: Unable to back up the SQL Server Reporting Services encryption key. The operation failed with error code 2147944645.
at Microsoft.Dynamics.Setup.IdentityUpdater.<SetServiceAccount>b__2(ErrorCodes code)
at Microsoft.Dynamics.Setup.IdentityUpdater.CheckHresult(Int32 hresult, Action`1 exceptionAction)
at Microsoft.Dynamics.Setup.IdentityUpdater.SetServiceAccount(SrsWmi rsconfigSetting, String userName, String password)
at Microsoft.Dynamics.Setup.IdentityUpdater.UpdateSRS(SrsWmi rsconfigSetting, String userName, SecureString password)
at Microsoft.Dynamics.Setup.ReportsServerInstaller.SetInstanceIdentity(String instanceName, String sharePointServiceApplicationSite, String username, SecureString password)
at Microsoft.Dynamics.Setup.Components.ReportingServicesExtensions.SetInstanceIdentity(String instanceName, String sharePointServiceApplicationSite, String userName, SecureString password)
at Microsoft.Dynamics.Setup.Components.ReportingServicesExtensions.RunReportingSetupManagerDeploy()
An error occurred during installation of the Microsoft Dynamics AX Reporting Services extensions. See the installation log for details.
Registering tracing manifest file "C:\Program

Solution:
1.Delete the .auc files and and registry key by command prompt.
2. The length of password while taking the backup of sql reporting encryption key should match with password policy length.if password policy length is 10 then the password while giving for encryption key length should be 10.otherwise it will throw the above error.
3. The account which we are using for reporting service extension password length should match with password policy length.
4. If still error exists then  uninstall the reporting extension and Sql reporting service  and re-install the same.
5.Try to reinstall reporting extension without configuration of reporting service it not success then configure one by one tab.
6. Take backup of encryption file at last and restore it.
7. Try to install reporting extension again if its installed with warning then try to deploy one report if its ok then you can proceed for other report deployment.

Wednesday, July 8, 2015

Get Product based on Item group in Ax 2012

To get Item details or  Product based on Item group in Ax 2012 you can try below code in job. In this job Test_InventItemGroup is query on which you need to include inventItemgroupItem and inventTable. I have pass the range TT as item group same way you can use in your customization.



   Query   query;
    QueryRun qr;
    QueryBuildDataSource qbds;
    QueryBuildRange queryBuildRange;
    InventItemGroupItem IntventTest,InventTest1;
    ;

    query = new Query(queryStr(Test_InventItemGroup));
    qbds = query.dataSourceTable(tableNum(InventItemGroupItem));
    queryBuildRange = qbds.addRange(fieldNum(InventItemGroupItem,ItemGroupId));
    queryBuildRange.value("TT");

    qr = new QueryRun(query);

    while(qr.next())
    {
        IntventTest= qr.get(tableNum(InventItemGroupItem));
        select ItemId from IntventTest1
            where IntventTest1.ItemGroupId == IntventTest.ItemGroupId;
        info(strFmt("%1",IntventTest.ItemId));
    }

Tuesday, July 7, 2015

Facing Error -failed to logon to microsoft dynamics ax in ssrs report for one user

I faced following error  on running ssrs report. Reports working for all user except one user.

Error Description from Event log viewer.

1.Error No.1
An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
   at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
   at System.Collections.Generic.SynchronizedCollection`1.Add(T item)



2.Error No.2
An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
   at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
   at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
   at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
An error has occurred during report processing. (rsProcessingAborted)

Microsoft.Reporting.WinForms.ReportServerException
   at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
   at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
   at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
   at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
   at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
   at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)

Query execution failed for dataset 'VendDS'. (rsErrorExecutingCommand)

Microsoft.Reporting.WinForms.ReportServerException


An exception occurred in the query metadata execution. The exception is Failed to log on to Microsoft Dynamics..

Microsoft.Reporting.WinForms.ReportServerException


Failed to log on to Microsoft Dynamics.

Workaround I tried

1. Delete Auc file for user and business connector proxy user at AOS.
2. Clear usage data for user.
3. Refresh Client configuration for Ax.
4. Recreate user at Ax.
5. Checking permission at Report manager for user.
6.Place configuration file at Reportserver folder.
7.Restart all services.

You can try if you are facing same issue.

Tuesday, June 23, 2015

Right way to Reverse the voucher in Ax 2012

There is Right way to Reverse the voucher in Ax 2012 you can try other option too.

Click General ledger > Journals > General journal.
Press CTRL+N to create a new voucher and click Lines to open the Journal voucher form.
Click Functions and then click Load ledger transactions.
Select the voucher type in the Voucher type field. The voucher type will provide the voucher number for the reversed voucher.

Note:The voucher type should be of the reverse type to the original voucher smile emoticon . For example, if the original voucher type is Payment, the reversal voucher type must be Receipt.
Select the Invert sign check box to activate the Reversal method field.
In the Reversal method field, select a reversal option.

Debit/credit – The original voucher is reversed by changing the debit entry to credit entry on the reversal voucher.

+/- – The original voucher is reversed by inverting the amount signs on the reversal voucher.
Click Select to open the Select form.
Enter the criteria to select the voucher to copy.
Click OK to open the Voucher transaction form.
Select the voucher to reverse, and click Select lines.

In the Load ledger transactions form, click OK to reverse the voucher. The reversal entry of the original voucher is displayed in the Journal voucher form and the reversed voucher will have an Open status in the Journal form.

Validate and post the voucher

Friday, June 5, 2015

Error "not enough rights to use table 'company data' (data area) " in Axapta

If you are facing following Error 

Error "not enough rights to use table 'company data' (data area) " in Axapta then you can try following steps.

Solution:

I tried to find security key for data area form but I am not able to get that because security key was not defined for that form.

After long troubleshooting I got solution that user profile issue. So I restored user in Ax to repair user profile from domain.

I hope you got the point what to do for this error.

Thursday, May 7, 2015

Table structure change for Purchase order in ax 2012

Table structure change for Purchase order in ax 2012

There are some Table structure change for Purchase order in ax 2012. In ax 2009 whatever purchase order made its directly insert to inventtrans table but in Ax 2012 there are some more table link.

Initially data stored in purchtable and purchline table then purchline data inventtransid stored in InventTransOriginPurchLine table , Intermediate table between inventtrans and purchline is InventTransorigin.

You can check relation between tables purchline ,InventTransOriginPurchLine,InventTransorigin and inventTrans .

Once you create purchase order and facing any issue in po posting then you need to check data in mentioned tables.

Relation mentioned in below tables
InventTransOriginPurchLine

InventTrans
Active Search Results Technology Blogs