Microsoft Dynamics AX Thoughts
Happy new year
I got a SQL error today when I tried to open the “BI project generation options” form in Dynamics AX. The error was like the following:
When walked through the code, I discovered that it tries to delete some entries from a table called: “UDM Roles (BIUdmRoles) throw a SQL statement but unfortunately that SQL statement is mistyped!
To correct the issue, go to AOT –> Classes –> SRSStatement –> deleteInvalidBIUdmRoles method and write the code between my comments as below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | //Amer Atiyah, http://blog.amer-ax.com/ public static void deleteInvalidBIUdmRoles() { BIUdmRoles udmRoles; UserGroupInfo userGroupInfo; str list = #emptyString; Connection connection; Statement statement; SqlStatementExecutePermission permission; str sqlStatement = @"DELETE FROM %1BIUDMROLES WHERE USERGROUPID IN (%2)"; ; while select udmRoles { select userGroupInfo where userGroupInfo.Id == udmRoles.UserGroupId; if (!userGroupInfo) { if (strlen(list) > 0) { list += #comma; } /*Comments Begin*/ //list += udmRoles.UserGroupId; list += "'" + udmRoles.UserGroupId + "'"; /*Comments End*/ } } |
3 Comments to “BI project generate options form error: Cannot execute the required database operation. The SQL database has issued an error.”
Post comment
Search the site
Dynamics AX 2012 Event
Recent Posts
- Enterprise Portal is Not Working on Dynamics AX 2012 Hyper-V Image
- Dynamics Academy – An Academic Project for Microsoft Dynamics in Saudi Arabia
- Microsoft Dynamics AX 2012 Event in Khubar
- Knowledge Bridge
- Columbus IT
- Fawzi Al-Nahdi and Partners Holding Group
- Dynamics AX 2009 Shows One Line Only in Its Grids
- Talal Abu-Ghazaleh
Tags
Archives
- December 2011 (2)
- November 2011 (3)
- July 2011 (2)
- June 2011 (4)
- May 2011 (3)
- April 2011 (4)
- March 2011 (12)
- February 2011 (2)
- January 2011 (3)
- December 2010 (1)
- November 2010 (1)
- October 2010 (5)
- August 2010 (1)
- July 2010 (3)
- June 2010 (4)
- May 2010 (5)
- April 2010 (1)
- March 2010 (9)
- February 2010 (4)
- January 2010 (4)
- December 2009 (11)
- September 2009 (1)
- August 2009 (1)
- July 2009 (2)
- September 2008 (1)
Random Testimonial
- ~ Mohammad A-Awami, Dynamics AX Specialist at WorleyParsons
"I worked with Amer for WorleyParsons. I found him very cooperative. He is able to help me in a lot of issues that related to ax. His ability to solve the problems is fascinating me. It is so fast and done on the best practice. His ability on business analysis and implantation are done on the best methods." - Read more testimonials »
What's the little bird saying?
- Get a weekly doze of technology with the Microsoft Mondays Webcasts http://t.co/wyQSlYH3. This month showcases SSDT, Azure and SharePoint. 2 weeks ago
- @fawad343 Why not :)... I spent my honeymoon there.. and I would love to get back to it again! :D 3 weeks ago
- @saadalahmed تعليق بسيط... لاشيئ في العالم يسمى اسرائيل... لعلك تعني المغتصبة فلسطين؟ 3 weeks ago
- More updates...
Posting tweet...
Powered by Twitter Tools

January 1, 2011 in 
January 3, 2011 at 3:11 am
Or you can add define.SingleQuote(“‘”) to classDeclaration and modifying line # 23 in ClassesSSRSStatementQuerydeleteInvalidBIUdmRoles with: list += #SingleQuote + udmRoles.UserGroupId + #SingleQuote;
January 3, 2011 at 11:07 am
Thanks Tommy
May 6, 2011 at 9:41 pm
Thanks Amer..