Article ID: 945133 - Last Review: August 2, 2011 - Revision: 2.0 Error message when you use custom VBA code and you call the sqlfetch API function in Microsoft Dynamics SL: "System Message 10232 - Assertion failure!"
SYMPTOMSAfter you add a sqlfetch API function call by using Customization Manager in Microsoft Dynamics SL, you may receive the following error message: System Message 10232 - Assertion failure! File: sqlms2.cpp Line: 465 Expression: precbuff AND viewlen > 0 AND (Bind Timestamps EQ FALSE OR BindTimestamps EQ TRUE) CAUSEThe .Dh file is not imported. This problem occurs after you add a sqlfetch API function call in the VBA code by using Customization Manager RESOLUTIONTo resolve the problem, import the appropriate .Dh file for the specific sqlfetch API function call. To do this, follow these steps:
MORE INFORMATIONThe Swimapi.Dll file (kernel) retrieves records from the Microsoft Dynamics SL database and saves a copy of the record in the memory. The storage space in memory is a globally declared variable of a user-defined data type (UDT). The storage space is also known as "the buffer". A file that has a .Dh extension, contains the UDT. Each table in the Microsoft Dynamics SL database has a corresponding .Dh file. If the compiled screen in Microsoft Dynamics SL does not specify the .Dh file, you must import the .Dh file in the Visual Basic Editor so that you can later query the table. | Other Resources Other Support Sites
CommunityGet Help Now
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
