Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

System Message 10050

Posted on by 1,270

Hi,

Has anyone experienced an issue on importing customizations from a lower version of Dynamics to Dynamics SL 2015?

To be specific, I am not doing an upgrade but bring over customizations from version 7.0 to 2015 for testing purposes.  All customizations are working fine with the exception of one where a custom table called xsoaddressext for the shipping address screen.  It is presently working fine in version 7.0 but when I attempt to access the screen in version 2015 I am getting a "system message 10050 - the application specified size of record xsoaddressext does not match the database declared size".

A dh file was recreated and I copied over the code from 7.0 to 2015 but I am still getting the same error.

Could someone point me in the right direction to resolve this issue?  Any assistance will be greatly appreciated.

Thanks

*This post is locked for comments

  • Cynthia Audain Profile Picture
    Cynthia Audain 1,270 on at
    RE: System Message 10050

    Manuel,  you could also try to run the upgrade process again; make sure and choose the appropriate updates.   After running the upgrade from one version to another, I would also choose to execute views, indexes and stored procedures and sychronize the security.

  • Cynthia Audain Profile Picture
    Cynthia Audain 1,270 on at
    RE: System Message 10050

    Hi Manuel,  I am trying to recall this issue and I vaguely remembered that this issue was due to a customized screen with a table.  An adjustment was done on the customization but cannot say exactly how I got it to work.  I will have a look at the screen again.   However, you indicated that you are getting the same error even in Standard Mode so it does not seem to be the customization that is causing a problem.

    As a test, remove all the customizations in the CustomVBA table and try to access the screen again and see if you are getting the same problem.

  • manuel vela Profile Picture
    manuel vela 430 on at
    RE: System Message 10050

    Hi Lisa,

    Did you resolve the System Message 10050 message?

    i am getting the same error, i upgrade from SL 7 fp1 to SL 2018 CU1, i already import my customization but nothing happend. the same error is in standard mode

    any help will be gracefull

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: System Message 10050

    Lisa, hopefully someone else will chime in on this as I do not have a lot of time to look at this for the next couple of weeks.  I did review one of my customizations where we added some information to the employee by creating a new table and linking that table to the employee id.  The one thing I saw different between your code and ours is that the call to SqlCursorEx included "+ SqlUpdate" after the NOLEVEL parameter.  You might change your call to the following:

    Call SqlCursorEx(csr_xSoAddressExt, NOLEVEL + SqlUpdate, "csr_xSoAddressExt", "xSOAddressExt", "xSOAddressExt")

    and see if that makes any difference.

    Also, the code you attached appears to be code for version 6.5.  SL 7.0 and later switched to VB.NET and that requires some changes to the event calls like Update1.  Did you make those changes to the custom code?  I believe the code you attached will give compile errors when you open the screen under SL 2015.

  • Cynthia Audain Profile Picture
    Cynthia Audain 1,270 on at
    RE: System Message 10050

    Hi Rick, the issue with the size of the dh file was resolved.  However, on saving any information to the custom table, I am getting this error message:

    System Message 10091

    Cursor specified SqlReadOnly flag.

    Function: sinsert(DefaultCreated)

    Level: NOLEVEL

    Tables(s): xSoaddressExt where CustID =

    This is the code that is being used.  Could you point me in the right direction to resolve this issue.

    Private Sub Form1_Display()

       Dim GridHandle As Integer

       GridHandle = GetGridHandle("Spread1")

       serr1 = VBA_Mextend(GridHandle, bxSoAddressExt, LenB(bxSoAddressExt))

    End Sub

    Private Sub Form1_Load()

        Call VBA_SetAddr("bxSOAddressExt", bxSoAddressExt, nxSoAddressExt, LenB(bxSoAddressExt))

        Call SqlCursorEx(csr_xSoAddressExt, NOLEVEL, "csr_xSoAddressExt", "xSOAddressExt", "xSOAddressExt")

    End Sub

    Private Sub Update1_OnUpdate(ByVal Level As Integer, ByVal InsertFlg As Integer, retval As Integer)

       Dim SQLSTR$

       If Level = 1 Then

       If serr1 = 0 Then

       row = MGetRowNum(GridHandle%)

       End If

       serr1 = MFirst(GridHandle%, MaintFlag%)

       While serr1 = 0

       bxAddress.CustID = GetObjectValue("cCustID")

       bxAddress.ShipToID = GetObjectValue("cShipToId")

       SQLSTR = "Select * from xSOAddressExt where Custid = " + SParm(bxAddress.CustID)

       SQLSTR = SQLSTR + " and ShipToId = " + SParm(bxAddress.ShipToID)

       serr2 = SqlFetch1(csr_xSoAddressExt, SQLSTR, bxSoAddressExt, LenB(bxSoAddressExt))

       If serr2 = NOTFOUND Then

           MaintFlag% = INSERTED

       End If

       Select Case MaintFlag%

           Case UPDATED 'Existing line is updated

               Call SUpdate1(c1, "xSOAddressExt", bxSoAddressExt, LenB(bxSoAddressExt))

           Case INSERTED 'Existing line is new inserted one.

               Call SInsert1(c1, "xSOAddressExt", bxSoAddressExt, LenB(bxSoAddressExt))

           Case DELETED 'Existing line was deleted.

               Call SDelete(c1, "xSOAddressExt")

       End Select

       serr1 = MNext(GridHandle%, MaintFlag%)

       Wend

       Call msetrownum(GridHandle%, row)

       Call MDisplay(GridHandle%)

       End If

    End Sub

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: System Message 10050

    Lisa, sorry, I am kind of out of ideas on this without being able to see the code for the DH file and see what the sp_help command returned.  This is not that all of a complicated process and it sounds like your table is very basic with only a few fields.  I have lots of custom tables created under 6.5 and migrated to 7.0, 2011 and 2015 with all kinds of field types and have not had any issue with SL 2015 and those tables.  Most of my tables are accessed by programs developed using the SDK but I also have a couple of tables that are accessed in existing SL program through Customization Manager.

    If you want to post the results of the sp_help command and the DH file code, I will take a look at that but it sounds like you have already done that.

  • Cynthia Audain Profile Picture
    Cynthia Audain 1,270 on at
    RE: System Message 10050

    Yes the custom table has a tstamp field.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: System Message 10050

    Lisa, not sure what the issue is if the DH file matches what the sp_help shows.  Are in of the fields in this custom table unusual types such that VB.Net and SQL are conflicting?  Does the custom table have a tstamp field?

  • Cynthia Audain Profile Picture
    Cynthia Audain 1,270 on at
    RE: System Message 10050

    Hi Rick

    That was done and when I look at the results and the dh file, it has the same length for each field.

    However, I am still getting the error message.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: System Message 10050

    As an alternative to Butch's suggestion, try the following command:

    sp_help xsoaddressext

    This will show each table field, its type and size and compare that to your DH definitions.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans