Skip to content

Auto-Generated Count field unstable during TSC datasource publish #1625

@vizyourdata

Description

@vizyourdata

Describe the bug
Tableau's autogenerated count field is not recognized when refreshing a hyper and publishing it to Cloud.

Publishing with TSC causes that field to be regenerated when opening a web edit workbook or a local workbook that is connected to the published datasource. The original count field becomes an invalid field and any calc field referencing it breaks.

I think I've narrowed it down to the publish portion of the script.

Versions

  • Tableau Cloud
  • Python version: 3.11.8
  • TSC library version: 0.37

To Reproduce

  1. Create a new simple hyper and publish it. I published it from Desktop to Cloud.
  2. Set the workbook to use as datasource during publish.
  3. Connect another workbook to the local hyper file.
  4. Run refresh and publish
  5. Only the workbooks that are connected to the published version of the datasource see the error. This includes a web edit version and the local desktop version of the workbook.
  6. On recommendation, I used TSC.update_hyper_data action:replace and this corrected the error in Cloud and local workbooks.
  7. running the original script on the original broken then fixed datasource again changes the outcome a little bit. Calculated fields that reference the Extract(count) field break, the invalid version of the field is not present, but a working version is and the Number of Records field appears.

Results

The original count field becomes an invalid field and any calc field referencing it breaks.

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

txt of SAFE Version.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions