Code Monkey home page Code Monkey logo

vlocityinc / vlocity_build Goto Github PK

View Code? Open in Web Editor NEW
110.0 27.0 92.0 24.99 MB

Vlocity Build is a command line tool to export and deploy Vlocity DataPacks in a source control friendly format through a YAML Manifest describing your project. Its primary goal is to enable Continuous Integration for Vlocity Metadata through source control. It is written as a Node.js module.

License: MIT License

JavaScript 97.97% Apex 1.25% HTML 0.02% Dockerfile 0.33% Shell 0.40% SCSS 0.03%

vlocity_build's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vlocity_build's Issues

wrong order of Custom Actions Params on Cards

Hi,
I noticed a strange bug after deploying with Grunt. I noticed that the order of parameters on custom actions inside the Cards is not kept the same, have you noticed this before ? Meanwhile I added the params as part of the URL and solved the problem , but would like to know if this is a known issue ?

Login with Access Token

Is there a possibility to login without password + security token and use the access token?
As this token we receive from Salesforce DX, security token we don't receive from Salesforce DX.

Deployment Error

I am using the build to deploy some omniscripts chained together, and I keep getting the error shown in the image below, what could be the cause of this error?
screen shot 2017-12-01 at 15 24 11

Cannot sync Omniscript Custom HTML

Hi,

I'm facing this behaviour when trying to sync the Custom HTML of an Omniscript:

  • When i perform a packExport the custom HTML is downloaded correctly but if I try to repeat the operation the changes are not downloaded unless I delete the local copy of the custom HTML

  • The pack Deploy does not work on the custom HTML

Thanks
Daniele

Failing on export as part of Bamboo build

TypeError: Object.values is not a function

06-Apr-2018 10:26:36 | at DataPacksUtils.printJobStatus (D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\lib\datapacksutils.js:790:29)
06-Apr-2018 10:26:36 | at Object.callback (D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\lib\datapacksjob.js:954:41)
06-Apr-2018 10:26:36 | at D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\node_modules\async\dist\async.js:2244:31
06-Apr-2018 10:26:36 | at D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\node_modules\async\dist\async.js:906:16
06-Apr-2018 10:26:36 | at D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\lib\datapacks.js:253:36
06-Apr-2018 10:26:36 | at D:\BambooHome-2\xml-data\build-dir\CRM-DITSV-VDI2S\vlocity_build\node_modules\jsforce\lib\promise.js:72:9
06-Apr-2018 10:26:36 | at _combinedTickCallback (internal/process/next_tick.js:73:7)
06-Apr-2018 10:26:36 | at process._tickCallback (internal/process/next_tick.js:104:9)

running on Node.js 8.0.0

no issues on local machine , only on Bamboo

Exported .json files missing fields wanted for 'packGetDiffsAndDeploy'

I have exported (using the build tool 'packExport') out all Vlocity Actions into a new Project Path folder. Then attempting to "Upsert" using the packGetDiffsAndDeploy command into my Target Org. All of the actions already exist in my Target Org, but are currently all active. In the Source Org, however, only 54 of my 106 Actions are active. When it runs the packGetDiffsAndDeploy command it doesn't update any records.

After reviewing the exported .json files for one of the actions in question, i do not see anything that has the "vlocity_cmt__IsActive__c" value. How can I get this field added to the export, so that it will update my records correctly?

Attached is my Job File used to export all the Vlocity Actions.

ACTIONS.txt

Deployment errors on rules and entityFilters

Im having trouble moving data to a new sandbox:

ContextDimension/e45f9d65-fa3d-ecbe-77aa-8325a82c35db -- Channel -- Error Message -- Data Type: bad value for restricted picklist field: Text

VlocityStateModel/Contract State Model -- Contract State Model -- Error Message -- Only one state model can exist with the same Type Field Name and Type Field Value for Contract. State Model name has to be unique.

