Union view basics and common issues in AX 2012Continue reading
Views in Microsoft Dynamics AX 2012 are basically virtual tables which contents are defined by one or more sources of data.
In Dynamics AX 2012 views enables you to use the power of SQL Server more efficiently than simply creating complex queries from the code.
Let’s imagine a situation where you want to combine data from multiple datasources. To achieve that you can use union views.
First you must create Union Query. When you do that you must remember about few things:
- Number of columns and their type must be the same on each datasource,
- There is no conversion between types (neither explicit nor implicit),
- You cannot use union query to update records,
- Field names that union query uses are taken from the first datasource.
For each datasource except the first one you will have the possibility to select UnionType, which is basically asking you if you want to have duplicates (UnionAll) or not (Union).
For the sake of demonstration I created two tables with one field of type string and one of type integer (which I will not use) and then created following query of QueryTypeUnion.
Next step I created a view and drag and dropped Query1 into it.
Next step is to select wanted fields from datasrouce Table1_1 into the (View2 -> Fields), if you for some reasons forget to do this you will have the following error:
“You are not authorised to access table ‘View2’ (View2). Contact your system administrator.”
Another issue that you might stumble across is when there is a mismatch between UnionType on datasource of the view and on the union query used or there are different QueryTypes on different datasources.
“Invalid column name 'UnionAllBranchId'.”
If everything was created fine and there are no errors, you can use your view in the system just like a regular table.
Implementing a new ERP system in an organisation is always a challenge. Users question whether they will be able to cope with analysing the data flow in an integrated system without external support. The accountant wonders whether all the set-up accounts are correct. The chief technologist cannot get rid of troublesome thoughts about whether the routings and boms are set up optimally. This is why it is so important to have a reliable service team to help the company control the system in the post-implementation stage. In this article, we take a look at the issues surrounding the implementation of an ERP system and the benefits of maintaining proactive service support.
328.77 million terabytes of data are generated every day - this is the estimate for the first quarter of 2023 (1). These are massive amounts of data on a global scale. On a smaller scale, such as an enterprise, it's difficult to estimate because it depends on the organisation in question, but one thing is certain - collecting, processing and analysing this data is the key to business success today. Why is the Data Lake service so important for data analysis and reporting in Microsoft Dynamics 365 Finance and Operations? How can you tame the data by integrating Microsoft Power BI analytics with Data Lake? We have drawn up some tips.
The retail industry is still dealing with the effects of the pandemic that lasted almost three years. In addition to this, further global events are causing disruption to the supply chain or financial stability of many retailers globally. As the industry confronts new challenges shaped by economic and geopolitical factors, it also faces trends influenced by changing customer expectations and needs. Here are 5 developments and trends to watch.
An interactive, AI-powered support for sales, customer service, marketing, and supply chain - Microsoft Dynamics 365 Copilot leverages generative AI and natural language processing technology to perform simple, yet time-consuming daily tasks that workload employees but can be automated.