NAV2016 client crash on run/runmodal page through code

EvREvR Posts: 176Member
edited 2016-01-24 in NAV Three Tier
Hi all,

I have a page (containing a JS control add-in). When I run the page directly from the dev client and just add a hard-coded GET to the OnOpenPage(), everything works just fine. Data is displayed and user interaction works. But when I run the same page from code in another page (of the same record type), the RTC loses connection to the service and crashes:

lw8oh9firfho.png

MyPage.SETRECORD(Rec);
MyPage.RUNMODAL; (client crashes when reaching this line in the debugger)

My event viewer says the following:
Error MicrosoftDynamicsNavServer$DynamicsNAV90

Type: System.Runtime.Serialization.SerializationException
Message: Maximum number of items that can be serialized or deserialized in an object graph is '512000'. Change the object graph or increase the MaxItemsInObjectGraph quota.
StackTrace:
at System.Runtime.Serialization.XmlObjectSerializerContext.IncrementItemCount(Int32 count)
at WriteArrayOfunsignedByteToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)
at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)........


Any ideas?

Best Answer

Answers

  • DarkNationDarkNation Posts: 2Member
    You could try to set the "Max. Items on Object Graph" setting on the service tier to 1024. Dont't forget to restart.
  • EvREvR Posts: 176Member
    Same issue.
    I guess it's a bug, especially because the same page runs fine when not being called by code.
    I'm not running the latest build so I'll try to update. If partnersource finally lets me download....bugged up mess, Microsoft!
  • EvREvR Posts: 176Member
    I've tried the latest NAV build, same exception.

    If anyone ever faces this same bug;
    The page contains a JS add-in with a lot of javascript and css lines. I've minified my javascript and css to reduce the size. And now the page works.

    This is a bug in NAV though, because running the page normally without the minified JS/CSS it works fine. It only crashes when calling that same page via code (RUNMODAL/RUN).
  • kcrkcr Posts: 1Member
    Hi all
    I am facing RUNMODAL issue who may be related to this topic.

    When I call the same page via RUN it works fine and my js interpreteret fine. But when I call with RUNMODAL then nothing happens. Dont get any error eg. just blank page. Seems as the addin is not loaded, it apparently never reach my js part.

    so is there anyone who know what the problem is?
Sign In or Register to comment.