web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

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

(0) ShareShare
ReportReport
Posted on by 92

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

I have the same question (0)
  • Mark E Profile Picture
    6,451 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?

  • Verified answer
    Mark E Profile Picture
    6,451 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....

  • Eric Fintel Profile Picture
    92 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans