
Hello everyone,
I have a very irrational problem when i import from Excel and i try to check if the import from the Excel file is the same as the LinePropertyId in ProjLineProperty., i get the message "The number of arguments provided is different from the number of arguments accepted by the method "
My code for lineproperty is:
linepr = cells.item(row,7).value().bStr();
projJournalTrans.LinePropertyId = linepr;
if (linepr!=""){
Select firstOnly ProjLineProperty where (ProjLineProperty.LinePropertyId == linepr);
if (ProjLineProperty){
lineflag=true;
}
else{
error(strFmt("There are no such lines!-line:%1",row));
}
}
if ((categoryflag) &&(lineflag) &&(projidflag) &&(employeeidflag) &&(hourflag)){
projJournalTrans.insert();
info('Done!');
categoryflag=false;lineflag=false; projidflag=false;employeeidflag=false; hourflag=false;
}
There are also other imports but the LineProperty one causes the problem. When LineProperty import is missing, everything works properly.
*This post is locked for comments
I have the same question (0)Hi,
At what exact line in this coding is it failing with this error?
The error is stating that you are calling a method with incorrect number of variables. I don't see anything quickly which line it could be.