0

can not deploy PKG-vsdk-document-sample-components

I am trying to play with SDK samples but having trouble to deploy PKG-vsdk-document-sample-components to the sandbox.

 

The deployment error message:

EXECUTE "RECREATE Doctype vsdk_document__c"
ERROR "[FAILURE] RECREATE Doctype vsdk_document__c"
MESSAGE "Invalid value [supporting_documents__c] specified for attribute [relationship_types] : Invalid relationship type key"
SUMMARY "Error occurred during script execution",

 

The document type can not be deployed.

 

Any advise?

 

Thanks

 

James

5 comments

  • Avatar
    Kevin N

    Hi James,

    Which deploy-vpk package are you loading and what type of Vault are you trying to load the components into?

    You need to only load the VPK that matches your Vault type - e.g., if you have a Quality vault, you should only load the "\deploy-vpk\components\Quality_vsdk-document-sample-components\Quality_vsdk-document-sample-components.vpk" file.

     

    Thanks,
    Kevin

  • Avatar
    Kevin N

    Hi James, 

    I actually believe I was able to identify the issue with the Quality component VPK.

    Can you download the latest project from https://github.com/veeva/vsdk-document-sample and try the new "Quality_vsdk-document-sample-components.vpk"? The relationship type is now properly set to "supporting_documents__vs".

     

    Thanks,
    Kevin

  • Avatar
    James Huang

    Thanks Kevin. I actually downloaded the pack you just updated and it works perfectly. As you pointed out, "supporting_documents__vs" is the corrected name.

     

    Thanks again for the quick response.

     

    James

  • Avatar
    James Huang

    Kevin,

    I am traing to run the veeva/vsdk-document-sample, Create Related Records custom action, but it dosn't allow me to complete the operation if I run Debugger. I got the following error message.

    'Server having problems

    Duplicate key com.veeva.vault.custom.actions.CreateRecordsDocumentEntryAction"

    However, I was able to run other ChangeFieldsDocumentUserAction task with debugger without any problem.

     

    Please help

     

    James

  • Avatar
    James Huang

    Kevin,

    I am traing to run the veeva/vsdk-document-sample, Create Related Records custom action, but it dosn't allow me to complete the operation if I run Debugger. I got the following error message.

    'Server having problems

    Duplicate key com.veeva.vault.custom.actions.CreateRecordsDocumentEntryAction"

    However, I was able to run other ChangeFieldsDocumentUserAction task with debugger without any problem.

     

    Please help

     

    James

Please sign in to leave a comment.