MapThat Scale Print – NoneType Object

Marketing
Marketing
  • Updated

by David Crowther

MapThat_Scale_Print_DC_01.png

Question:

A MapThat Scale Print Job is failing with the following error – ‘NoneType' object has no attribute “setOpacity”’ – what is causing this?

 

Answer:

If you check the Scale Print Error log file, you will likely see that the cause of the job failure is a WMS Layer that was included in the Scale print job can’t be printed.

In the example below, the user had the MasterMap Road Text WMS layer ticked on in MapThat while running the Scale Print Job, and this particular WMS couldn’t be printed so it failed the Print job.

MapThat_Scale_Print_DC_02.jpg

The error message - ‘NoneType' object has no attribute “setOpacity”’ – is generally a product of trying to print WMS layers, which can fail.

Another good place to check is the MapThat control table – MT_PRINT_WMS_LAYERS – as this will list any WMS layers that were included in a Print Job.

MapThat_Scale_Print_DC_03.jpg

MapThat can print internal WMS layers, however if you find some of your external WMS layers fail, you may wish to remind users not to run Scale Print jobs with these WMS layers displayed. Alternately, you can also set your Scale Printing to not print any WMS layers – so even if the WMS layers are visible they will not be printed and your print jobs won’t fail.

This is a setting you can choose in the MapThat Admin Forms > Printing > Print Admin Settings > Print_WMS_Layers

MapThat_Scale_Print_DC_04.jpg

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.