Hyperledger composer playground error on IBM Blockchain Platform

I am trying to learn about hyperledger composer by going through the tutorials. Everything works on the playground so I followed the tutorial and created a cluster with bluemix.

I was testing the hosted playground and I notice all transactions, even if deployed with a sample network like trade-network, returns error saying the asset or participant does not exist

Error: Object with ID 'tradingSymbol:ABC' in collection with ID 'Asset:org.acme.trading.Commodity' does not exist

Any advice on troubleshooting the above error?

2 answers

  • answered 2017-11-13 08:21 Dan Selman

    The most likely explanation is that you don't need the tradingSymbol: prefix and that your asset ID is just ABC.

  • answered 2017-11-13 10:57 Santiago de Diego

    Be aware that Composer Playground use, in your case, tradingSymbol:ABC as the ID, so when you try to retrieve an object you must consider the ID like tradingSymbol:ABC.

    If you want to use the ID ABC you must erase tradingSymbol:ABC when you create the object using the playground and write just ABC. I know it is a little bit tricky.