Not able to promote

HI Expert,
while promoting document am below getting error :

DfException:: THREAD: WebContainer : 3; MSG: [DM_POLICY_E_ERROR_1600]error: "The User Actions Proc failed. Details:[DM_API_E_NOID]error: "No id given for command close."

[DM_API_E_NOID]error: "No id given for command next."

Comments

  • wetcatwetcat EM
    edited January 31

    Hi,
    How do you promote? Webtop/DA?
    Are there any custom actions? From error message, it looks like you don't pass Collection ID to next,c,<collection_identifier>, same for close,c,<collection_identifier>.

    MEOW

  • i promote through webtop and yes custom action is there.
    Can you please let me know how to pass these arguments ?

  • wetcatwetcat EM
    edited January 31

    It depends on your custom actions. For example, if you run DQL in it, in result you will get collection ID, so you need pass that collection to next API command to get DQL results, and pass it to close command to close collection.

    MEOW

  • I am so sorry to ask you again but not able to find DQL to find collection ID and how tp pass that collect to next API command, cna you please tell me DQL and then how to pass that collection ?

    It will really helpful for me.

  • Please paste your code.

  • Please paste your code.

  • It depends on your customization
    Here is simple dmbasic script from some old documentation:
    This example:
    • Queries the repository
    • Loops through the resulting collection and prints each respondent
    • Closes the query collection

        query_id = \
        dmAPIGet("query," session ",select r_object_id from dm_document)
        if (query_id == NULL) {
        err_msg = dmAPIGet("getmessage," session)
        print "Error querying the repository"
        print err_msg
        exit
        }
        resp_cntr = 0
        while( dmAPIExec("next," session "," query_id) > 0 ) {
        obj_id = dmAPIGet("get," session "," query_id ",r_object_id")
        if (obj_id == NULL) {
        err_msg = dmAPIGet("getmessage," session)
        print "Error retrieving object ID from the query collection"
        print err_msg
        exit
        }
        print ++resp_cntr " : " obj_id
        }
        err_flag = dmAPIExec("close," session "," query_id)
        if (err_flag == 0) {
        err_msg = dmAPIGet("getmessage," session)
        print "Error closing the query collection"
        print err_msg
        exit
        }
    

    MEOW

  • Experts,

    Somehow we are able to resolve collection issue but still we are getting error : [DM_POLICY_E_ERROR_1600]error: "The User Actions Proc failed. Details:myCFO: Could not resolve ACL for the document.

    I have checked with permission and all acl are perfect but issue with newly created document only after migration, previously created document i am able to promote but not for new one.

  • How are you setting the ACL (through composer UI or through code)? If through code, you need to set acl_domain (ie acl owner_name) along with acl_name.

Sign In or Register to comment.