title: Error: Object with ID 'undefined' in collection with ID 'Participant:xxxt' does not exist
body: <p>I executed these code on playground on hyperledger website and the error is shown here:Error: Object with ID 'undefined' in collection with ID 'Participant:xxxt' does not exist.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/**
   * Track the trade of a commodity from one trader to another
   * @param {org.fordham.education.ModifyTranscript} modify - the trade to be processed
   * @transaction
   */
  
  async function modifyTranscript(modify){
      const Assetregistry=await getAssetRegistry('org.fordham.education.Transcript');
      // const participantRegistryC = await getParticipantRegistry('org.fordham.education.Company');
      // const participantRegistrySC = await getParticipantRegistry('org.fordham.education.School'); // eslint-disable-line no-undef
      const factory=getFactory();
      const newasset=factory.newResource('org.fordham.education','Transcript',modify.mId);
      //modify aspects
      newasset.gpa=modify.gpa;
      newasset.remarks=modify.remarks;
      newasset.studentName=modify.studentName;
      newasset.studentId=modify.studentId;
      newasset.GraduationDate=modify.GraduationDate;
      newasset.issueDate=modify.issueDate;
      //participants
      const SchoolRef=factory.newRelationship('org.fordham.education','School',getCurrentParticipant().getIdentifier());//add school
      newasset.school=SchoolRef; 
     const participantRegistryS = await getParticipantRegistry('org.fordham.education.Student');//get student participant
      const toStudent = await participantRegistryS.get(modify.student);
      const StudentRef=factory.newRelationship('org.fordham.education','Student',toStudent.getIdentifier());
      newasset.student=StudentRef; 
     //const CompanyRef=factory.newRelationship('org.fordham.education','Company',getCurrentParticipant().getIdentifier());
      //newasset.viewedBy=CompanyRef; 
  
    await Assetregistry.add(newasset);
    
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/*
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   * http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  /**
   * Definition of a Bond, based on the FpML schema:
   * http://www.fpml.org/spec/fpml-5-3-2-wd-2/html/reporting/schemaDocumentation/schemas/fpml-asset-5-3_xsd/elements/bond.html
   *
   */
  namespace org.fordham.education
  
  participant School identified by Schoolid {
    o String Schoolid
    o String name
    o String level //undergraduate or graduate or college 
  }
  
  participant Company identified by Companyid {
    o String Companyid
    o String name
    o String identity //company type finance/consultant/tech can use enum
  }
  
  participant Student identified by sId{
    o String sId
    o String studentName
    o String major
    o String nationality
    o String gender
    o String classOfYear
  }
  
  
  asset Transcript identified by tId{
    o String tId
    o Double gpa default =0.0
    o String remarks 
    o String studentName
    o String studentId
    o DateTime GraduationDate
    o DateTime issueDate
    --&gt; School school
    --&gt; Student student
    --&gt; Company viewedBy optional
  }
    
  transaction ModifyTranscript{
    --&gt; School school 
    o String mId //tid is the identifier in the asset, we need to in clude this in the transaction 
    o Double gpa default =0.0
    o String remarks 
    o String studentName
    o String studentId
    o DateTime GraduationDate
    o DateTime issueDate
  }
  
  transaction ModifyByStudent{
    //student add the company to the array
    o String addCompany
    o String removeCompany
    --&gt; Student Student
    --&gt; Company newViewBy optional
  }
  
  
  
  
  //logic file todo list
  // get assetRegistry
  //getFactory
  //newResource(namespace org.fordham.education,TranscriptViewBy,tVid)
  //
  //.status=.status
  //.ReviewedCompany=.ReviewedCompany
  //.add(TranscriptViewBy)  add asset
  //</code></pre>
  </div>
  </div>
  </p>