ExcelMapper icon indicating copy to clipboard operation
ExcelMapper copied to clipboard

Parameter count Mismatch

Open rishabh211200 opened this issue 3 years ago • 1 comments

I am facing this inner exception of Parameter count Mismatch. and main is "Unable to convert "ManagementAppDbHandler.Notes" from [L:1]:[C:-1] to ManagementAppDbHandler.Notes".

rishabh211200 avatar Sep 20 '22 10:09 rishabh211200

Can you attach a demo Excel file and the class definition you're trying to map to?

mganss avatar Sep 20 '22 11:09 mganss

Hi Michael, I am having these Column names in excel and I am transferring the same after modelling to MongoDB. image but the case is that I don't have Version inside my excel file and I created a version Interface like this image and implemented the interface in model class like this image So I want to do the same for Notes I have to store a Notes Object which will be having list of notes in it and by following the same process I had created Notes class like this with Notes properties image and Interface same as version like this image and I am trying to implement the same in my model class but it is getting accessed while iterating through properties. image

rishabh211200 avatar Sep 21 '22 07:09 rishabh211200

I'm not sure I understand this yet. Perhaps you just need to decorate Version etc with [Ignore]?

mganss avatar Sep 21 '22 14:09 mganss

Resolved Hi Michael, You're amazing I didn't knew about that [Ignore] part. Thanks so much.

rishabh211200 avatar Sep 21 '22 15:09 rishabh211200