Skip to main content
Solved

Mobile Initialize doesnt create table


Forum|alt.badge.img+3

Hi,

     I have created a Sync Rule with delivery mode as Batch Delta and everything runs fine until the Mobile is initialized ,After initialization no data is there in the table and the data gets pushed the next time the sync rule runs.

Is the app not supposed to download data for all tables when it is initialized for the first time.Am i missing something,Any guidance would be appreciated

Best answer by Lee Pinchbeck

Hi @manishpandey,

Am I correct in assuming EXT indicates this is an extension table? If so, please see this other thread:

https://community.ifs.com/ifs-field-service-management-fsm-employees-partners-only-103/mobile-place-ext-issue-8312

extension tables should not have their own sync rules and should instead be setup to be included in the sync rule for the table they extend.

Kind regards,

Lee Pinchbeck

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 replies

Forum|alt.badge.img
  • Do Gooder (Employee)
  • 4 replies
  • April 27, 2021

Hi, Could you please have a look on the Aurena Native Logs in IEE./Aurena. that will indicate if you have any errors. s.a. invalida packages or data mismatch.


Lee Pinchbeck
Ultimate Hero
Forum|alt.badge.img+24
  • Ultimate Hero
  • 1219 replies
  • April 27, 2021

Hi @manishpandey,

It may be helpful if you are able to upload a screenshot of your sync rule and the script added in the initial query.

The initial query is what runs on initialisation so that would be the first point to check if the data is not coming through correctly.

Try comparing the new query to an existing sync rule.

Kind regards,

Lee Pinchbeck


Forum|alt.badge.img+3
  • Author
  • Do Gooder
  • 4 replies
  • April 27, 2021

Hi Lee,

            I have attached the screenshot here and also the query which is configured to run at initialization

 

<hierarchy_select return_only_requested_attrs="true" max_rows="50000">
  <primary_table>c_iot_device_ext</primary_table>
  <from>
    <table>c_iot_device_ext</table>
    <table>product</table>
  </from>
  <attrs>
    <attr>C_IOT_DEVICE_EXT.EXT_HOSTNAME</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_IP_ADDRESS</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_MAC_ADDRESS</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_LATEST_TOTAL_COUNTER</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_LATEST_COLOR_COUNTER</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_LATEST_BLACK_COUNTER</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_LAST_CONNECTION_DTTM</attr>
    <attr>C_IOT_DEVICE_EXT.DEVICE_ID</attr>
    <attr>C_IOT_DEVICE_EXT.EXT_IOT_MONITORING_TOOL</attr>
  </attrs>
  <where>
    <join_constraint>
      <constraint>
        <left_operand>PRODUCT.SERIAL_ID</left_operand>
        <operator>EQUI</operator>
        <right_operand>C_IOT_DEVICE_EXT.DEVICE_ID</right_operand>
      </constraint>
    </join_constraint>
    <constraint>
      <left_operand>C_IOT_DEVICE_EXT.EXT_ACTIVE</left_operand>
      <operator>EQUI</operator>
      <right_operand>Y</right_operand>
    </constraint>
    <constraint>
      <left_operand>C_IOT_DEVICE_EXT.ext_hostname</left_operand>
      <operator>not_null</operator>
    </constraint>
  </where>
</hierarchy_select>

 

 

The query runs fine vial xml poster and also the data gets synced when the job runs every houe,but no data is coming at initialization


Lee Pinchbeck
Ultimate Hero
Forum|alt.badge.img+24
  • Ultimate Hero
  • 1219 replies
  • Answer
  • April 27, 2021

Hi @manishpandey,

Am I correct in assuming EXT indicates this is an extension table? If so, please see this other thread:

https://community.ifs.com/ifs-field-service-management-fsm-employees-partners-only-103/mobile-place-ext-issue-8312

extension tables should not have their own sync rules and should instead be setup to be included in the sync rule for the table they extend.

Kind regards,

Lee Pinchbeck


Forum|alt.badge.img+3
  • Author
  • Do Gooder
  • 4 replies
  • April 27, 2021

Hi Lee,

            I made the changes so that the sync rule now triggers on the parent table and not the ext table but the main issue is still there,it is not replicating at time of initialization and only happens after the schedule runs at the specified frequency ,Do we need to add the reference of the sync rule somewhere else as well ?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings