cancel
Showing results for 
Search instead for 
Did you mean: 

Operation illegal on linked parameter.when linking tp subreport

Former Member
0 Kudos

Hello,

I am using VS2010SP1 with Crystal Reports for .NET Framework 4.0.

To populate reports I use datasets that are created in VB.NET application and populates using ReportDocument object.

In one of reports I need to create sub report, that I placed in footer of a group.

Report shows all data correct exept in subreport.

If I do not set in subreport links parameters it shows all records, but when I try to create any parameter it gives me an error

"Operation illegal on linked parameter". I tried to check/uncheck checkbox (Select data in subreport based on field) but it did not

helped me and now I do not know what else can be done.

Is there any place that I can set paramenters for subreport?

Thank you in advance.

yurluc.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188030
Active Contributor
0 Kudos

Hi,

Take a look at the below SAP Note

[1216055 - Err Msg: "Operation illegal on linked parameter" when a .NET application is run |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313336333033353335%7D.do]

Also see if below forum threads help

[|]

[|]

[|]

These are all the results of a search 'Operation illegal on linked parameter' in the above topr right search box.

Thanks,

Bhushan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I tried to run report using XML file created as you mention and it runs fine untill I start to use parameters.

If I assign the parameter in Formula it reduce records to correct list.

IF I try to for test purpose to assign parameter in the code it gives me error once I create a loop for list of parameters

like For Each item As ParameterField In crystalApp.Subreports.Item(0).ParameterFields

'Not supported within subreports.'

And if I try to set parameter through link it gives me Operation illegal error.

It looks like the problem in parameters for sub reports.

For sake of testing I created a parameter in the main report and there was no errors in report.

Thank you,

yurluc

former_member183750
Active Contributor
0 Kudos

Hello Yurluc

This sounds like something that may need more testing. It will be best to create a phone case and get a dedicated engineer on it:

http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100?resid=S6I@hgoHAkEAAGsiyV...

- Ludek

Former Member
0 Kudos

Report is not connected to any database.

I created .XSD file and created report base on it.

In application I only supply the data according to structure of .XSD file and it works with all reports.

But with subreport there sims to be a problem.

Once again if I do not use parameters it shows all records, but I need to show records related to the

group in main report.

Am I doing something wrong?

former_member183750
Active Contributor
0 Kudos

Nope. All's good. Just had to make sure

I'd like you to do some testing as described in [this|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13270] [original link is broken] [original link is broken]; blog. Let me know the results of the test.

- Ludek

Former Member
0 Kudos

Thank you for your reply but I already read all there threads and they did not apply in my case.

The problem is in whatever I do with parameters it always get to the error.

former_member183750
Active Contributor
0 Kudos

If you are using datasets to populate the reports, what are you using to build the reports? E.g.; what do you connect to when you are designing the reports?

- Ludek