2 Replies Latest reply on Jun 7, 2013 8:18 AM by Ankur Srivastava

    Sync error in RHo -  Passing Static data from rhoconnect to Rhodes

      Hi All,

       

      I am just trying to pass static data from Rhoconnect to Rhodes.

      I have created data model "Employee" with attributes "name.designation,id" and want to pass the static data from RhoConnect. In source adapter i have written:

       

      def query(params=nil)

          # TODO: Query your backend data source and assign the records

          # to a nested hash structure called @result. For example:

          @result={}

           @result = {

             "1"=>{"name"=>"Ankur","designation"=>"SE","id"=>"3368"},

             "2"=>{"name"=>"Abc","designation"=>"SE","id"=>"4649"}

           }

          raise SourceAdapterException.new("Please provide some code to read records from the backend data source")

        end

      I have enabled the sync also in model class.

       

      I am getting the client Id by sync is not processed.  Please let me know what i am doing wrong in this case.

       

      Only getting exception :

      [10:24:18 AM 2013-06-07] SourceAdapter raised query exception: Please provide some code to read records from the backend data source