Object not set to a reference

This forum is for all Flare issues not related to any of the other categories.
Post Reply
alaltenburg
Sr. Propeller Head
Posts: 342
Joined: Mon Nov 03, 2008 9:33 am
Location: The heart of America

Object not set to a reference

Post by alaltenburg »

Hello everyone,

I am getting an Object reference not set to an instance of an object during a PDF build. It processes through the entire TOC, linking cross references, then always errors out at "Creating Chapters..." I have attached the build message window below. Any idea where it Creates chapters to find the error?

example.png
Thank you,

Andrea
You do not have the required permissions to view the files attached to this post.
The Moon is the first milestone on the road to the stars.

— Arthur C. Clarke
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Object not set to a reference

Post by GregStenhouse »

Maybe try setting your object reference to the instance of an object and see how you get on...

(sorry, couldn't resist. Don't you hate unfriendly error messages?)
alaltenburg
Sr. Propeller Head
Posts: 342
Joined: Mon Nov 03, 2008 9:33 am
Location: The heart of America

Re: Object not set to a reference

Post by alaltenburg »

Although unhelpful, still funny. :)
The Moon is the first milestone on the road to the stars.

— Arthur C. Clarke
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Object not set to a reference

Post by GregStenhouse »

You wouldn't read about it, but I got the exact same message just now. I tried building the primary target when nothing was selected as the primary. Maybe something like that is happening in your case (for example, maybe you are trying to use the default TOC in your target but there is no TOC set as the master).
alaltenburg
Sr. Propeller Head
Posts: 342
Joined: Mon Nov 03, 2008 9:33 am
Location: The heart of America

Re: Object not set to a reference

Post by alaltenburg »

I have 23 chapters and 22 of them build and just not this last one. I opened on of the chapters that works and compared it against this one and they are exactly the same. I've double checked and the target has everything set (not just defaults) and still no luck. Good idea, but do you have another :?

Andrea
The Moon is the first milestone on the road to the stars.

— Arthur C. Clarke
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Object not set to a reference

Post by Andrew »

alaltenburg wrote:I have 23 chapters and 22 of them build and just not this last one. I opened on of the chapters that works and compared it against this one and they are exactly the same. I've double checked and the target has everything set (not just defaults) and still no luck. Good idea, but do you have another :?

Andrea
You could open the TOC file in a text editor and compare the XML, see if anything looks fishy. You could even delete that last chapter and re-create it to see if that fixes it.
Flare v6.1 | Capture 4.0.0
alaltenburg
Sr. Propeller Head
Posts: 342
Joined: Mon Nov 03, 2008 9:33 am
Location: The heart of America

Re: Object not set to a reference

Post by alaltenburg »

I have a PDF and an HTML Help build for each chapter and the HTML Help works perfectly, so I'm not about to delete and start the entire chapter over because that's way too much work.

I will try to compare XML code though. Thank you for that thought 8)
The Moon is the first milestone on the road to the stars.

— Arthur C. Clarke
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Object not set to a reference

Post by Andrew »

alaltenburg wrote:I have a PDF and an HTML Help build for each chapter and the HTML Help works perfectly, so I'm not about to delete and start the entire chapter over because that's way too much work.

I will try to compare XML code though. Thank you for that thought 8)
I meant to start the chapter in the TOC over, not re-write the chapter, in case that wasn't clear.
Flare v6.1 | Capture 4.0.0
alaltenburg
Sr. Propeller Head
Posts: 342
Joined: Mon Nov 03, 2008 9:33 am
Location: The heart of America

Re: Object not set to a reference

Post by alaltenburg »

Since the HTML Help build was working fine, I decided only to delete the Print Only TOC topics and one of them is the culprit. I am not sure as the exactly why, but when I deleted the print only, the build went through without any problems. So I am still working on the exactly culprit, but I at least have it narrowed down.

Andrea
The Moon is the first milestone on the road to the stars.

— Arthur C. Clarke
Post Reply