Data Sync issue when a new custom field is created after sync is run

Created on 6 February 2024, 10 months ago
Updated 14 February 2024, 9 months ago

Problem/Motivation

Steps to reproduce

Once an event is created and sessions are synched and afterward you create a new field on swapcard and also map it with a new field on drupal and run sync the already created session/speaker did not get the value for this new field.

Proposed resolution

Any new field added to a content type like speaker or session once mapped with its swapcard field its should be synched and its value need to be fetched.

Need a guidance or solution to the issue. Thanks

💬 Support request
Status

Active

Version

1.1

Component

User interface

Created by

🇵🇰Pakistan noman_297

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @noman_297
  • 🇳🇱Netherlands nk_

    This shall not be the case, the module was tailored and tested on the platform that involves multiple events and thousands of entities (Speakers, Sessions, Exhibitors etc.) as well as a big group of most of the field types provided by Swapcard. There we are using it so for almost a year and never experienced this issue. I might be able to help but please provide me with more info.

    • What kind of field it is? A custom field? Dropdown, or textfield or?
    • If this is an options field type (e.g. select/dropdown) does it have key|value definitions on Swapcard? Our module syncs that too so in case it is this sort of field please check if those options (assuming existing on Swapcard) are also synced in Drupal?
    • Are you sure that you actually did populate that field with at least one single value, at least at one Session?
    • Did you try some options in the Debug section at the bottom of the module's config form?
    • For debugging it's good to check in Swapcard's Graphql explorer here: https://developer.swapcard.com/tools/explorer
    • Whatever does not show there will not in Drupal as well.
  • 🇵🇰Pakistan noman_297

    Hi @nk_ Thanks for getting back, I have synched an event on Drupal it works fine later we need to add some custom fields to the Drupal and Swapcard. I have mapped that Swapcard custom field ID with drupal fields on Swapcard speakers content type. When I run the sync key values for that fields did generate on drupal site but when I checked any node (swapcard speakers) no values is selected though we have that values available on swapcard speakers.

    Second Issue is when I change existing speaker on swapcard and run sync that speaker is also not updating on drupal side, if I add second speaker to the same session it comes but the existing speaker attached to the sessions is no updating this is a very unique and serious case. Though when I checked the payload on postman the data in response comes as updated but in Drupal its not functioning the same.

    I have attached the screenshots here. if more info is required I will share that as well. I am really stuck here.

    Help will be highly appreciated. Thanks

  • 🇳🇱Netherlands nk_
Production build 0.71.5 2024