ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

CheckProduct

  • Summary
  • Syntax
  • Code sample

Summary

Checks to see if the requested license is available.

Syntax

CheckProduct (product)
ParameterExplanationData Type
product

Product code for the product being checked.

  • arcview —ArcGIS Desktop Basic product code
  • arceditor —ArcGIS Desktop Standard product code
  • arcinfo —ArcGIS Desktop Advanced product code
  • engine —Engine Runtime product code
  • enginegeodb —Engine Geodatabase Update product code
  • arcserver — Server product code
String

Return Value

Data TypeExplanation
String

There are five possible return values for CheckProduct:

  • AlreadyInitialized — License has already been set in the script.
  • Available — The requested license is available to be set.
  • Unavailable — The requested license is unavailable to be set.
  • NotLicensed — The requested license is not valid.
  • Failed — A system failure occurred during the request.

Code sample

CheckProduct example

Check to see if an ArcGIS Desktop Advanced license is available.

import sys
import arcpy

arcpy.env.workspace = "c:/data/world.gdb"

if arcpy.CheckProduct("ArcInfo") == "Available":
    arcpy.PolygonToLine_management("Lakes", "LakeLines")
else:
    msg = 'ArcGIS for Desktop Advanced license not available'
    print(msg)
    sys.exit(msg)

Related topics

  • SetProduct
  • ProductInfo
  • Accessing licenses and extensions in Python

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal