cancel
Showing results for 
Search instead for 
Did you mean: 

ExportToExcel NullPointer Excpetion ?

Former Member
0 Kudos

hi @,

I am trying Export to excel using CachedResource which is working fine one place.

In other application I am using Model and data from this model has to be put into excel so I am passing the datanode mapped to Table as the input node to the export function but it is failing giving nullpointer exception.

The only change from working and failed one is the mapping Node in the success one it is Value Node and in failed one it is Model node. How can we solve it or atleast knwo where and why this errror is coming when I am usign standard code.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What is the cardinality of value node?

Make it to 1 to N.

It can not be 0 to N.

Regards,

Bala

Former Member
0 Kudos

hi Bala,

Its not Value node its Model node and it contains data. I am performing Adpative RFC model to fetch the data and display it in Table. This data needs to be downloaded into Excel so I am using the same node mapped to table to be used to fetch the data to Excel.

Correct me if my approach is not rigth.

REgards

Former Member
0 Kudos

Try to print and see whether that node has any values or not?

If it has values still and if it doesn't work, Copy that model node values to Value node ( create new one) using WDCopyservice and try again.

Make sure this value node has the cardinality of 1 to N.

Regards,

Bala

Answers (0)