function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AWilkinsonAWilkinson 

Not getting an output

when i run SForce.java and enter my user name and password, this message is returned:

tns
tns:headerStruct
tns
tns:headerStruct
tns
tns:headerStruct
return                               <------------- if incorrect user name/pass entered, return changes to "fault"
No results returned

would anyone know my problem? thanks

Message Edited by AWilkinson on 07-16-2003 08:41 AM

Message Edited by AWilkinson on 07-16-2003 08:52 AM

AWilkinsonAWilkinson

alright, I made a few changes and now my result looks like this:

You are connecting to http://na1.salesforce.com/servlet/servlet.SoapApi

Username: *******
Password:  *******

tns
tns:headerStruct
tns
tns:headerStruct
tns
tns:headerStruct
return
SEARCH RESULTS

tns
tns:headerStruct
QUERY RESULTS (Matching Accounts)

Process terminated with exit code 0


I also saw when I printed out that in this line of code:
 for (Iterator i = ((List)result).iterator(); i.hasNext() {
it came out to say The list size is : 0
(or empty) does anyone know what my problem is?

Message Edited by AWilkinson on 07-21-2003 07:45 AM

AWilkinsonAWilkinson

for (Iterator j = row.entrySet().iterator(); j.hasNext() {
result is{access=[query, insert, update, delete, idList, search], fields=[{display={type=id}, access=[select, filter], type=string, length=15, field=id, byteLength=15}, {display={type=reference}, type=string, label=Owner ID, length=15, field=ownerID, byteLength=15, referenceTo=user, nullable=false}, {type=string, label=Account Name, length=80, field=name, nullable=false}, {display={type=reference}, type=string, label=Parent Account ID, length=15, field=parentID, byteLength=15, referenceTo=account}, {type=string, label=Account Number, length=40, field=accountNumber}, {type=string, label=Account Site, length=80, field=site}, {display={type=picklist, values=[{value=Prospect}, {value=Customer - Direct}, {value=Customer - Channel}, {value=Channel Partner / Reseller}, {value=Installation Partner}, {value=Technology Partner}, {value=Other}]}, type=string, picklistName=accountType, label=Account Type, length=40, field=type}, {display={type=picklist, values=[{value=Agriculture}, {value=Apparel}, {value=Banking}, {value=Biotechnology}, {value=Chemicals}, {value=Communications}, {value=Construction}, {value=Consulting}, {value=Education}, {value=Electronics}, {value=Energy}, {value=Engineering}, {value=Entertainment}, {value=Environmental}, {value=Finance}, {value=Food & Beverage}, {value=Government}, {value=Healthcare}, {value=Hospitality}, {value=Insurance}, {value=Machinery}, {value=Manufacturing}, {value=Media}, {value=Not For Profit}, {value=Recreation}, {value=Retail}, {value=Shipping}, {value=Technology}, {value=Telecommunications}, {value=Transportation}, {value=Utilities}, {value=Other}]}, type=string, picklistName=industry, label=Industry, length=80, field=industry}, {display={type=currency, scale=0, precision=18}, type=double, label=Annual Revenue, field=sales}, {display={type=picklist, values=[{value=Hot}, {value=Warm}, {value=Cold}]}, type=string, picklistName=accountRating, label=Account Rating, length=40, field=rating}, {display={type=phone}, type=string, label=Account Phone, length=40, field=accountPhone}, {display={type=phone}, type=string, label=Account Fax, length=40, field=accountFax}, {display={type=url}, type=string, label=Website, length=255, field=url}, {type=string, label=Ticker Symbol, length=20, field=ticker}, {display={type=picklist, values=[{value=Public}, {value=Private}, {value=Subsidiary}, {value=Other}]}, type=string, picklistName=accountOwnership, label=Ownership, length=40, field=ownership}, {display={digits=8}, type=i4, label=Employees, field=employees}, {type=string, label=SIC Code, length=20, field=sic}, {display={type=textarea}, type=string, label=Billing Street, length=255, field=billingStreet}, {type=string, label=Billing City, length=40, field=billingCity}, {type=string, label=Billing State, length=20, field=billingState}, {type=string, label=Billing Zip/Postal Code, length=20, field=billingPostalCode}, {type=string, label=Billing Country, length=40, field=billingCountry}, {display={type=textarea}, type=string, label=Shipping Street, length=255, field=shippingStreet}, {type=string, label=Shipping City, length=40, field=shippingCity}, {type=string, label=Shipping State, length=20, field=shippingState}, {type=string, label=Shipping Zip/Postal Code, length=20, field=shippingPostalCode}, {type=string, label=Shipping Country, length=40, field=shippingCountry}, {display={type=picklist, values=[{value=High}, {value=Medium}, {value=Low}]}, type=string, picklistName=00N30000000c9oh, label=Customer Priority, length=255, field=cf_00N30000000c9oh, custom=true}, {display={type=date}, type=dateTime.iso8601, label=SLA Expiration Date, field=cf_00N30000000c9od, custom=true}, {display={scale=0, precision=3}, type=double, label=Number of Locations, field=cf_00N30000000c9of, custom=true}, {display={type=picklist, values=[{value=Yes}, {value=No}]}, type=string, picklistName=00N30000000c9og, label=Active, length=255, field=cf_00N30000000c9og, custom=true}, {display={type=picklist, values=[{value=Platinum}, {value=Gold}, {value=Silver}, {value=Bronze}]}, type=string, picklistName=00N30000000c9oc, label=SLA, length=255, field=cf_00N30000000c9oc, custom=true}, {type=string, label=SLA Serial Number, length=10, field=cf_00N30000000c9oe, custom=true}, {display={type=picklist, values=[{value=Yes}, {value=Maybe}, {value=No}]}, type=string, picklistName=00N30000000c9ob, label=Upsell Opportunity, length=255, field=cf_00N30000000c9ob, custom=true}, {display={type=textarea}, access=[select, insert, update], type=string, label=Account Description, length=32000, field=description, byteLength=32000}, {display={type=datetime}, access=[select, filter], type=dateTime.iso8601, label=Created Date, field=createdDate}, {display={type=reference}, access=[select, filter], type=string, label=Created By ID, length=15, field=createdByID, byteLength=15, referenceTo=user}, {display={type=datetime}, access=[select, filter], type=dateTime.iso8601, label=Last Modified Date, field=lastModifiedDate}, {display={type=reference}, access=[select, filter], type=string, label=Last Modified By ID, length=15, field=lastModifiedByID, byteLength=15, referenceTo=user}, {display={type=datetime}, access=[select, filter], type=dateTime.iso8601, label=System Modstamp, field=systemModstamp}]}
        

for (Iterator i = ((List)result).iterator(); i.hasNext() {
result is[ ]      <-----------------empty

is Iterator i supposed to be empty, or did I just not download a file I needed to?