cancel
Showing results for 
Search instead for 
Did you mean: 

NSInvalidArgumentException in SMP 3 OData while doing read Operation

Former Member
0 Kudos

Hi Every one I am getting a " NSInvalidArgumentException"  Error  in IOS while i am performing OData Read Operation by 'POST' or 'GET' method. I am using the offline capability and also Delta Query is written on OData Services.  Please held me this error killing me since past one week

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The URL is= http://182.87.61.205:8008/com.innova.mtra/BankDetailsCollection('barbarab')


The code i am using to fetch read collection is below

"

[RequestBuilder setRequestType:HTTPRequestType];

    [RequestBuilder enableXCSRF:YES];

    NSString *string = [NSString stringWithFormat:@"%@%@",self.serviceBaseURl,urlString];

    DLog(@"URL String: %@",string);

    id<Requesting> request = [RequestBuilder requestWithURL:[[NSURL alloc] initWithString:string]];

   

    [request setRequestMethod:@"GET"];

    [request addRequestHeader:@"Accept" value:@"application/xml,application/atom+xml"];

    [request addRequestHeader:kX_SUP_APPCID value:self.app_Connection_ID];

[request startAsynchronous];


"

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you sure about port 8008? Did you try with 8080?

Former Member
0 Kudos

Yes i am using the port 8080.

There is no error in the url.

I am getting the error only in one case i.e when doing the read operation. example the URL in the formate collectionName('value'). For other than this format URLs its working fine.

Note: This error is coming only when i am fetching the data for send time. for the first time its working good.

Former Member
0 Kudos

We implemented the delta Query on the services and in the app offline capability is enabled.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

I dont much idea on this. You can check 

Maybe can help you.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you share how exactly you are calling GET method in coding?