ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Client Access issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Client Access issue

    Hi
    I wrote a simple program to download a CSV file from as400. The program is written using C#.net and I have used Client access ActiveX control for this. Please see below

    Code:
    public bool AS400FileDownload(string SystemIp,string UserName,string Password,string FileNameWithLibrary,string PCFilePath)
            {
                DatabaseTransferClass transfer = new DatabaseTransferClass();
                try
                {
                    transfer.Password = Password;
                    transfer.UserID = UserName;
                    transfer.Download(SystemIp,
                                      FileNameWithLibrary,
                                      PCFilePath, cwbdtFileTypeEnum.cwbdtCSV);
                    Logger.Log("Downloading Success");
                    return true;
                }
                catch (Exception e)
                {
    
                   
                    if (File.Exists(PCFilePath))
                    {
                        File.Delete(PCFilePath);
                    }
                    Logger.Log("Exception has occured\n");
                    Logger.Log("Module : FTPClient->AS400FileDownload()\n");
                    Logger.Log("Error :" + e.Message + "\n");
                    Logger.Log("Stack Trace :" + e.StackTrace + "\n");
                    Logger.Log("AS400 Error code : "+ transfer.Errors.ReturnCode.ToString());
                    return false;
                }
    
              
            }
    here the DatabaseTransferClass define in the activex control. But when I ran this program I got the following error CWB4016 - Internal data transfer routine returned error code 32312 I tried to google this but so far no luck. Can any one have any idea on this ??

    Many Thanks
    Anuradha

  • #2
    Re: Client Access issue

    First thing...make sure your iSeries OS version is up to date on PTFs. Also make sure you have the latest service pack for your version of iSeries Access. You also want to check to be sure you have the iSeries Access that is at the same level as the iSeries OS.

    You should also determine the remote command server job that your client is connected to and review the job log for any messages that might be there.
    Jonas Temple
    Got FROG?
    Got Tadpole? No, because it's not done yet! Stay tuned....

    01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

    Comment


    • #3
      Re: Client Access issue

      I believe there is a ptf for this. It would help to know your OS version.
      Last edited by MichaelCatalani; April 4, 2011, 01:31 PM.
      Michael Catalani
      IS Director, eCommerce & Web Development
      Acceptance Insurance Corporation
      www.AcceptanceInsurance.com
      www.ProvatoSys.com

      Comment

      Working...
      X