Exhibit 10.4

SECOND AMENDMENT TO
LEASE AGREEMENT
JORDAN VALLEY TECHNOLOGY CENTER
OFFICE BUILDING TWO

THIS SECOND AMENDMENT TO LEASE AGREEMENT (the "Amendment") is made and entered into as of this 3rd day of April, 2002, by and between BOYER JORDAN VALLEY 1, L.C.,
a Utah Limited Liability Company, (the "Landlord"), and TENFOLD CORPORATION, a Delaware Corporation (the "Tenant"), (collectively the "Parties").

RECITALS:

A.    Landlord
and Tenant previously entered into a certain Lease AgreementTenfold Office Building Phase I, dated April 28, 2000 and amended by the First
Amendment to Lease Agreement dated November 30, 2000 (the "Lease") providing for the lease by Landlord to Tenant of the office building located at 698 West 10000 South in South Jordan, Utah.
Capitalized terms which are used but not defined in this Amendment shall have the same meaning as is set forth in the Lease.

B.    Tenant
desires to modify the Lease and reduce its initial rental obligations under the Lease.

C.    Landlord
is willing to modify the Lease strictly upon the terms and conditions set forth in this Amendment.

NOW,
THEREFORE, for good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, Landlord and Tenant hereby agree as follows:







1

---





Basic Annual Rent for Lease Year 1 shall consist of the sum of the following amounts:





Wells Fargo Construction LoanInterest

$
45,496.05Wells Fargo Construction LoanPrincipal Payment


20,000.00The Boyer Company Construction LoanInterest


26,774.89Total Basic Annual Rent PaymentMarch 2002

$
92,270.94




2

---

IN
WITNESS WHEREOF, the Landlord and Tenant have executed this Amendment on the date first set forth above.

|LANDLORD: |  | BOYER JORDAN VALLEY 1, L.C., by its Managing Partner, The Boyer Company, L.C.
|--------- |  | -----------------------------------------------------------------------------
|          |  | By:                                                                          
|          |  | Its:                                                                         
|TENANT:   |  | TENFOLD CORPORATION                                                          
|          |  | By:                                                                          
|          |  | Its:                                                                         

3

---

NOTARY

|STATE OF UTAH       |  | )    |  | 
|------------------- |  | ---- |  | 
|                    |  | ) ss |  | 
|COUNTY OF SALT LAKE |  | )    |  | 

On
this            day of March, 2002, personally appeared before me H. ROGER BOYER, who duly acknowledged to me that he executed the foregoing Lease Amendment as the CHAIRMAN AND
MANAGER of THE BOYER COMPANY, L. C., A UTAH LIMITED LIABILITY COMPANY the managing partner of BOYER JORDAN VALLEY 1, L.C.

|My Commission Expires: |  |                             
|---------------------- |  | ----------------------------
|                       |  | Notary Public               
|                       |  | Residing at SALT LAKE COUNTY

|STATE OF UTAH       |  | )    |  | 
|------------------- |  | ---- |  | 
|                    |  | ) ss |  | 
|COUNTY OF SALT LAKE |  | )    |  | 

On
this            day of March, 2002, personally appeared before me JONATHAN E. JOHNSON III, who being duly sworn, did say that he is the EXECUTIVE VICE-PRESIDENT AND
CHIEF FINANCIAL OFFICER of Tenfold Corporation, a Delaware Corporation, and that said instrument was signed in behalf of said corporation by authority of its by-laws or a resolution of its
Board of Directors, and said JONATHAN E. JOHNSON III acknowledged to me that said corporation executed the same.

|My Commission Expires: |  |              
|---------------------- |  | -------------
|                       |  | Notary Public
|                       |  | Residing at  

4

---

EXHIBIT "B-2"

DESCRIPTION OF PREMISES

1

---

EXHIBIT "J-2"

PARKING AREAS

1

---

QuickLinks