QSDA Pro flags essential script-only fields as “Unused”

Hi all,

QSDA Pro’s Resource Flags mark many fields as “Unused” that are actually critical in the load script (join keys, temp fields, mapping tables, etc.). Dropping them would break the data model.

This makes the “Unused fields” list very noisy, and we can’t trust it without manually checking every flagged field.

Is this expected behavior? Any good workarounds you use?

  • Ignore the flag for script-only fields?

  • Naming conventions + filters in QSDA?

  • Custom rules to suppress false positives?

  • Another tool/process entirely?

Thanks for any tips!

QSDA can only analyze what fields are required in the front-end. It does not analyze what fields are required in the script logic.

The recommended way to drop the unused fields is with a DROP FIELDS statement at the end of the script. At that point, the script is effectively complete and you don’t need to analyze what is required in the script.

The QSDA Script Generator Tool (Tools > Script Generator) can generate a complete Drop Fields statement suitable for pasting in your script.

You may also mark fields or entire tables as “always in use” in Admin > Project Config > Collector Options.

See this help entry for additional notes about unused field analysis.

In summary, if you drop the fields at the end of your script you should not have to worry about impact on your script. If you want to not load the fields at all, then you will have to do some manual analysis to determine when to exclude the field.

You can mix the drop fields / exclude from load techniques if there is some benefit to do so.

Demo of the Script Generator > Drop Fields can be seen at 8:00 in this video https://www.youtube.com/watch?v=yV0-3m2p3SQ

And a walkthrough here Reducing Qlik App Resources with QSDA | Qlikview Cookbook

-Rob

Hi Rob, thanks for the reply.

The problem is that some fields are PKs and if removed/dropped, the star schema data model would break.

What version of QSDA are you using? Key fields should always be considered by QSDA as in-use. If not, please open a support case with Motio support at https://support.motio.com/ and supply the support files and an export of the collection with the ticket.

-Rob