forcedotcom/SalesforceMobileSDK-iOS — Issue #25: Retrieve errors when many fields are specified
Author: jhersh
Created: 2012-01-05 23:40:49+00:00
State: open

I'm seeing an error thrown when I try to perform a retrieve (either with the block methods or by manually creating a request) with many fields.

Retrieving an account record with 3 fields (id, name, industry) works fine, but I'm trying to render a full page layout (as many as 500 fields):

The request generated:
```2012-01-05 15:37:21.876 SF Viewer[85690:40b] SFRestAPI::send:delegate: [ method: GET, path: /v23.0/sobjects/Account/0013000000sps6sAAA, queryParams: {"fields":"RecordType.Name,Account_Location__c,LastModifiedBy.email,CreatedBy.mobilephone,jsSDO__Sync_Status_Indicator__c,id,Owner.email,Owner.phone,Owner.city,Industry,Name,ShippingCountry,CreatedBy.title,Owner.aboutme,IsPersonAccount,LastModifiedBy.mobilephone,LastModifiedBy.aboutme,NumberOfEmployees,LastModifiedBy.fullphotourl,BillingCity,Owner.currentstatus,LastModifiedBy.currentstatus,BillingStreet,LastModifiedBy.title,Parent.RecordTypeId,CreatedBy.smallphotourl,AnnualRevenue,ParentId,jsSDO__Duplicate__c,LastModifiedById,Owner.department,FN__Find_Nearby__c,LastModifiedBy.department,LastModifiedBy.name,ShippingState,FN__Which_Address__c,OwnerId,jsSDO__Jigsaw_Id__c,CreatedBy.currentstatus,LastModifiedBy.state,Website,Owner.title,Parent.Name,Parent.id,CreatedDate,CreatedBy.aboutme,Fax,BillingState,BillingPostalCode,Owner.fullphotourl,RecordTypeId,Owner.name,Closed_Won_Value__c,CreatedBy.city,CreatedBy.phone,ShippingCity,CreatedById,Owner.mobilephone,LastModifiedBy.phone,LastModifiedBy.smallphotourl,CreatedBy.state,Owner.state,ShippingStreet,CreatedBy.email,Owner.smallphotourl,CreatedBy.department,LastModifiedDate,ShippingPostalCode,RecordType.id,PersonContactId,CreatedBy.name,Type,Phone,LastModifiedBy.city,jsSDO__Additional_Information__c,jsSDO__Jigsaw_Last_Sync_Locked__c,FN__Mapping_Status__c,CreatedBy.fullphotourl,BillingCountry"}]
```
The error:

```2012-01-05 15:37:21.881 SF Viewer[85690:40b] *** -[__NSCFConstantString stringByAppendingPathComponent:]: cannot append path '/services/data/v23.0/sobjects/Account/0013000000sps6sAAA?fields=RecordType.Name%2CAccount_Location__c%2CLastModifiedBy.email%2CCreatedBy.mobilephone%2CjsSDO__Sync_Status_Indicator__c%2Cid%2COwner.email%2COwner.phone%2COwner.city%2CIndustry%2CName%2CShippingCountry%2CCreatedBy.title%2COwner.aboutme%2CIsPersonAccount%2CLastModifiedBy.mobilephone%2CLastModifiedBy.aboutme%2CNumberOfEmployees%2CLastModifiedBy.fullphotourl%2CBillingCity%2COwner.currentstatus%2CLastModifiedBy.currentstatus%2CBillingStreet%2CLastModifiedBy.title%2CParent.RecordTypeId%2CCreatedBy.smallphotourl%2CAnnualRevenue%2CParentId%2CjsSDO__Duplicate__c%2CLastModifiedById%2COwner.department%2CFN__Find_Nearby__c%2CLastModifiedBy.department%2CLastModifiedBy.name%2CShippingState%2CFN__Which_Address__c%2COwnerId%2CjsSDO__Jigsaw_Id__c%2CCreatedBy.currentstatus%2CLastModifiedBy.state%2CWebsite%2COwner.title%2CParent.Name%2CParent.id%2CCreatedDate%2CCreatedBy.aboutme%2CFax%2CBillingState%2CBillingPostalCode%2COwner.fullphotourl%2CRecordTypeId%2COwner.name%2CClosed_Won_Value__c%2CCreatedBy.city%2CCreatedBy.phone%2CShippingCity%2CCreatedById%2COwner.mobilephone%2CLastModifiedBy.phone%2CLastModifiedBy.smallphotourl%2CCreatedBy.state%2COwner.state%2CShippingStreet%2CCreatedBy.email%2COwner.smallphotourl%2CCreatedBy.department%2CLastModifiedDate%2CShippingPostalCode%2CRecordType.id%2CPersonContactId%2CCreatedBy.name%2CType%2CPhone%2CLastModifiedBy.city%2CjsSDO__Additional_Information__c%2CjsSDO__Jigsaw_Last_Sync_Locked__c%2CFN__Mapping_Status__c%2CCreatedBy.fullphotourl%2CBillingCountry' to path ''```