NAV2009R2 Classic Client Production Schedule error

MaximusMaximus Member Posts: 105
Hi,

I want to run the Production Schedule in NAV2009R2 Classic Client, but it throws the following error:
Microsoft Dynamics NAV Classic
This message is for C/AL programmers:

Could not invoke the member ScheduleOrder. The OLE control or Automation server returned the following
message:
One or more of the arguments could not be coerced.

OK

I tried to reinstall it but now I encounter the following issue. It used to be an option you could select in the installer. But in the NAV2009R2 installer it is nowhere to be found. See the attached screenshots. What to do?

Regards, Max

Comments

  • koubekkoubek Member Posts: 84
    The type of the parameter of the function "SecheduleOrder" of the automation is different for version 5 and version 6.

    The version 5 uses IXMLDOMDOCUMENT2.
    The version 6 uses IXMLDOMDOCUMENT3.

    Have you upgraded technically on the NAV2009?
  • MaximusMaximus Member Posts: 105
    Yes I have. I'll try to upgrade XML. Tnx for the tip.
  • MaximusMaximus Member Posts: 105
    Hi Koubek,

    thanks for pointing me in the right direction. The following modification of Codeunit 5500 solved my problem:

    Change Global Variable OutboundXML from

    Name DataType Subtype Length
    OutboundXML Automation 'Microsoft XML, v4.0'.DOMDocument40

    to

    Name DataType Subtype Length
    OutboundXML Automation 'Microsoft XML, v6.0'.DOMDocument60

    Regards, Max
Sign In or Register to comment.