Output Sitemap error

Everytime I go to output a sitemap even as a preview I receive the message

Unable to ouput

Could not construct an SQL statement to extract data. (OutputAPPGraph.OutMainFnB) (OutMain Initializing)

Can someone help me out? I have tried just about everything.