Skip to main content

Posts

Job to import text file data to Table in MSD axapta

I want to share code to  import text file data to Table in axapta. Here is sample of one field taken in text file. #define.ioRead("r") Dialog dialog = new Dialog('File Upload'); Dialogfield dialogfield; DialogField dialogFileName; InventTable inventTable; ItemID itemID; FileIOPermission fileIOPermission; CommaTextIo io; container inLine; int lineNum; int i; ; dialogFileName = dialog.addField(typeid(FilenameSave)); dialog.run(); if(dialog.closedOk()) { fileIOPermission = new FileIOPermission(dialogFileName.value(), #ioRead); fileIOPermission.assert(); io = new CommaTextIo(dialogFileName.value(), #ioRead); if (io) { ttsbegin; while (io.status() == IO_Status::Ok) { inLine = io.read(); if (io.status() != IO_Status::Ok) {

Resolved - Workflow error during Order approval in MSD Axapta

Error Details:- Today I faced following error . Workflow instance:xxxxxxx was terminated for the following reason: No .NET Business Connector session could be found.. Due to this workflow work item not created after submission to workflow. Solution :To resolve this issue I did the following. 1.Compile application. 2.Resetting of IIS. 3. Reset Dotnet framework version on IIS if its changed by someone. 4. Recreate business connector configuration from Ax client configuration. This issue happen in Ax 2009 version and issue is now resolved .

Print Report in PDF in EP Site in MSD axapta 2009,4.0

If you are trying to print and display report in Enterprise portal in axapta then you need to add some code in class EPSenddocument on new method. case tablenum(CustPackingSlipJour): mailAddress = SalesTable::find(record.(fieldnum(CustPackingSlipJour,SalesId))).Email; if (record.(fieldnum(CustPackingSlipJour,InvoiceAccount))) StrVarialble1 = record.(fieldnum(CustPackingSlipJour,InvoiceAccount)); else StrVarialble1= record.(fieldnum(CustPackingSlipJour,OrderAccount)); documentTitle = fileName("SalesPKSLP"); reportName = reportstr(SalesPackingSlip); break; Here its example of sales packing slip report print . You need to add new case in switch statement.

Unable to back up the SQL Server Reporting Services encryption key for MSD 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.SetServ