执行查询时出错:ElliMae Encompass中的无效对象名称#loanFolders

时间:2019-01-18 13:23:53

标签: c# panel

我正在使用ElliMae Encompass SDK v19.1。而且我在运行程序时遇到了异常。 folders.GetContent()发生异常。
我的异常消息是
ElliMae.EMLite.ClientServer.Exceptions.ServerDataExceptions: Error executing query: Invalid Object Name #loanFolders
我的代码是

static void Main(string[] args)
    {
        // Open the session to the remote server
        Session session = new Session();
        session.Start("https://TEBE11169235.ea.elliemae.net$TEBEXXXXXX", "Sadmin", "******");

        var loansCollection = session.Loans;
        var foldersCollection = session.Loans.Folders;
        // Fetch the "My Pipeline" folder
        LoanFolder folder = session.Loans.Folders["Test"];
        //folder.Rebuild();
        //folder.Refresh();
        // Retrieve the list of all loans from this folder visible to the logged in user
        var ids = folder.GetContents();

        foreach (LoanIdentity id in ids)
        {
            // Open the Loan
            Loan loan = folder.OpenLoan(id.LoanName);

            // Display the address of the property
            Console.WriteLine(loan.Fields["11"].Value);     // Street Addr
            Console.WriteLine(loan.Fields["12"].Value);     // City
            Console.WriteLine(loan.Fields["14"].Value);     // State

            // Close the loan to release its resources
            loan.Close();
        }

        // End the session to gracefully disconnect from the server
        session.End();

    }

0 个答案:

没有答案