Skip to main content

Posts

code to Send Image in Email using axapta 2012

This is a code snippets to send email with image. Mostly when you send email then you may require to attach image header as letter pad image in email so in that case this code is helpful for you.

Workflow Error in Ax 2012 feature pack version

I got following error after that Workflow stopped working . Workflow Instance ID: 03232 mscorlib The message with Action 'http://tempuri.org/SysWorkflowConfigurationService/getConfiguration' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None). Server stack trace:    at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)    at System.ServiceModel.Channels.Servic...

Dynamics Ax Rainier in 2015

Upcoming features of dynamics AX Rainier is As below

Project management and accounting in Ax 2012

Error Removal of suspension of recId allocation for table VendInvoiceInfoTable has failed in axapta 2012

Problem: Error executing code: The field with ID '0' does not exist in table 'SalesPurchJournalLineExtension_IN'. Removal of suspension of recId allocation for table VendInvoiceInfoTable has failed. Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.    at Dynamics.Ax.Application.SysRecIdSequence.Removerecidsuspension(Int32 _tableId) in SysRecIdSequence.removeRecIdSuspension.xpp:line 23    at Dynamics.Ax.Application.formletterParmData.Removerecidsuspension() in formletterParmData.removeRecIdSuspension.xpp:line 15    at Dynamics.Ax.Application.formletterParmData.Catchall() in formletterParmData.catchAll.xpp:line 9    at Dynamics.Ax.Application.formletterParmData.Createdata(Boolean _append, Boolean ) in formletterParmData.createData.xpp:line 63    at Dynamics.Ax.Application.formletterParmData.Createdata(Boolean _append)    at Dynamics.Ax.Application.PurchFo...

Table level best practices in Ax 2012

--> Set Title fields --> Create primary index --> Create basic methods like find, findRecId, exist. --> Add method documentation in every method. --> Method name should be camel casing --> Add BP deviation comment on every display or edit method. --> Create groups containing relevant fields. -->Run the BP check on your table (right click on table -> Add-ins -> Check Best Practices) and it will show the most crucial BP deviations you might have there. --> Use pascal casing for field names and table name.

steps to debug standard Forms and class in Microsoft dynamics ax 2012

It depends on your requirement. If its list page form then you can debug it in its interaction class. If its normal form then follow these points. 1. Enable debugging in server configuration 2. Press F9 on the line of code you want to debug 3. You can also write break point keyword on the line of code you want to debug. 4. Restart the form 5. To debug line by line you can press F10 if you want to debug sub method then you can press F11.