This is a migrated thread and some comments may be shown as answers.

error code 600 retrieving from a datalink server

4 Answers 48 Views
JavaScript SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jmillar
Top achievements
Rank 1
jmillar asked on 28 Oct 2015, 07:48 PM

Hi all;

 We're using a datalink server as a quick way to expose data.  I have the following data source defined:

var kiPMDataSource = new kendo.data.DataSource({
    type: "everlive",
    transport: {
        typeName: "KI"
    },
    schema: {
        model: {
            id: "Id"
        }
    },
    serverSorting: true,
    sort: {
        field: "Id",
        dir: "asc"
    },
    serverFiltering: true,
    filter: {
        logic: 'and',
        filters: [
            {field: 'Id',operator: 'eq',value: new Date('October 28 2015')},
            {field: 'report_group',operator: 'eq',value: 'PM'}
        ]
    }
});

However when I launch app in AppBuilder, using the debugger, I can see the read request for this datasource yields a Status 400/Bad Response.  The Request looks like:

Accept:application/json, text/javascript, */*; q=0.01
User-Agent:Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A537a Safari/419.3
X-Everlive-Filter:{"Id":"2015-10-28T04:00:00.000Z","report_group":"PM"}
X-Everlive-Sort:{"Id":1}

​The response I get back is:

{"message":"Data Link Server Error: Filter cannot have multiple or no children.","errorCode":660}

 Thanks,

Jason 

4 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 29 Oct 2015, 05:06 PM
Hello Jason,

Indeed, this filter is supported in types from a Data Connector.

I do apologize if this is causing any inconvenience, but perhaps the issue would be fixed with updating the Data Link server installation on your premises.

A link to the download and the documentation for the update procedure are available here.

I hope that this helps. Let us know should you have any further questions.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
0
jmillar
Top achievements
Rank 1
answered on 29 Oct 2015, 07:58 PM

Hi Anton;

I replaced the existing folder with the new DataLink server download.  Now my data link server isn't returning anything.  

 Thanks,

Jason

0
jmillar
Top achievements
Rank 1
answered on 30 Oct 2015, 03:07 PM

Hi Anton;

 A few more details -- it seems that the new datalink server is responding OK when I run it from a command prompt.  However, we had been running it as a Windows service.  The Windows service fails to stay running -- I have tried removing and reinstalling the service entry, but it's still the same behaviour.

 

Thanks,

Jason

0
Anton Dobrev
Telerik team
answered on 03 Nov 2015, 03:56 PM
Hi Jason,

Let's keep the discussion in your private support ticket.

Thank you.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
JavaScript SDK
Asked by
jmillar
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
jmillar
Top achievements
Rank 1
Share this question
or