Microsoft Dynamics AX Blog
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.amerax.net/ 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*/ } } |
Search the site
Dynamics AX 2012 Event
Recent Posts
- D365FO | Cannot Connect to SQL Server Database on Your Cloud Test Machines
- Intro to Microsoft Dynamics AX in Arabic – سلسلة حلقات مايكروسوفت داينامكس إيه إكس بالعربية
- Microsoft Dynamics Launch – Sunday, 24th February – Intercontinental Hotel, Riyadh
- Files of Our AX Brains Dec 2012 Event
- It was a great day!
- Tomorrow is the day for our Dynamics AX Brains Technical Seminar
- Dynamics AX Brains December 2012 Technical Seminar
- Windows Server 2012: Built from the Cloud Up
Tags
Archives
- October 2019 (1)
- January 2014 (1)
- February 2013 (1)
- December 2012 (4)
- September 2012 (2)
- December 2011 (2)
- November 2011 (3)
- July 2011 (3)
- 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
- ~ Mohamed Wajd Haikal, Software Team Leader at IDIS
"Amer is one of my best friends, he always tries to be the best by focusing on gaining new certifications and to have wide relationships"
- Read more testimonials »
Or you can add define.SingleQuote(“‘”) to classDeclaration and modifying line # 23 in ClassesSSRSStatementQuerydeleteInvalidBIUdmRoles with: list += #SingleQuote + udmRoles.UserGroupId + #SingleQuote;
Thanks Tommy
Thanks Amer..
Excellent goods from you, man. I’ve have in mind your stuff prior to and you’re simply extremely wonderful. I really like what you’ve bought here, really like what you’re saying and the way in which during which you assert it. You make it entertaining and you continue to care for to stay it sensible. I can not wait to learn much more from you. This is really a wonderful web site.