Rule/All Relationships Rule -- All Relationships Rule -- Error Message -- No match found for vlocity_cmt__RuleAction__c.vlocity_cmt__ProductRelationshipId__c - vlocity_cmt__GlobalKey__c=20ea89ed-83bb-2e89-3c7c-5987baa3745b (vlocity_cmt)

EntityFilter/Channel==Web -- Channel==Web -- Error Message -- No match found for vlocity_cmt__EntityFilterCondition__c.vlocity_cmt__ContextDimensionId__c - vlocity_cmt__GlobalKey__c=e45f9d65-fa3d-ecbe-77aa-8325a82c35db (vlocity_cmt)

EntityFilter/Check_DiscountProduct -- Check_DiscountProduct -- Error Message -- No match found for vlocity_cmt__EntityFilterConditionArgument__c.vlocity_cmt__ContextDimensionId__c - vlocity_cmt__GlobalKey__c=8553e128-2598-4bff-2faa-a14167e6b6f4 (vlocity_cmt)

EntityFilter/Test_TvTplusnRule1 -- Test_TvTplusnRule1 -- Error Message -- No match found for vlocity_cmt__EntityFilterConditionArgument__c.vlocity_cmt__ContextDimensionId__c - vlocity_cmt__GlobalKey__c=8553e128-2598-4bff-2faa-a14167e6b6f4 (vlocity_cmt)

Rule/Channel = Web Rule Set -- Channel = Web Rule Set -- Error Message -- No match found for vlocity_cmt__RuleFilter__c.vlocity_cmt__EntityFilterId__c - vlocity_cmt__GlobalKey__c=59114c9a-2421-2e9d-7601-47a744bc6d36 (vlocity_cmt)

Rule/Check Discount Product Rule Set -- Check Discount Product Rule Set -- Error Message -- No match found for vlocity_cmt__RuleFilter__c.vlocity_cmt__EntityFilterId__c - vlocity_cmt__GlobalKey__c=733fa1c4-69d5-d914-1305-2b0eb3cfb64a (vlocity_cmt)

Rule/Test_TvTplusn -- Test_TvTplusn -- Error Message -- No match found for vlocity_cmt__RuleFilter__c.vlocity_cmt__EntityFilterId__c - vlocity_cmt__GlobalKey__c=de8bf4ae-f3c7-13bf-8f09-79e098a93055 (vlocity_cmt)

Promotion/249cefd8-88f4-6783-be83-b0998e8bd73d -- Góð byrjun for Standard TV -- Error Message -- No match found for vlocity_cmt__RuleAssignment__c.vlocity_cmt__RuleId__c - vlocity_cmt__GlobalKey__c=233015a0-276b-e455-7756-5e8e04c2e90c (vlocity_cmt)

CreateProcess error=193, %1 is not a valid Win32 application while using ant command

When I try to use the command

ant packExport -buildfile c:/Users/Documents/vlocity_build/build.xml -propertyfile c:/Users/Desktop/deployment-toolkit/temp/Item-02755_retrieve.properties

I am getting an error as
c:\Users\Documents\vlocity_build\build.xml:98: The following error occurred while executing this line:
c:\Users\Documents\vlocity_build\build.xml:109: c:\Users\Documents\vlocity_build\build.xml:114: Execute failed: java.io.IOException: Cannot run program "c:\Users\Documents\vlocity_build\bin\run-grunt" (in directory "c:\Users\Documents\vlocity_build"): CreateProcess error=193, %1 is not a valid Win32 application

Can I anyone have any thoughts?

Continuous Integration - product hierarchy flat after deployment

We have continuous integration procedure (build after merge to development branch - according to canonical git flow). After each build product hierarchy is somehow lost. It can be verified in Order - CPQ module (CPQ button clicked from Order) - when you add product to cart only top-level product is added (see attachment).

image

We have to manually run maitenance jobs after each build:
PRODUCT HIERARCHY MAINTENANCE
REFRESH PRICEBOOK
CLEAR MANAGED PLATFORM CACHE
It makes automation impossible to achieve.

