Jump to content

OnRecordStart error no 1036


macfan55

Recommended Posts

Hi everyone;

I have a template with different bodypages.

The pages have different names (Page Usage) which are also present in an excel file.

 

the OnRecordStart rule I made is the following:

 

if (ToLower(Field("accountmanager")) == "Ed")

{

FusionPro.Composition.SetBodyPageUsage("ed1",true);

FusionPro.Composition.SetBodyPageUsage("ed2",true);

FusionPro.Composition.SetBodyPageUsage("jasper1",false);

FusionPro.Composition.SetBodyPageUsage("jasper2",false);

}

else if (ToLower(Field("Accountmanager")) == "Jasper")

{

FusionPro.Composition.SetBodyPageUsage("ed1",false);

FusionPro.Composition.SetBodyPageUsage("ed2",false);

FusionPro.Composition.SetBodyPageUsage("jasper1",true);

FusionPro.Composition.SetBodyPageUsage("jasper2",true);

}

return ""

 

When I compose a job (just the first 10 records) I get the following error message:

FusionPro could not find the first body page for this document. Composition stopped withe errors. Error no 1036.

 

In the FusionPro Composition System the following message appears:

Processing begun

No page is emitted, please check page usage in your input file.

 

In the log file I can read:

Job started 08:43:09 - 1629787389.

Creator: FusionPro® VDP Creator 10.1.11

Computer Name:

Current working folder: /Applications/PTI/FusionPro

Temporary files folder: /var/folders/sl/j0mzn4wn705chv47_vpbvxjm0000gr/T/

Template File: /Volumes/Var_Print/SMG/2106149 Ansichtkaarten Groeten Uit/2106149 ansichtkaarten testjelle.dif

Input File: /Users/test/Desktop/Adviseurs tbv vakantiekaart NIEUWJelle.xls

Job Config File: /Users/test/Desktop/Kaarten-Output.cfg

Preprocessing started 08:43:09 - 1629787389.

Preprocessing record #1, input record 1

Preprocessing record #2, input record 2

Preprocessing record #3, input record 3

Preprocessing record #4, input record 4

Preprocessing record #5, input record 5

Preprocessing record #6, input record 6

Preprocessing record #7, input record 7

Preprocessing record #8, input record 8

Preprocessing record #9, input record 9

Preprocessing record #10, input record 10

Preflight ended 08:43:09 - 1629787389.

Composing record #1, input record 1

No page is emitted, please check page usage in your input file.

 

Composing record #2, input record 2

No page is emitted, please check page usage in your input file.

 

Composing record #3, input record 3

No page is emitted, please check page usage in your input file.

 

Composing record #4, input record 4

No page is emitted, please check page usage in your input file.

 

Composing record #5, input record 5

No page is emitted, please check page usage in your input file.

 

Composing record #6, input record 6

No page is emitted, please check page usage in your input file.

 

Composing record #7, input record 7

No page is emitted, please check page usage in your input file.

 

Composing record #8, input record 8

No page is emitted, please check page usage in your input file.

 

Composing record #9, input record 9

No page is emitted, please check page usage in your input file.

 

Composing record #10, input record 10

No page is emitted, please check page usage in your input file.

 

A blank page is emitted since no record is composed properly.

 

Job ended 08:43:09 - 1629787389.

Total Job Time:

No page is emitted, please check page usage in your input file.

 

Can somebody help me out with this error message?

Greetings from the Netherlands

Link to comment
Share on other sites

MacFan55,

You need to change these 2 lines of code. You are changing both of the fields to lowercase but you are looking for uppercase letters. This is why you are not getting any pages to show.

 

if (ToLower(Field("accountmanager")) == "ed")

else if (ToLower(Field("Accountmanager")) == "jasper")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...