I have "requestID" as a foreign key in 2 tables "attachment" and "Document" i passed it as process variable through a task script. When i debug the process it works but it saves the foreign key "Null".
what might be the reason?
Discussion posts and replies are publicly visible
"When i debug the process it works but it saves the foreign key "Null".
What works? What do you observe? Please describe in every imaginable detail!
https://stackoverflow.com/help/how-to-ask
codeblog.jonskeet.uk/.../
WHAT I AM SAYING IS THAT THE PROCESS MODEL DOES NOT RETURN ANY ERROR S ,WHEN I DEBUG IT. EVERY OTHER FIELD IS WRITTEN ON THE DATABASE EXCEPT THE FOREIGN KEY ITS "NULL".
ALSO I AM ASKING GENERALLY WHAT MIGHT BE THE RASON OF THESE KIND OF ERRORS. BECAUSE I CANT POST MY ENTIRE PROCESS MODEL OF CODE HERE :))
No need for shouting ...
Without more details, the only logical reason why your field is NULL, is because pv!requestDetails.requestId is NULL.
That's all I can do for you, with the details you shared.