Skip to main content

Hi everyone. 

 

I'm having an issue checking out carts using the 'checkout' method on CpqAppHandler on  Vlocity  CMT version 900.644 . 

 

To be clear, the error happens in any king of the CpqAppHandler 'checkout' method execution (Omniscripts, Integration Procedures, etc) , but to be able to provide example I'll share the execution output of this Anonymous execution: 

 

Map<String, Object> params = new Map<String,Object>();params.put('cartId', '801Ha00000vHCVOIA4');params.put('ContextId', '801Ha00000vHCVOIA4');Map<String,Object> output = new Map<String,Object>();Map<String,Object> options =  new Map<String,Object>();Map<String, Object> cpqConfigurationSettings = new Map<String,Object>(); cpqConfigurationSettings.put('EnableCoreLogs', true);params.put('cpqConfigurationSettings', cpqConfigurationSettings);vlocity_cmt.CpqAppHandler handler = new vlocity_cmt.CpqAppHandler();handler.invokeMethod('checkout', params, output, options);System.debug(JSON.serialize(params));System.debug(JSON.serialize(output));System.debug(JSON.serialize(options));

 

The execution puts this content on `output`:

{  "messages": [    {      "message": "Illegal assignment from String to Date",      "messageId": "INVOKE-500",      "code": "INVOKE-500",      "severity": "ERROR"    }  ],  "totalSize": 0}

 

This error is preceded by this SOQL Execution, but I could not find anything related to it. 

 

16:56:26.442 (6442719116)|VARIABLE_SCOPE_BEGIN|[5]|this|vlocity_cmt.CpqGetSObjectService|true|false16:56:26.442 (6442783560)|VARIABLE_ASSIGNMENT|[5]|this|{}|0x29112d2d16:56:26.442 (6456785749)|SOQL_EXECUTE_BEGIN|[104]|Aggregations:0|SELECT Id, vlocity_cmt__ReferenceNumber__c FROM vlocity_cmt__ContractVersionDiscount__c WHERE vlocity_cmt__ContractVersionId__c in ('') AND (vlocity_cmt__EffectiveStartDate__c = null OR vlocity_cmt__EffectiveStartDate__c < 2026-06-16T19:56:26.623Z) AND (vlocity_cmt__EffectiveEndDate__c = null OR vlocity_cmt__EffectiveEndDate__c > 2026-06-16T19:56:26.623Z) ORDER BY LastModifiedDate ASC NULLS FIRST 16:56:26.442 (6461966408)|SOQL_EXECUTE_EXPLAIN|[104]|Index on ApexExecutionOverlayAction : [ScopeId], cardinality: 0, sobjectCardinality: 1, relativeCost 016:56:26.442 (6461979879)|SOQL_EXECUTE_END|[104]|Rows:016:56:26.470 (6470312090)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1216:56:26.470 (6470395297)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:816:56:26.470 (6470410031)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:816:56:26.470 (6470460485)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1616:56:26.470 (6470468450)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1616:56:26.470 (6470557616)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1916:56:26.470 (6470565148)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:32 

 

I could not find any assignment from String to Date on the Field Mapper for OrderItem to Asset definition. Or anywhere else. 

 

I would like some guidance on how can I solve this issue. If you need more information about something related to the environment in use, let me know. 

 

Thank you for your attention and time. 

 

 

 

#Vlocity

0/9000