Did you find a resolution to this? I am running into the same issue when passing a Dictionary<string,Dictionary<string,object>> w/ 16 key/value pairs to a library activity for creating fixed width files.
The error is as follows:
Argument ‘Value’: CS0305: Using the generic type ‘Func45<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>’ requires 17 type arguments
Argument ‘Value’: CS0835: Cannot convert lambda to an expression tree whose type argument ‘Func45<string, string, string, string, string, string, string, string, string, string, string, string, string, string, Dictionary<string, Dictionary<string, object>>>’ is not a delegate type
The dictionary is as follows:
new Dictionary<string, Dictionary<string, object>> () {
{ “CustomerNumber”, new Dictionary<string, object> {
{ “Value”, (object)“00000”},
{ “MaxPropertyLength”, (object)7 },
{ “WhiteSpaceBeforeValue”, (object)6 },
{ “IsLeftJustified”, (object)false }
}
},
{ “TransCode”, new Dictionary<string, object> {
{ “Value”, (object)TransCode },
{ “MaxPropertyLength”, (object)1 },
{ “WhiteSpaceBeforeValue”, (object)1 },
{ “IsLeftJustified”, (object)true }
}
},
{ “ContractNumber”, new Dictionary<string, object> {
{ “Value”, (object)ContractNumber },
{ “MaxPropertyLength”,(object) 8 },
{ “WhiteSpaceBeforeValue”, (object)13 },
{ “IsLeftJustified”, (object)false }
}
},
{ “ServiceType”, new Dictionary<string, object> {
{ “Value”, (object)ServiceType },
{ “MaxPropertyLength”, (object)1 },
{ “WhiteSpaceBeforeValue”, (object)6 },
{ “IsLeftJustified”,(object) true }
}
},
{ “LoanTerm”, new Dictionary<string, object> {
{ “Value”, (object)LoanTerm },
{ “MaxPropertyLength”, (object)3 },
{ “WhiteSpaceBeforeValue”, (object)6 },
{ “IsLeftJustified”, (object)true }
}
},
{ “LoanNumber”, new Dictionary<string, object> {
{ “Value”,(object) LoanNumber },
{ “MaxPropertyLength”, (object)21 },
{ “WhiteSpaceBeforeValue”, (object)7 },
{ “IsLeftJustified”, (object)true }
}
},
{ “FeeBilling”, new Dictionary<string, object> {
{ “Value”, (object)FeeBilling },
{ “MaxPropertyLength”,(object) 2 },
{ “WhiteSpaceBeforeValue”,(object) 31 },
{ “IsLeftJustified”,(object) true }
}
},
{ “LoanAmount”, new Dictionary<string, object> {
{ “Value”, (object)LoanAmount },
{ “MaxPropertyLength”, (object)12 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”,(object) false }
}
},
{ “IsEscrow”, new Dictionary<string, object> {
{ “Value”, (object)IsEscrow },
{ “MaxPropertyLength”, (object)1 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”, (object)true }
}
},
{ “FullName”, new Dictionary<string, object> {
{ “Value”, (object)FullName },
{ “MaxPropertyLength”, (object)36 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”,(object) true },
{ “PropertyReplacementCharacter”, (object)“+” },
{ “WhiteSpaceCharacter”, (object)“” }
}
},
{ “StreetNumber”, new Dictionary<string, object> {
{ “Value”, (object)StreetNumber },
{ “MaxPropertyLength”, (object)9 },
{ “WhiteSpaceBeforeValue”, (object)3 },
{ “IsLeftJustified”, (object)true }
}
},
{ “StreetName”, new Dictionary<string, object> {
{ “Value”, (object)StreetName },
{ “MaxPropertyLength”, (object)27 },
{ “WhiteSpaceBeforeValue”,(object) 0 },
{ “IsLeftJustified”,(object)true }
}
},
{ “City”, new Dictionary<string, object> {
{ “Value”, (object)City },
{ “MaxPropertyLength”, (object)25 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”, (object)true }
}
},
{ “State”, new Dictionary<string, object> {
{ “Value”, (object)State },
{ “MaxPropertyLength”, (object)2 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”, (object)true }
}
},
{ “Zip”, new Dictionary<string, object> {
{ “Value”, (object)Zip},
{ “MaxPropertyLength”, (object)5 },
{ “WhiteSpaceBeforeValue”, (object)0 },
{ “IsLeftJustified”, (object)true }
}
},
{ “EmptySpaces”, new Dictionary<string, object> {
{ “Value”, (object)“” },
{ “MaxPropertyLength”, (object)0 },
{ “WhiteSpaceBeforeValue”, (object)1267 },
{ “IsLeftJustified”,(object) true }
}
}
}