AIF: How to add extra non database field into XSD.

The idea is to add new extra field into schema definition and into whole AIF process but do not have this field part of table or query. It could be simple “counted” field. For now, we will start with new table and new query. When you generate document services by wizard, make sure that Generate…

0

Microsoft Dynamics AX 2012 Workflow error: “Failed to find workflow version”

Some time ago we run into strange problem when running Vendor add justification workflow (VendRequestNVJTemplate). After creating Vendor Request in Employee Service we can see it in Procurement and sourcing > Common > Vendor Requests > Vendor Requests Pending Approval where the request gets approved. The problem is that after approving the Vendor Request we…

0

Synchronizing AX to Outlook Cannot edit a record in Activities (smmActivites) An update conflict occured

We recently came across a problem with Outlook synchronization with the AX2009 client. The problem was that sometimes when a user synchronized it failed with the error message: “Cannot edit a record in Activities (smmActivites). An update conflict occured due to another user process deleting the record or changing one or more field in the…

0

How to reduce the file size of PDF files generated by AX 2009

PDF files generated from Microsoft Dynamics AX can get quite large in size. In this thread I share some hints on how you can potentially reduce the size of the generated PDF file. ImagesDuring PDF generation each image will be temporarily converted to a 24bit BMP file and afterwards stored as a JPG. So it does not…

0

Setting marked Alerts to Read (or Unread) the “Unread” column doesn’t get updated properly

Recently we recieved an issue where a user managing his Alerts in AX 2012 found, setting a selection of Alerts to “Read” failed to update the UI of the Alert notifications screen properly. How found:The user clicked the Alert Bell on the AX Client’s status bar to open Alert Notification form. In the form there where…

0

Record level security is not enforced in code or is it?

I recently came across an unusual behaviour of record level security, that I don’t think has been documented before, so I thought I would share it with you. The situation here is that there is an employee with emplId=”RLS”, and there is a user group configured with record level security which will allow members to…

0

Using skipDeleteActions with doDelete still calls the delete actions

Recently we came across an issue where running code like this:     Unit unit;    ;    select firstonly forupdate unit where unit.UnitId == ‘cl’;    unit.skipDeleteActions(true);    unit.doDelete(); This results in the delete still being called on Tables\UnitConvert (via the cascaded delete action on Tables\Unit). This is because SkipDeleteActions() only works when using a set based operation (like…

1

How to: Add a new operation to AIF Document Service.

There are couple of document services in AX without all standard operation out of the box. A lot of time there is a need to get a sample of create operation. Usually in that situations we get a read (or find) operation to read data and then use this response as a basic template for…

0

How batch processing works under the hood AX2009

In this article I am going to explain how batch processing in AX2009 works, I don’t mean how to set up a batch group or any of that kind of thing that you find in the manual, what I mean is what each AOS is doing in the background to decide how and when to pick up…

0

Multiline Fields in AX Document Management

It’s relatively easy to create a nice looking Word document out of a Sales Order in Dynamics AX by using the built in Document Management feature. The problem starts when trying to create a document with multiple order lines where some of the items have a multi line description. In this case the formatting of…

0