According to Carita Parahyangan (a book from later period which mainly tells the history of Sunda Kingdom), Sanjaya was instead the son of King Sanna and Sannaha. This relationship of King Sanna and Sanjaya was not provided in the Canggal inscription. It also mentions that King Sanna was defeated by his cousin, King Purbasora of Galuh, and so, he had to retreat to Mount Merapi. Later, Sanjaya reclaimed Sanna's kingdom and ruled West Java, Central Java, East Java, and Bali. He was also involved in battle with Malayu and Keling (against their king Sang Srivijaya).