Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Assertion failure when launching ROI through VBA code using a Template in SL2015 CU2 on Windows 10 Pro

Posted on by 90

When trying to print a report from within a customized screen in SL2015 CU2 on Windows 10 Pro that references a Template an assertion failure system message 10232 occurs.  Running the same exact screen on window 7, windows 8.1, windows server 2012 R2 does not exhibit this behavior (report runs without issue as expected).

System Message 10232:

Assertion failure!

File:  ctlbgrid.cpp

Line: 2030

Expression: m_colMap.GetCount() > 0

Environment:  Windows 10 Pro - fully updated through 2018-03 Cumulative update for window 10 version 1709 x64 bit.

Dynamics - SL 2015 CU2 with no hot fixes applied.

Running Dynamics - SL 2015 CU2 as the SYSADMIN on the supplied demo databases using windows authentication. The underlying user is an administrator of the client computer as well as the administrator of the domain.

A button was placed on the Bill of material maintenance Screen 11.250.00 that when pressed did the following:

Private Sub btnPrintBOM_Click()

Dim WhereStr as String

Dim ParmStr as String

WhereStr = "({kit.kitid} = " & SParm(Trim(sivMyApp.Controls("ckitidh"))) & ")"

ParmStr = "ROI.EXE " & PRMSEP
ParmStr = ParmStr & "11600/RUN" & PRMSEP
ParmStr = ParmStr & "SINGLE/TEMPLATE" & PRMSEP
ParmStr = ParmStr & WhereStr & "/WHERE" & PRMSEP
ParmStr = ParmStr & "/PSCRN"

serr = Launch(ParmStr, True, True, 0)

End Sub

Printer information is not saved with the template "SINGLE".

Further,  if I modify the above code to not reference a Template it will run fine.  However, that is not an acceptable solution in our environment.

*This post is locked for comments

  • Eric Fintel Profile Picture
    Eric Fintel 90 on at
    RE: Assertion failure when launching ROI through VBA code using a Template in SL2015 CU2 on Windows 10 Pro

    Indeed,  the computers having this reported issue were DELL Laptops with Touch enabled.  Sure enough going into the BIOS and disabling the touch capabilities on the laptop resolved the issue.  Yes very strange and unfortunate.

  • Verified answer
    Mark E Profile Picture
    Mark E 6,405 on at
    RE: Assertion failure when launching ROI through VBA code using a Template in SL2015 CU2 on Windows 10 Pro

    Not sure if the resolution I just discovered is the same one for the initial issue reported here, but my client was using Samsung laptops with Touch Screen capabilities enabled.  When that feature was disabled, the problem was resolved.  Very strange....

  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: Assertion failure when launching ROI through VBA code using a Template in SL2015 CU2 on Windows 10 Pro

    I am running into this exact same issue on SL 2015 CU2, but on a Windows Server 2016 Terminal Server.  We need the template to check one of the "Options" checkboxes within ROI (because I don't think it can be passed by code).  Did you ever find a resolution to this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans