Error Sending the Sales document - using Biz Talk Option

b2b_Vijayb2b_Vijay Member Posts: 76
Hi,

I have a problem while sending the sales order using Biztalk option.

Sales Order --> Functions --> Send Biztalk Sales Order Cnfmn.

Error Message ----
This Message is for C/AL Programmers:
Couldnot Invoke the member Send. The OLE Control or Automation server returned an unknown error code.

I am using Biztalk Server 2004, MBS Navision 4.00, SQL Server option, NAS 4.00.

I have followed the Setup procedure for the Biz talk as per the PDF for Commerce Gateway.

Please do help me, if anybody has some solution.
Thanx in Advance.

Regards,
Vijay
Regards,
Vijay

Comments

  • bruno77bruno77 Member Posts: 62
    Did you find a solution for this problem? I am having the same issue ](*,)

    /Bruno
  • DenSterDenSter Member Posts: 8,307
    Could you run the process with the debugger (breakpoint on triggers off) and tell us where exactly it stops? It looks like something did not register correctly when you installed CG.
  • bruno77bruno77 Member Posts: 62
    This is where it stops, seems to be something wrong with the CGReqClient40.tlb (CGReqClient.dll ?) object:

    Codeunit 99008517 XML Document-Create\ReturnCode := Send(OutboundDocument,TrackingID)..
    .
    ..
    ...
    Document.DestinationAddress := BizTalkPartnerSetupHdr."Destination Address";
    ChannelName := BizTalkPartnerSetupLine."Agreement Name";

    IF BizTalkSetup."Check Agreement for Sent Doc." THEN
    ReturnCode := Document.Send('',SourceOrgID,'',
    SourceAppID,'',DestOrgID,'',DestAppID,DocumentName, XMLDOMDocument, COMPANYNAME,
    BizTalkSetup."Check Agreement for Sent Doc.",TrackingID,ChannelName)
    ELSE
    --> ReturnCode := Document.Send(SourceOrg,0,SourceApp,
    0,DestOrg,0,DestApp,0,DocumentName, XMLDOMDocument, COMPANYNAME,
    BizTalkSetup."Check Agreement for Sent Doc.",TrackingID,ChannelName);

    CLEAR(Document);
    CLEAR(XMLDOMDocument);
    ...
    ..
    .
    Thanks.

    /Bruno
  • bruno77bruno77 Member Posts: 62
    Solved:
    I had not installed the Commerce Integration components when installing the Navision client.

    Thanks.
  • DenSterDenSter Member Posts: 8,307
    I was thinking that might have been the cause. Good catch \:D/. Thanks for following up.
  • Per_JakobsenPer_Jakobsen Member Posts: 2
    Hi there,

    Ihave been looking through this site in order to find a solution to my problem, and this one is the one wich comes closest.
    I have the same symptoms as mentioned by bruno77, but I do have the cgreqclient installed.

    I have seen some indications on nav.v.4 do not work if installed onto op a ver. 3.70.

    Can this be my problem?

    I have a ver. 3.70b along side with a ver. 2.60. (BT2004)

    cheers
    Per :-k
  • Per_JakobsenPer_Jakobsen Member Posts: 2
    Right... I've found the ansver myself. A regfix was needed.

    After having runned this, the CG was up and running in a jiffy :wink:
Sign In or Register to comment.