Assertion "Valid Palette object" failed at line 447 of file "..\symwin\palette.c"

Last Published: April 25, 2020

Error Message

This error occurs when using the request Palette.MakeFromFile:

Assertion "ValidPalette object" failed at line 447 of file "..\symwin\palette.c"


The specified ODB file does not have a palette as the first object in the file, which is required by the Palette.MakeFromFile request.

Solution or Workaround

  1. Open a New Script window.
  2. Copy and paste this code into script window.

    '-- This sample Avenue code demonstrates how to use the
    '-- Palette.MakeFromFile request with ODB files that have
    '-- palettes as the first object.

    newFileName ="*.avp","ArcView Palette Files (*.avp)","")
    if(newFileName = nil) then
    return nil

    testodb =
    firstobject = testodb.get(0)
    if( then
    newPalette = Palette.MakeFromFile(newFileName)

  3. Compile and run script.

Article ID:000002510

  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options