Question: what post installation job/code should we execute in order to avoid any amual activities?

CRITICAL ISSUE: Unable to finish deployment because the deployment is failing

 [exec] (node:88228) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ERROR_HTTP_414: <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>
 [exec] (node:88228) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

log.txt

APEX_ERROR : System.LimitException: Apex CPU time limit exceeded

Hi,
we're having problems exporting/importing some (large) Omniscripts because we get "Apex CPU time limit exceeded" error.

Vlocity Support told us that using this script would have solved the problem. (quote: "There is no known limit to the size of the OS that can be moved using the build tool. Its meant to be able to move large amounts of data from one org to the other." ).

Unfortunately, we get the same error we had in UI export/import, as you can see in the picture below.

Is there a way to solve this?

I'm currently using Vlocity CMT 11.43.1.

Best regards,
Manuele.

errore vlocity

Deployment of Vlocity Objects and Vlocity Layouts

hi,
I am facing the following issues when deploying Vlocity Objects and Layouts

Deploy Error >>  ObjectLayout/79ab53b4-f2fa-82e3-ed1a-d8e5156c4304 --- Layout-a1g0E0000008qcdQAA --- No match found for vlocity_cmt__ObjectLayout__c.vlocity_cmt__SubclassId__c - vlocity_cmt__GlobalKey__c=896b2516-5d54-0075-35b6-9ec9f5780b05 (vlocity_cmt)

Deploy Error >>  ObjectClass/993399ed-eeaf-1174-463a-3ded233a073e --- DEVICE <<PS>> --- No match found for vlocity_cmt__ObjectClass__c.vlocity_cmt__ParentObjectClassId__c - vlocity_cmt__GlobalKey__c=896b2516-5d54-0075-35b6-9ec9f5780b05 (vlocity_cmt)

Custom Settings - update into existing.

Using VBT to load/ synchronise the custom settings
YAML

  • VlocityDataPackType: SObject
    query: Select Id from vlocity_cmt__GeneralSettings__c

ERROR:
SObject_GeneralSettings/CardActivationJob -- Datapack >> CardActivationJob -- Error Message -- There is already an item in this list with the name CardActivationJob: Name
Account>Quote -- Datapack >> Account>Quote -- Error Message -- There is already an item in this list with the name Account>Quote: Name

Tested against

  • SObject_PDFDocumentTemplate
  • SObject_GeneralSettings
  • SObject_CustomObjectMap/

Other custom settings worked, such as

  • CQPConfigurationSetup
  • ContractManagementConfigurationSetup

Unhandled promise rejection when trying to deploy

Hi ,
I am experiencing the following issues when trying to deploy OmniScript and Layouts =>

(node:27060) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ERROR_HTTP_414:

Bad Message 414

reason: URI Too Long

Getting error while performing Promition migrations via the vlocityBuildTool are failing

Getting error while performing Promition migrations via the vlocityBuildTool are failing

SASS Compilation Error VlocityUITemplate/cpq-cart-item-child-products1 Failed to compile SCSS: example_vlocity_build/VlocityUITemplate/cpq-cart-item-child-products1/cpq-cart-item-child-products1.scss SASS compilation failed, see error message for details: Error: no mixin named cpqProductChildLevelStyling

   Backtrace:
    /stdin:234
    on line 234 of /stdin
@include cpqProductChildLevelStyling();

-------------^

ContextDimension/714e3128-7844-3115-0bfd-abcca344a640 -- TvTplusnFunction -- Error Message -- No match found for vlocity_cmt__ContextMappingArgument__c.vlocity_cmt__ContextMappingId__c - uniqueId=VlocityRecordSourceKey:a8c7E000001xNHgQAM (vlocity_cmt)
VlocityStateModel/Contract State Model -- Contract State Model -- Error Message -- Only one state model can exist with the same Type Field Name and Type Field Value for Contract. State Model name has to be unique.

