Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ExportToExcel NullPointer Excpetion ?

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.


Former Member
Former Member replied

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.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question