# Navigator not showing contracts

**URL:** <https://forum.canton.network/t/navigator-not-showing-contracts/5284>\
**Category:** App Development\
**Created:** [September 25, 2022, 7:55pm UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284 "2022-09-25T19:55:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Dwivedi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/neelam_dwivedi/32/4719_2.png) [@Neelam\_Dwivedi](https://forum.canton.network/u/Neelam_Dwivedi)\
**Post date:** [September 25, 2022, 7:55pm UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284/1 "2022-09-25T19:55:44Z")

</div>

I have a template and a script that creates and updates a contract. When running the script, the contract creation and modification displays correctly. But Navigator does not show the contracts. It only shows the template.

I followed the two suggestions [elsewhere](https://discuss.daml.com/t/active-contracts-is-not-showing-when-i-do-daml-start/2835) in this forum for a similar issue: using PartyIdHint and removing ‘parties’ from daml.yaml. But that doesn’t help. Any suggestions will be very helpful!

Here is my code:

**daml.yaml**

```haskell
sdk-version: 2.3.2
name: college
source: daml
init-script: Main:setup
version: 0.0.1
dependencies:
  - daml-prim
  - daml-stdlib
  - daml-script
parties:
  - Prof
  - Student

```

**Course.daml**

```haskell
module Course where

template Gradebook 
    with
        professor: Party
        student: Party
        courseId: Text
        score: Int
    where
        signatory professor
        observer student
        
        choice UpdateGrade: ContractId Gradebook
            with
                newCourseId: Text
                newScore: Int
            controller professor
                do
                    newGradeBook <- create Gradebook
                        with
                            professor
                            student
                            courseId = newCourseId
                            score = newScore
                    return (newGradeBook)

```

Main.daml

```haskell
module Main where

import Daml.Script
import Course
import DA.Assert (assertEq)

setup : Script()

setup = script do

  prof <- allocatePartyWithHint "Prof" (PartyIdHint "Prof")
  student <- allocatePartyWithHint "Student" (PartyIdHint "Student")

  gradebookId <- submit prof do
    createCmd Gradebook { professor = prof, student = student, courseId = "101", score = 0}

  gradebookId <- submit prof do
    exerciseCmd gradebookId UpdateGrade { newCourseId = "101", newScore = 10}

  Some id <- queryContractId prof gradebookId
  assertEq id.score 10

```

---

<div class="post-metadata">

**Author:** ![Mate\_Varga](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mate_varga/32/2308_2.png) [@Mate\_Varga](https://forum.canton.network/u/Mate_Varga)\
**Post date:** [September 25, 2022, 8:05pm UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284/2 "2022-09-25T20:05:40Z")

</div>

Could you please try to start the navigator with the user management disabled?  
[https://docs.daml.com/tools/navigator/index.html#logging-in-as-a-party](https://docs.daml.com/tools/navigator/index.html#logging-in-as-a-party)

---

<div class="post-metadata">

**Author:** ![Neelam\_Dwivedi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/neelam_dwivedi/32/4719_2.png) [@Neelam\_Dwivedi](https://forum.canton.network/u/Neelam_Dwivedi)\
**Post date:** [September 25, 2022, 11:53pm UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284/3 "2022-09-25T23:53:21Z")

</div>

I modified daml.yaml with

```haskell
navigator-options:
  - --feature-user-management=false

```

followed by

```haskell
daml start

```

but that doesn’t help.

---

<div class="post-metadata">

**Author:** ![Mate\_Varga](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/mate_varga/32/2308_2.png) [@Mate\_Varga](https://forum.canton.network/u/Mate_Varga)\
**Post date:** [September 26, 2022, 4:12am UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284/4 "2022-09-26T04:12:21Z")

</div>

Could you also remove the parties section as well? When you start the navigator you should see long party IDs like ::, otherwise your navigator did not query the allocated parties properly.

---

<div class="post-metadata">

**Author:** ![Neelam\_Dwivedi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/neelam_dwivedi/32/4719_2.png) [@Neelam\_Dwivedi](https://forum.canton.network/u/Neelam_Dwivedi)\
**Post date:** [September 26, 2022, 10:45am UTC](https://forum.canton.network/t/navigator-not-showing-contracts/5284/5 "2022-09-26T10:45:34Z")

</div>

Thanks @Mate_Varga, yes that worked. Now I can see the contracts.