Product2/2811d309-e10c-b91e-477a-a1038cc3474f -- Sjónvarpsþjónusta Símans -- Error Message -- No match found for vlocity_cmt__OverrideDefinition__c.vlocity_cmt__OverridingAttributeAssignmentId__c - vlocity_cmt__AttributeId__r.vlocity_cmt__Code__c=SM-ATTR-TP AND vlocity_cmt__IsOverride__c=true AND vlocity_cmt__ObjectId__c=01t9E000002armmQAA (vlocity_cmt)
Product2/74943bf2-25c5-c049-988a-9c924fd41386 -- Endalaust internet -- Error Message -- Duplicate child product cannot be selected
Product2/adac7afa-f741-80dd-9a69-f8a5aa61eb56 -- Grunnáskrift Heildsölusjónvarps -- Error Message -- Product you are trying to add is missing a Pricebook Entry in pricebook >>B2C Price Book<< Please add product to pricebook and tryagain.
Product2/f8b0bc37-b6eb-49c0-2b4e-76d6870cc383 -- Endalausar mínútur -- Error Message -- Duplicate child product cannot be selected
Promotion/0db795ae-59f9-6e8e-6334-7cbf21e67d23 -- XTrial Sjónvarp Símans for 1 Month -- Error Message -- No match found for vlocity_cmt__OverrideDefinition__c.vlocity_cmt__OverridingAttributeAssignmentId__c - vlocity_cmt__AttributeId__r.vlocity_cmt__Code__c=SM-ATTR-TPV AND vlocity_cmt__IsOverride__c=true AND vlocity_cmt__ObjectId__c=01t9E000002armrQAA (vlocity_cmt)
Rule/All Relationships Rule -- All Relationships Rule -- Error Message -- No match found for vlocity_cmt__RuleAction__c.vlocity_cmt__ProductRelationshipId__c - vlocity_cmt__GlobalKey__c=20ea89ed-83bb-2e89-3c7c-5987baa3745b (vlocity_cmt)
Promotion/249cefd8-88f4-6783-be83-b0998e8bd73d -- Góð byrjun for Standard TV -- Error Message -- No match found for vlocity_cmt__OverrideDefinition__c.vlocity_cmt__OverridingAttributeAssignmentId__c - vlocity_cmt__AttributeId__r.vlocity_cmt__Code__c=SM-ATTR-TPV AND

Would it be possible to standardise output?

I have seen you implemented errors are printed to standard error output now which I really appreciate.

Do you think it would be also possible to standardise output for all actions? E.g. packExport, packDeploy? Now the output is very nice for a human but not very suitable for further machine post processing. It would be great if there was a parameter which would change the output to e.g. json, CSV format.

New Remote Actions will not deploy to existing OmniScript

I have a new remote action that I have created in our develop sandbox and when I export and deploy to our devInt sandbox, that remote action is not getting created. I have attached screenshots of the Develop and DevInt OmniScript, along with my job YAML file and source file showing the export did pull the remote action.
job yaml
command
sourcefile
devint
dev

Problem with printing job status on Ubuntu 16.04

