Skip to content

bug: createsiteusers/deletesiteusers line counts and output format incorrect #431

Description

@jacalata

Summary

createsiteusers and deletesiteusers show incorrect line counts and inconsistent output format, discovered during live server output comparison testing (2026-07).


createsiteusers — "Lines skipped" shows error count, not skipped count; output inconsistent with tabcmd 1

Current output (error case):

Lines processed: 1
Lines skipped: 1
Number of users added: 0
Error details:
['ServerResponseError']

Expected (tabcmd 1):

===== Lines processed: 1
Lines skipped: 0
Number of users added: 1
Number of errors: 0

Lines skipped is being populated with number_of_errors instead of a genuine skip count. There is no separate "Number of errors" line. The error_list is logged as a raw Python list rather than formatted per-line.

Location: tabcmd/commands/user/create_site_users.py — summary block at the end of run_command.


deletesiteusers — "Lines processed" shows 0 even when a user was attempted

Current output:

Lines processed: 0


    404: Item not found
        Item not found: [Users] anyoung@salesforce.com
Lines processed: 0
Number of errors: 1
Error details:

Issues:

  • Lines processed: 0 even though 1 user was attempted
  • "Lines processed" appears twice
  • Empty "Error details:" section despite an error being shown above it
  • Blank lines and indented error text mixed into the summary block

Location: tabcmd/commands/user/delete_site_users_command.py


Relationship to #429

Issue #429 item 4 fixes the createsiteusers error message format (str(e) instead of e.__class__.__name__). The counting and structural output issues are tracked here separately.

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