Delphix Toolkits (dxToolkit and dxmToolkit)

 View Only
  • 1.  Export Ruleset is not possible with DXMC- giving invalid error

    Posted 10-03-2022 07:00:00 AM
    Hello All, 
    Error displayed while exporting the rule set

    - Configure Engine with the ADMIN user
    - /dxmc ruleset exportrule --engine va0244 --envname SDK_RMCA70G --rulesetname RS_RMCA_1_OF_2_G --format csv --outputfile pankaj.txt --debug

    Error Displayed "Must be an admin user to access this information" but my user is admin.
    Kindly let me know how to export rule set

    LOGS:
    [delphix_os@el9291 dxmc]$ ./dxmc ruleset exportrule --engine va0244 --envname SDK_RMCA70G --rulesetname RS_RMCA_1_OF_2_G --format csv --outputfile pankaj.txt --debug
    Must be an admin user to access this information
    EXCEPTION: Traceback (most recent call last):
    File "dxmc.py", line 22, in <module>
    File "click/core.py", line 829, in __call__
    File "click/core.py", line 782, in main
    File "click/core.py", line 1259, in invoke
    File "click/core.py", line 1259, in invoke
    File "click/core.py", line 1066, in invoke
    File "click/core.py", line 610, in invoke
    File "click/decorators.py", line 73, in new_func
    File "click/core.py", line 610, in invoke
    File "dxm/dxm.py", line 931, in exportrule
    File "dxm/lib/DxRuleset/rule_worker.py", line 575, in ruleset_export
    File "dxm/lib/DxRuleset/rule_worker.py", line 366, in ruleset_worker
    File "dxm/lib/DxRuleset/rule_worker.py", line 676, in do_export
    File "dxm/lib/DxColumn/column_worker.py", line 435, in column_export
    File "dxm/lib/DxColumn/column_worker.py", line 776, in column_worker
    File "dxm/lib/DxAlgorithm/DxAlgorithmList.py", line 49, in __init__
    File "dxm/lib/DxAlgorithm/DxAlgorithmList.py", line 69, in LoadAlgorithms
    File "dxm/lib/DxSync/DxSyncList.py", line 145, in get_all_algorithms
    KeyError: 'ALGORITHM'

    ------------------------------
    Pankaj Asegaonkar
    MASKING SPECIALIST
    Infosys
    ------------------------------


  • 2.  RE: Export Ruleset is not possible with DXMC- giving invalid error

    Posted 10-03-2022 11:59:00 AM

    Hi Pankaj,
    Sorry to hear you are running into an issue.
    Would you please rerun using the --debug argument (I see that you did that above), but would you then add the dxm.log to here?​ It will help with troubleshooting.

    Thanks,

    Michael



    ------------------------------
    Michael Torok
    Community Mgmt & Experience, Sr. Director
    Delphix
    ------------------------------



  • 3.  RE: Export Ruleset is not possible with DXMC- giving invalid error

    Posted 10-04-2022 04:47:00 AM
    As always in API the user needs to own the ADMIN option, same applies to credentials used in DXM as DXM is based on the API.
    Several areas of information are not available for regular users.
    The log from API even tells this ..
    BR .. Tino

    ------------------------------
    Tino Pironti
    Masking SME
    Technical Manager
    Delphix
    ------------------------------



  • 4.  RE: Export Ruleset is not possible with DXMC- giving invalid error

    Posted 10-04-2022 04:57:00 AM
    My user is ADMIN user ..this is not user issue 
    Kindly try to reproduce the issue with given steps