How to debug maps in GIS/SI (II)

Here is another way to debug maps in GIS/SI. You can use the “cerror” function and it’s more easier than using of the messagebox function – you don’t need to check the error messages in the GIS/SI logs.

From the help file:

The cerror function raises a compliance error. You typically specify this function as an action to be performed if a condition is false. This function is valid on the input side of a map only. There is also an optional third parameter you can supply-a string which is written to the translator report as part of the entry for the compliance error you are raising.

But you also can use this function to send messages from code to the map execution report (MapTestTxReport.xml). Example:

Gennady Kim

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s