My Oracle Support Banner

GetHistoryForKey() Returns Empty Result If Called Cross-Channel In OBPCS v 18.3.3 (Doc ID 2456504.1)

Last updated on APRIL 22, 2019

Applies to:

Blockchain Platform Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

This knowledge article reflects updated product names. Oracle Blockchain Platform Cloud Service (OBPCS) was formerly known as Autonomous Blockchain Cloud Service (ABCS). Please refer to "Name Change for PaaS services during Jan 2019 " for the full list of recently renamed PaaS services.

Chaincode is using invokechaincode() shim method to query ledger cross-channel.

If chaincode executed to query cross-channel using InvokeChaincode() with GetHistoryForKey() shim method passed as a function argument, then it does not query cross-channel.

With invokechaincode() response returned is empty, if query using a chaincode on different channel. Expected value is returned if both chaincodes are on same channel.

Below is the Code snippet and REST API results.

 

Code snippet:

 

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.