Hi All,
I have a SSRS report in production which is giving an issue "the sortexpression.value expression for the tablix contains an error: argument length must be greater or equal to zero ".
I have 7 expression in the report which are below : Please help to let me know if there is anything unusual in the below expressions which might be causing this issue. Will Appreciate if you give a solution to this issue. Thanks in advance
========
SNo
========
=RowNumber(nothing)
============
Ask Amount
============
=iif(IsNothing(Fields!hex_latestproposalamountValue.Value),Fields!budgetamountValue.Value,Fields!hex_latestproposalamountValue.Value)
============
Notes
============
=Switch(Fields!hex_donortype.Value = "Individual",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!ab_hex_date.Value & " - " & Fields!ab_hex_notes.Value, "ds_getKeyFollowUpOfContactFromOpp")(0),
Fields!hex_donortype.Value = "Corporate",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value & " - " & Fields!af_hex_notes.Value, "ds_getKeyFollowUpOfAccountFromOpp")(0),
Fields!hex_donortype.value = "Foundation",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value & " - " & Fields!af_hex_notes.Value, "ds_getKeyFollowUpOfAccountFromOpp")(0),
Fields!hex_donortype.value = "Government",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value & " - " & Fields!af_hex_notes.Value, "ds_getKeyFollowUpOfAccountFromOpp")(0))
==============================
Date Proposal Started
==============================
=LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!pr_hex_proposaldate.Value,"ds_FirstProposalDate")(0)
=================
DMS Notes Date
=================
=Switch(Fields!hex_donortype.Value="individual",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!ab_hex_date.Value,"ds_getKeyFollowUpOfContactFromOpp")(0),Fields!hex_donortype.Value = "Corporate",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value,"ds_getKeyFollowUpOfAccountFromOpp")(0),Fields!hex_donortype.value = "Foundation",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value,"ds_getKeyFollowUpOfAccountFromOpp")(0),Fields!hex_donortype.value = "Government",LOOKUPSET(Fields!opportunityid.Value,Fields!opportunityid.Value,Fields!af_hex_date.Value,"ds_getKeyFollowUpOfAccountFromOpp")(0))
==============
Pipeline
==============
=Switch(Fields!hex_status.Value="Identification",Fields!hex_identificationcompletion.Value,Fields!hex_status.Value="Cultivation",Fields!hex_cultivationcompletion.Value,Fields!hex_status.Value="Solicitation",Fields!hex_solicitationcompletion.Value)
=============================
Pipeline sorting
=============================
=CInt(Left(Switch(Fields!hex_status.Value="Identification",Fields!hex_identificationcompletion.Value,Fields!hex_status.Value="Cultivation",Fields!hex_cultivationcompletion.Value,Fields!hex_status.Value="Solicitation",Fields!hex_solicitationcompletion.Value), len(Switch(Fields!hex_status.Value="Identification",Fields!hex_identificationcompletion.Value,Fields!hex_status.Value="Cultivation",Fields!hex_cultivationcompletion.Value,Fields!hex_status.Value="Solicitation",Fields!hex_solicitationcompletion.Value)) - 1))