When vlocity build is called from jenkins server (in our case Ubuntu 16.04) we are getting following error:
[exec] �[31m Uncaught Job Error >>�[0m {
[exec] } �[0m
[exec] (node:2004) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Object.values is not a function
[exec] �[0m Vlocity Build v1.4.2 �[0m
[exec] �[36m Org >>�[0m <.....user that does deployment ....> �[0m
[exec] �[36m Running Pre Job Apex >>�[0m ResetDataPackMappings.cls �[0m
[exec] �[36m Loading Apex >>�[0m /usr/lib/node_modules/vlocity/apex/ResetDataPackMappings.cls �[0m
[exec] �[31m TypeError: Object.values is not a function
[exec] at DataPacksUtils.printJobStatus (/usr/lib/node_modules/vlocity/lib/datapacksutils.js:807:29)
[exec] at DataPacksJob.deployJob (/usr/lib/node_modules/vlocity/lib/datapacksjob.js:1276:37)
[exec] at DataPacksJob.doRunJob (/usr/lib/node_modules/vlocity/lib/datapacksjob.js:334:14)
[exec] at /usr/lib/node_modules/vlocity/lib/datapacksjob.js:271:22
[exec] at /usr/lib/node_modules/vlocity/lib/datapacksjob.js:269:16
[exec] at process._tickCallback (internal/process/next_tick.js:109:7) �[0m

It works fine on Windows or Mac.

Any suggestions how to correct the problem?

Attribute Assignment is not deployable

I need to deploy values of each attribute for each Product.

Issue is in fact similar to:
#23
but applies to vlocity_cmt__AttributeAssignment__c object. I cannot force Vlocity build to export values properly.

What am I doing wrong?

My test cases:

  1. with EPC.yaml described in README.md
  • Attribute Assignments are not exported at all
  1. with query:
  • VlocityDataPackType: SObject
    query: Select Id from %vlocity_namespace%__AttributeAssignment__c
    (DataPack type AttributeAssignment is not supported directly)
  • Attribute Assignments are exported but Name is not unique for this object, so one record per Attribute is exported only
  1. with the same query as in test case 2 and storing each Attribute Assignment in separate folder (by Global Key)
    OverrideSettings:
    SObjects:
    vlocity_namespace__AttributeAssignment__c:
    FolderName:
    • vlocity_namespace__GlobalKey__c
  • it creates a looot of folders and files and during deployment following errors are thrown:
    [exec] �[31m Deploy Error >>�[0m SObject_AttributeAssignment/126beba7-8a07-cc49-50ef-09c019194241 -- Datapack >> NEW_productSpecificationType -- Error Message -- vlocity_cmt:Too many SOQL queries: 201 �[0m
    [exec] �[31m Deploy Error >>�[0m SObject_AttributeAssignment/544fe89f-465b-3d34-1bd4-bb6c03f4a920 -- Datapack >> TempAA-ATTRIBUTE-014 -- Error Message -- Apex CPU time limit exceeded �[0m

Export Product Catalog with Vlocity Build - attachments are not exported

I cannot export/deploy images for products with Vlocity Build.

I'm using predefined EPC.yaml job in order to export Product Catalog + query to add Vlocity Attachments:

  • VlocityDataPackType: VlocityAttachment
    query: Select Id from %vlocity_namespace%__VlocityAttachment__c where %vlocity_namespace%__ContentType__c = 'Image'

Attachments are exported but with empty URL:
"%vlocity_namespace%__Url__c": ""

Problem is image URL is stored not in Url (vlocity_cmt__Url__c) field but in fact in URL Long (vlocity_cmt__UrlLong__c) and URL Long field seems to be not exported at all. Any advice how to transfer product images between environments?

Setup on Windows 7

Hi,
I tried to setup the build on windows 7 , but unfortunately there are some steps missing I think,
I had to install windows-build-tools (python, add env variable), but still Im gettting errors trying to run Grunt tasks ... This is done on Node 4.3

`$ grunt #>> Vlocity Build Tools
Loading "browserify.js" tasks...ERROR

Error: Cannot find module 'browser-pack'
Loading "jshint.js" tasks...ERROR
Error: Cannot find module 'entities/maps/legacy.json'
Cannot find module 'handlebars'
Error: Cannot find module 'handlebars'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\ivanoviv\vlocity_build\node_modules\grunt-istanbul\node_modules\istanbul\lib\report\html.js
:7:18)
Error: Cannot find module 'vow-fs'
Loading "sass.js" tasks...ERROR
Error: Cannot find module 'lodash.clonedeep'
Loading "zip.js" tasks...ERROR
Error: Cannot find module 'pako'
Loading "Gruntfile.js" tasks...ERROR
Error: Cannot find module './lib/jsforce'
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.
`

Are there are any setup instructions for Windows ? I tried to run the Ant task as well , but unsuccessfully, maybe an example how to run the ant jobs

packExport is filling by user with Attachments and not deleting them

Hello,

When I run packExport, my user get filled with Attachments like the next one and they are not getting deleted while the script is going forward, causing the environment to run out of space.

{"VlocityPrimarySourceId":null,"VlocityPreviousPageKey":null,"VlocityMultiPackParentKey":null,"VlocityDepthFromPrimary":0,"VlocityDataPackType":"ObjectLayout","VlocityDataPackStatus":"Ready","VlocityDataPackRelationshipType":"Child","VlocityDataPackRecords":[],"VlocityDataPackParents":["4e4e6bfd8dc847e302f1f5e08f4e6dfb","416b4fad72780e0165ef4e38d416ee91"],"VlocityDataPackName":"Id: a1k6C000000C1w8QAC","VlocityDataPackMessage":null,"VlocityDataPackLabel":"ObjectLayout","VlocityDataPackKey":"73d86108b5af946d2b36cf9e35096503","VlocityDataPackIsNotSupported":false,"VlocityDataPackIsIncluded":true,"VlocityDataPackData":{"VlocityDataPackRelationshipType":"Child","VlocityDataPackKey":"73d86108b5af946d2b36cf9e35096503","VlocityDataPackLabel":"ObjectLayout","VlocityDataPackType":"ObjectLayout","Id":"a1k6C000000C1w8QAC"},"VlocityDataPackAllRelationships":{"416b4fad72780e0165ef4e38d416ee91":"Reference by Salesforce Id"},"DataPackAttachmentSize":0,"DataPackAttachmentParentId":null,"DataPackAttachmentId":null,"ActivationStatus":"NA"}

Linux Deploy Issue.

Doing a packDeploy. Here is the output I get while on a linux machine.

Note the: hotfix/deduplicate_lists Branch works on a linux machine.
Doing it on a windows machine also works. (on master)

TypeError: Object.values is not a function
at DataPacksUtils.printJobStatus (/opt/vlocity_build/lib/datapacksutils.js:790:29)
at DataPacksJob.deployJob (/opt/vlocity_build/lib/datapacksjob.js:1223:37)
at DataPacksJob.doRunJob (/opt/vlocity_build/lib/datapacksjob.js:330:14)
at /opt/vlocity_build/lib/datapacksjob.js:267:22
at /opt/vlocity_build/lib/datapacksjob.js:265:16
at process._tickCallback (internal/process/next_tick.js:103:7)
Uncaught Job Error >> {

packGetDiffsAndDeploy

Hi,

First of all thanks for the tool! It makes life easier.
But currently I am not able to properly use the packGetDiffsAndDeploy command. It is not only deploying the objects that I have defined in the Job File, but all components in my repository.
For example: I defined to deploy OmniScripts and it deployed everything in my repository.

Kind Regards,
Bert

Create custom matching keys

How would I create custom matching keys ? I seem to have problem with importing Product2 , due to missing fields, even with manual import/ export.

IPhone 8 (Product2): Field does not exist: vlocity_cmt__EntityFilter__c.vlocity_cmt__GlobalKey__c (vlocity_cmt)

Got bunch of errors when using vlocity build to export Omniscripts

I tried to user Vlocity build to export all the active omniscripts from one org and got lots of errors.

There are mainly two types of errors:

  1. Error: ENOENT: no such file or directory, open 'C:\MyPath\MyOmniscript_English_ParentKeys.json'
  2. JSON Parsing Error >> MyOmniscript_English_ParentKeys.json Cannot read property 'replace' of undefined

If I keep doing the 'packDeploy', all the omniscripts in my target sandbox are missing elements.

Here is the job file:
projectPath: ./deploy_Omniscript
preStepApex:
Deploy:
VlocityUITemplate: DeactivateTemplatesAndLayouts.cls
VlocityUILayout: DeactivateTemplatesAndLayouts.cls
queries:

  • OmniScript

Also, the file mentioned above exists but is almost empty.

Thanks,
Tracy

Installing in Ubuntu

Hi,

I am trying to install the tool in Ubuntu, but I receive the following error after running 'sudo npm install --global https://github.com/vlocityinc/vlocity_build'

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/vlocityinc/vlocity_build.git /home/ubuntu/npm/cache/_cacache/tmp/git-clone-79399704
npm ERR! /home/ubuntu/npm/cache/_cacache/tmp/git-clone-79399704/.git: Permission denied

The git-clone-79399704 folder is not created. I already changed the default cache and installation folder for npm, and there are no permissions currently to enter the folder home/ubuntu/npm/cache/_cacache/tmp/

Is there a workaround?

Kind Regards,
Bert

Error Processing: Invalid conversion from runtime type List<ANY> to Map<String,ANY>

Hi,

Whit this job:

projectPath: output   
queries:
- VlocityDataPackType: OmniScript
  query: Select Id, %vlocity_namespace%__Type__c,  %vlocity_namespace%__SubType__c, %vlocity_namespace%__Language__c from %vlocity_namespace%__OmniScript__c where %vlocity_namespace%__IsActive__c = true

I get the following error:

  Exporting >> OmniScript Tecnico Verifica Apparati Di Rete Italian (a1v0E0000005wuHQAQ)
  Exporting >> OmniScript Tecnico Navigazione Lenta Italian (a1v0E0000005wQFQAY)
  DataPack API Error >> {
    "Message": "Error Processing: Invalid conversion from runtime type List<ANY> to Map<String,ANY>",
    "Status": "Error"
}

Any guess?

Thank you :)

Not throwing error on Build Fail

Hi,

I am using Jenkins Pipeline running a script that uses this Vlocity Build Tool to deploy components to the next environment. When deployment of one or more components fails, it doesn't throw an error. Without throwing an error, it looks in Jenkins like the build succeeded even though there could be errors.

Kind Regards,
Bert

Unable to deploy VlocityUITemplate with @import

Warning: DataPacks Job Failed - Deploy - Item-01982 - Error: SASS compilation failed, see error message for details: Error

[exec] SASS compilation failed, see error message for details: Error:
[exec] on line 2 of /stdin
[exec] >> @import "variables";
[exec] --------^
[exec] >>
[exec]
[exec] Failed to compile SCSS for >> /Users/stepan/Workspace/bin/deployUtils/config/deploymentsVlocity/Item-01982/vlocity//VlocityUITemplate/Test-card--pradeep/Test-card--pradeep.scss

Activation Error >> <Some Omniscript>

I'm still getting the above mentioned error. I think I always get it when an omniscript is already activated. But this shouldn't be considered as an error I think.

SyntaxError: Unexpected end of JSON input

I think this happens when I export an omniscript which contains a DataRaptor and I also export the DataRaptor explicitly in the same run (is it trying to replace the json?).

Activation Error

We are getting the following error during deployment:
Activation Error >> OmniScript/Contract_Create_English Update failed. First exception on row 0 with id a1z0E000000Q53oQAC; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, For the same Type, Sub Type and Language Code, there can only be one active OmniScript record.: []

Do you know what could be the issue?

Permission denied during installation

Hi Adam,
We are currently facing an issue with vlocity_build installation. We are getting an error "/Users/stepanruzicka/.npm/_cacache/tmp/git-clone-a7c28034/.git: Permission denied". Do you know what's happening?
Thanks,
Stepan
screen shot 2018-06-05 at 15 51 39

grunt version 1.0.1

with grunt version 1.0.1 the customized .properties file is not recognized.
`>> Vlocity Build Tools

Could not load properties file from true
No propertyfile selected. Please create a "build.properties" file following
the template provided in template.build.properties. Or specify a
-propertyfile.
Warning: Task "build_myorg.properties" not found.� Use --force to continue.
`
not an issue with grunt 0.4.5 who's defined in package.json source

Is there a timeout on the jobs

I get the Export job hanging up if I query all products , which takes 2 min 30 seconds.
If I wait long enough I get econnreset

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.