Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Report duplicating items in detail section Post Reply Post New Topic
Author Message
iversa
Newbie
Newbie


Joined: 12 May 2010
Location: Canada
Online Status: Offline
Posts: 4
Quote iversa Replybullet Topic: Report duplicating items in detail section
    Posted: 22 Sep 2011 at 4:47pm
I have an invoice and order confirmation in Crystal which is duplicating some of the items on the order but only sometimes. When the same invoice is reprinted then there is no duplication.

Say I have item 1000 with 1 qty on it and when the replication happens I have the same items twice. When I reprint the invoice I only see it once.

The application is Sage BusinessVision with Crystal run-time engine version 10. The database is Pervasive SQL version 10

There is a long history behind this issue going back to 2007. The issue started to appear sometime in 2007 and was reported by some customers. BusinessVision QA at the time and later on attempted to replicate the issue but so far to this day no one has ever be able to replicate this. I have attempted to replicate the issue for countless hours with no success.

I'm not sure why but someone from QA discovered that by adding the following formula to the report for suppression in the detail section the problem went away.

previous({SALES_HISTORY_DETAIL.NUMBER}) = {SALES_HISTORY_DETAIL.NUMBER}
and previous({SALES_HISTORY_DETAIL.RECNO}) = {SALES_HISTORY_DETAIL.RECNO}

Now the problem is that as soon as I start customizing the report the problem comes back. In my case I have a custom report for one of my customers where I'm grouping the items on an invoice. Sage is telling me that they can't help me because of the customization I have.

I've been insisting with the Sage QA team to get the issue resolve but they claim that it is a Crystal bug but are not sure because no one has ever been able to replicate it.

Has someone else ever come across this? I have uploaded my custom report and also the standard report if anyone is interested to look at them.
www.iversa.ca/files/Invoice_Plain_Paper.rpt
www.iversa.ca/files/Invoice.rpt

Any help I can get on this is appreciated.
Gerhard
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 22 Sep 2011 at 8:10pm
If it's caused by your links then place the formula {Table.IDField} = previous({Table.IDField}) where the fields are the same, but separate tables, into the Section Expert "Suppress(No-drilldown)" x-2 but don't check the box.

Alternate is to Format the field and check the box "Suppress If Duplicated"


Edited by CircleD - 22 Sep 2011 at 8:14pm
IP IP Logged
iversa
Newbie
Newbie


Joined: 12 May 2010
Location: Canada
Online Status: Offline
Posts: 4
Quote iversa Replybullet Posted: 22 Sep 2011 at 11:45pm
CircleD,
Can you explain in a bit more detail? I'm not sure if I understand fully what to do?

It would be nice to find a way to replicate the issue.

Thank you for your help.
Gerhard
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet Posted: 23 Sep 2011 at 5:31pm
Right click on the field and choose "Format Field" then check the box "Suppress if duplicated"

If it's caused by your links then open the "Select Expert" and look for the "Suppress(No-drilldown)" and click on the X-2 to place the formula {Table.IDField} = previous({Table.IDField}) replacing the Table with your table name and the IDField with the field name but don't check the box for "Suppress(No-drilldown)". It will run without it.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.