Skip to main content

I am receiving this message when running a process that is started from an aspx page. The event that is causing this error is an email event. I do not have a parameter named 'address' anywhere that I can find. I looked at the code behind the email and it does not appear to have an 'address' parameter either. I may be wrong though and there may be an 'address' parameter in the email event. I am dynamically filling in the To: address with the originator's manager and that is the only thing I can think of that may be causing the problem. I do not experience this error in development, only in production.


the debug log


"106192","2008-12-30 01:20:45","Debug","General","28059","DestinationActivity","ProcessInstance.CreateDestinations","28059 Supervisor Approval.Destination: K2:SCC911BPASUPERVISOR","anonymous","0.0.0.0","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106192","198e44eb64114911b713c6705a790197",""
"106193","2008-12-30 01:20:45","Debug","WorkActivity","25170","ExecutedItem","ProcessInstance.ExecDestRule","25170 Executed Proc:SecureAccess(6), Item:Supervisor Approval.DestRule, Status:Completed","anonymous","0.0.0.0","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106193","9893e7fbe5bb471daa310dd7ffc2a61e",""
"106194","2008-12-30 01:20:45","Debug","General","28066","EventStarted","EventInstance","28066 Supervisor Notification.Status: Started","anonymous","0.0.0.0","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106194","28d41d69b9e946e68a7be883d03a664c",""
"106195","2008-12-30 01:20:45","Debug","WorkActivity","25020","ExecServerEvent","ProcessInstance.ExecServerEvent","25020 Executing Server Event Supervisor Notification(56), Act:Supervisor Approval(50), Proc:SecureAccess(6)","anonymous","0.0.0.0","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106195","b0165929543b4a9c9c409390ad24e6d4",""
106196","2008-12-30 01:20:45","Debug","General","15","GeneralDebugMessage","ProcessInstance.HandleException","15 ServerEvent: The parameter 'address' cannot be an empty string.
Parameter name: address","","","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106196","a9fec3eaf27f46c595dada770a09fb9b",""

"106197","2008-12-30 01:20:45","Debug","General","28068","EventCompleted","EventInstance","28068 Supervisor Notification.Status: Completed","anonymous","0.0.0.0","VMLGMTK201:C:Program FilesK2 blackpearlHost ServerBin","106197","f6d671932e5f41968c1be1bf54310d58",""

Hi,


I used to get this error too. However, I observed that the user account that I used in the "To:" of the email instance, didn't have a valid email ID mentioned in the Active Directory, hence, the K2 user groups as well. So, I sorted out this error by adding a valid email ID for that account in the Active Directory. In your case, since, you are populating this field dynamically, my bet would be, the Manager of the submitter (the one that you are using to kick off this workflow) has not been assigned a valid email ID on the active directory. Try logging in as another user into both, the machine and then the application (because, if you try to login as another user for just the application, it wouln't work, because K2 uses Kerberos auth) and then try kicking off this workflow.


Feel free to revert back if the issue still persists.


Cheers,


Anand


Well the good news is that you confirmed my suspicion that the 'address' parameter is actually in the email event and not in something I wrote. The bad news is that this same user works fine in development but does not work in production.

go to view code in mail event, you can add check to make sure that email address exist. if it does not just do not send email.  I have added this check in my code and it works fine.

I think you need to add this in two functions in mail event, do let me know if you need any help in that.


icon-quote.gifk2.netdeveloper:

go to view code in mail event, you can add check to make sure that email address exist. if it does not just do not send email.  I have added this check in my code and it works fine.


I think you need to add this in two functions in mail event, do let me know if you need any help in that.



In fact, if you delete the entire activity it will definitely work.  But seriously, I am having this problem as well.  It works in dev, but not in prod.  I know the email address is there and for some reason the field is just not being populated.  Is it possible that the value is just not being mapped correctly?  Is there somewhere I can tell K2 that "this AD attribute = email" without modifying all of my code?


 To add to the mystery, it was working before.  I changed what database a smartobject was pointing to and POOF it isn't working anymore.  It is hard to tell if what I did was a direct cause of it or just a coincidence since it wasn't being used often that something else changed.


Reply